.admin-bell {
    position: relative;
}

.admin-bell summary {
    list-style: none;
    cursor: pointer;
}

.admin-bell summary::-webkit-details-marker {
    display: none;
}

.admin-bell-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid rgba(124, 121, 184, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 245, 252, 0.94) 100%);
    color: var(--primary-dark);
    box-shadow: 0 10px 22px rgba(34, 42, 70, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.admin-bell-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(34, 42, 70, 0.12);
    border-color: rgba(124, 121, 184, 0.28);
}

.admin-bell[open] .admin-bell-trigger {
    border-color: rgba(124, 121, 184, 0.34);
    box-shadow: 0 14px 30px rgba(34, 42, 70, 0.14);
}

.admin-bell-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(129, 124, 197, 0.12) 0%, rgba(129, 124, 197, 0.05) 100%);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.75);
}

.admin-bell-icon-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.admin-bell-icon-cap {
    position: absolute;
    top: 0;
    left: 50%;
    width: 8px;
    height: 3px;
    border-radius: 999px;
    background: #817cc5;
    transform: translateX(-50%);
}

.admin-bell-icon-body {
    position: absolute;
    left: 50%;
    top: 3px;
    width: 14px;
    height: 12px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #8d88d4 0%, #736eb8 100%);
    border-radius: 8px 8px 5px 5px;
    clip-path: polygon(18% 0%, 82% 0%, 100% 78%, 0% 78%);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.admin-bell-icon-body::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: #6f6ab3;
    transform: translateX(-50%);
}

.admin-bell-icon-clapper {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #5d5a97;
    transform: translateX(-50%);
}

.admin-bell-count {
    position: absolute;
    top: -3px;
    right: -1px;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: linear-gradient(180deg, #c94a58 0%, #ae3645 100%);
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 8px 16px rgba(178, 58, 72, 0.28);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
}

.admin-bell-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: min(430px, calc(100vw - 32px));
    padding: 18px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 18px 35px rgba(34, 42, 70, 0.12);
    z-index: 50;
}

.admin-bell-menu h3 {
    margin: 0 0 6px;
    color: var(--text);
}

.admin-bell-menu p {
    margin: 0 0 14px;
    color: var(--muted);
    max-width: 100%;
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: normal;
}

.admin-bell-list {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.admin-bell-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: var(--accent);
    color: var(--primary-dark);
}

.admin-bell-item span {
    min-width: 0;
    flex: 1 1 auto;
    overflow-wrap: anywhere;
    white-space: normal;
}

.admin-bell-item strong {
    flex: 0 0 auto;
    font-size: 1.1rem;
    overflow-wrap: anywhere;
    white-space: normal;
    text-align: right;
}

.admin-bell-item-volunteer {
    display: grid;
    gap: 10px;
    align-items: start;
    justify-content: stretch;
    padding: 14px 16px;
    border: 1px solid rgba(124, 121, 184, 0.12);
    background: linear-gradient(180deg, rgba(244, 245, 252, 0.98) 0%, rgba(238, 241, 251, 0.9) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.admin-bell-item-meta {
    display: block;
    font-weight: 600;
    color: var(--muted);
    line-height: 1.45;
    font-size: 0.95rem;
}

.admin-bell-item-meta small {
    color: var(--muted);
    font-size: 0.92em;
}

.admin-bell-item-topic {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(124, 121, 184, 0.12);
    border: 1px solid rgba(124, 121, 184, 0.14);
    font-size: 0.98rem;
    line-height: 1.3;
    text-align: left;
    color: var(--primary-dark);
    font-weight: 700;
}

.admin-bell-menu .button {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
}

.moderation-hub-container {
    max-width: 1080px;
}

.moderation-hero {
    margin-bottom: 28px;
    overflow: hidden;
}

.moderation-hero-body {
    display: grid;
    gap: 24px;
}

.moderation-kicker {
    margin-bottom: 14px;
}

.moderation-hero-copy {
    width: 100%;
    max-width: 760px;
    min-width: 0;
}

.moderation-hero-copy h1 {
    margin: 0 0 12px;
    font-size: clamp(2.3rem, 5vw, 3.8rem);
    line-height: 1.02;
    max-width: 12ch;
}

.moderation-hero-copy p {
    margin: 0;
    max-width: 720px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.moderation-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.moderation-summary-card {
    padding: 20px 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(124, 121, 184, 0.14);
    box-shadow: 0 14px 28px rgba(34, 42, 70, 0.08);
}

.moderation-summary-card strong {
    display: block;
    margin-top: 6px;
    font-size: 2rem;
    color: var(--text);
}

.moderation-summary-label {
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.78rem;
}

.moderation-section {
    margin-top: 28px;
}

.moderation-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.moderation-section-head h2 {
    margin: 0 0 4px;
    color: var(--text);
}

.moderation-section-head p {
    margin: 0;
    color: var(--muted);
}

.moderation-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--accent);
    border: 1px solid var(--border);
    color: var(--primary-dark);
    font-weight: 800;
}

.moderation-card {
    margin-bottom: 16px;
}

.moderation-card .card-body,
.moderation-empty-state .card-body {
    padding: 22px;
}

.moderation-empty-state p {
    margin: 0;
    color: var(--muted);
}

.moderation-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.moderation-card-top h3 {
    margin: 0 0 4px;
    color: var(--text);
}

.moderation-card-top p,
.moderation-meta {
    margin: 0;
    color: var(--muted);
}

.moderation-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.moderation-details-grid div {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.moderation-details-grid span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.84rem;
}

.moderation-details-grid strong {
    color: var(--text);
}

.moderation-inline-note {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.7;
}

.moderation-action-form {
    gap: 14px;
}

.moderation-action-form textarea {
    min-height: 96px;
}

.moderation-actions {
    margin-top: 6px;
}

.moderation-actions-inline {
    display: flex;
    gap: 12px;
}

.button-success {
    background: var(--success);
    color: #ffffff;
}

@media (max-width: 760px) {
    .moderation-summary-grid {
        grid-template-columns: 1fr;
    }
}

.button-success:hover {
    background: #286d4d;
}

.moderation-actions-spread {
    justify-content: space-between;
}

.button-danger {
    background: #b23a48;
    color: #ffffff;
}

.button-danger:hover {
    background: #992f3d;
}

@media (max-width: 900px) {
    .moderation-summary-grid,
    .moderation-details-grid {
        grid-template-columns: 1fr;
    }

    .moderation-actions,
    .moderation-actions-spread,
    .moderation-actions-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .moderation-card-top {
        flex-direction: column;
    }

    .admin-bell-menu {
        right: -32px;
        width: min(360px, calc(100vw - 20px));
    }
}

/* ============================================================
   Notification bell — modern redesign (.notif-bell)
   Consistent with the rest of the LangoMove design system:
   - Soft purple gradient header with kicker pill + title
   - Item rows as gentle cards with icon + label + count
   - Primary-color CTA at the bottom
   ============================================================ */
.notif-bell {
    position: relative;
    display: inline-block;
}

.notif-bell summary {
    list-style: none;
    cursor: pointer;
}

.notif-bell summary::-webkit-details-marker { display: none; }

.notif-bell-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(124, 121, 184, 0.10);
    border: 1px solid rgba(124, 121, 184, 0.18);
    color: var(--primary-dark);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.notif-bell-trigger:hover {
    background: rgba(124, 121, 184, 0.18);
    border-color: rgba(124, 121, 184, 0.32);
    transform: translateY(-1px);
}

.notif-bell[open] .notif-bell-trigger {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 6px 14px rgba(124, 121, 184, 0.32);
}

.notif-bell-icon { line-height: 1; display: inline-flex; }

.notif-bell-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #d44343;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(212, 67, 67, 0.40);
}

/* === Popover === */
.notif-popover {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 340px;
    max-width: calc(100vw - 24px);
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 24px 48px rgba(34, 42, 70, 0.18);
    overflow: hidden;
    z-index: 100;
    animation: notif-pop 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-sizing: border-box;
}

/* Every direct child must respect the popover width — no sneaky widening
   by inline-block contents or long unbroken strings. */
.notif-popover > *,
.notif-popover-head,
.notif-popover-list { box-sizing: border-box; min-width: 0; max-width: 100%; }

@keyframes notif-pop {
    from { opacity: 0; transform: translateY(-4px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.notif-popover-head {
    padding: 16px 18px 12px;
    background: linear-gradient(180deg, rgba(124, 121, 184, 0.10) 0%, rgba(124, 121, 184, 0.02) 100%);
    border-bottom: 1px solid rgba(124, 121, 184, 0.12);
}

.notif-popover-kicker {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.7);
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(124, 121, 184, 0.20);
    margin-bottom: 8px;
}

.notif-popover-head h3 {
    margin: 0 0 4px;
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.notif-popover-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: anywhere;
    /* Cap to 2 lines to keep the popover tidy */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-popover-list {
    list-style: none;
    margin: 0;
    padding: 12px;
    display: grid;
    gap: 6px;
    max-height: 360px;
    overflow-y: auto;
}

.notif-popover-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(124, 121, 184, 0.06);
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.notif-popover-item:hover {
    background: rgba(124, 121, 184, 0.12);
    border-color: rgba(124, 121, 184, 0.20);
}

.notif-popover-item.is-zero {
    background: transparent;
    opacity: 0.55;
}

.notif-popover-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #fff;
    display: grid;
    place-items: center;
    font-size: 1rem;
    border: 1px solid rgba(124, 121, 184, 0.16);
}

.notif-popover-item-text {
    display: grid;
    gap: 2px;
    min-width: 0;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.3;
}

.notif-popover-item-text > * {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notif-popover-item-text strong {
    font-weight: 700;
    color: var(--text);
}

.notif-popover-item-sub {
    font-size: 0.76rem;
    color: var(--muted);
}

.notif-popover-item-topic {
    font-size: 0.76rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.notif-popover-item-count {
    min-width: 26px;
    height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(124, 121, 184, 0.32);
}

.notif-popover-item.is-zero .notif-popover-item-count {
    background: #d4d8e6;
    color: var(--muted);
    box-shadow: none;
}

/* === Evaluation item variant (volunteer notifications) === */
.notif-popover-item-evaluation {
    grid-template-columns: 32px minmax(0, 1fr);
}

/* === Empty state === */
.notif-popover-empty {
    display: grid;
    gap: 4px;
    justify-items: center;
    text-align: center;
    padding: 24px 18px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(95, 168, 147, 0.10) 0%, rgba(95, 168, 147, 0.02) 100%);
    border: 1px solid rgba(95, 168, 147, 0.22);
    color: var(--text);
}

.notif-popover-empty-emoji {
    font-size: 1.7rem;
    margin-bottom: 4px;
}

.notif-popover-empty strong {
    font-size: 0.95rem;
    color: #2d6a55;
}

.notif-popover-empty span {
    color: var(--muted);
    font-size: 0.82rem;
}

/* === CTA === */
.notif-popover-cta {
    display: block;
    margin: 6px 12px 14px;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    text-align: center;
    font-weight: 800;
    font-size: 0.92rem;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(124, 121, 184, 0.30);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.notif-popover-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(124, 121, 184, 0.36);
    color: #fff;
    text-decoration: none;
}

@media (max-width: 560px) {
    .notif-popover {
        right: -16px;
        width: min(380px, calc(100vw - 16px));
    }
}


/* ============================================================
   Moderation hub — fresh design (mhub-*)
   Mirrors the look of the schools admin / classroom planning
   pages so the moderation inbox feels like part of one suite.
   ============================================================ */

.mhub-container {
    max-width: 1080px;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

/* === Hero ================================================== */

.mhub-hero {
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(124, 121, 184, 0.14), transparent 40%),
        linear-gradient(180deg, #ffffff 0%, #f7f8fd 100%);
    border: 1px solid var(--border);
    border-radius: 26px;
    box-shadow: 0 18px 36px rgba(34, 42, 70, 0.08);
}

.mhub-hero-body {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 32px 36px;
}

.mhub-hero-copy {
    min-width: 0;
}

.mhub-kicker {
    margin-bottom: 14px;
}

.mhub-hero-copy h1 {
    margin: 0 0 12px;
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    line-height: 1.06;
    color: var(--text);
    max-width: 12ch;
}

.mhub-hero-copy p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.65;
    max-width: 56ch;
}

.mhub-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* === Stats =================================================== */

.mhub-hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    min-width: 0;
}

.mhub-stat {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "icon value"
        "icon label";
    gap: 2px 16px;
    padding: 18px 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mhub-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(34, 42, 70, 0.08);
    border-color: rgba(124, 121, 184, 0.35);
}

.mhub-stat-icon {
    grid-area: icon;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: rgba(124, 121, 184, 0.12);
    color: var(--primary-dark);
}

.mhub-stat strong {
    grid-area: value;
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text);
    align-self: end;
}

.mhub-stat span:last-of-type {
    grid-area: label;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.92rem;
}

.mhub-stat.is-active .mhub-stat-icon {
    background: linear-gradient(135deg, rgba(255, 184, 96, 0.28), rgba(255, 142, 110, 0.18));
    color: #b34b22;
}

.mhub-stat.is-active strong {
    color: #b34b22;
}

.mhub-stat-roles.is-active .mhub-stat-icon {
    background: linear-gradient(135deg, rgba(124, 121, 184, 0.28), rgba(124, 121, 184, 0.1));
    color: var(--primary-dark);
}
.mhub-stat-roles.is-active strong { color: var(--primary-dark); }

.mhub-stat-pron.is-active .mhub-stat-icon {
    background: linear-gradient(135deg, rgba(255, 184, 96, 0.30), rgba(255, 142, 110, 0.18));
    color: #b34b22;
}
.mhub-stat-pron.is-active strong { color: #b34b22; }

.mhub-stat-courses.is-active .mhub-stat-icon {
    background: linear-gradient(135deg, rgba(74, 158, 219, 0.28), rgba(74, 158, 219, 0.10));
    color: #1f6fa7;
}
.mhub-stat-courses.is-active strong { color: #1f6fa7; }

/* === Section ================================================ */

.mhub-section {
    scroll-margin-top: 80px;
}

.mhub-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 4px 14px;
}

.mhub-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.mhub-section-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(124, 121, 184, 0.12);
    color: var(--primary-dark);
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.mhub-section-icon-roles {
    background: linear-gradient(135deg, rgba(124, 121, 184, 0.20), rgba(124, 121, 184, 0.06));
}
.mhub-section-icon-pron {
    background: linear-gradient(135deg, rgba(255, 184, 96, 0.22), rgba(255, 142, 110, 0.12));
}
.mhub-section-icon-courses {
    background: linear-gradient(135deg, rgba(74, 158, 219, 0.22), rgba(74, 158, 219, 0.08));
}

.mhub-section-title h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
}

.mhub-section-title p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.mhub-count {
    min-width: 36px;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(34, 42, 70, 0.08);
    color: var(--muted);
    font-weight: 800;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.mhub-count.is-active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 6px 14px rgba(124, 121, 184, 0.35);
}

/* === Item card ============================================== */

.mhub-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mhub-item {
    position: relative;
    display: flex;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    box-shadow: 0 10px 24px rgba(34, 42, 70, 0.05);
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.mhub-item:hover {
    transform: translateY(-1px);
    border-color: rgba(124, 121, 184, 0.32);
    box-shadow: 0 14px 28px rgba(34, 42, 70, 0.08);
}

.mhub-item-accent {
    width: 6px;
    flex: 0 0 auto;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.mhub-item-roles .mhub-item-accent {
    background: linear-gradient(180deg, #8a87cf 0%, #5d59b4 100%);
}
.mhub-item-pron .mhub-item-accent {
    background: linear-gradient(180deg, #ffb160 0%, #d97c4a 100%);
}
.mhub-item-courses .mhub-item-accent {
    background: linear-gradient(180deg, #5fb0e0 0%, #2c84c2 100%);
}

.mhub-item-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 24px;
}

.mhub-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

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

.mhub-item-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-shadow: 0 6px 14px rgba(124, 121, 184, 0.35);
}

.mhub-item-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(124, 121, 184, 0.12);
    color: var(--primary-dark);
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.mhub-item-pron .mhub-item-badge {
    background: linear-gradient(135deg, rgba(255, 184, 96, 0.22), rgba(255, 142, 110, 0.10));
    color: #b34b22;
}

.mhub-item-courses .mhub-item-badge {
    background: linear-gradient(135deg, rgba(74, 158, 219, 0.22), rgba(74, 158, 219, 0.08));
    color: #1f6fa7;
}

.mhub-item-titles {
    min-width: 0;
}

.mhub-item-titles h3 {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
    word-break: break-word;
}

.mhub-item-sub {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.93rem;
    font-weight: 600;
    word-break: break-word;
}

.mhub-item-sub-warn {
    color: #b34b22;
}

.mhub-item-time {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
    flex: 0 0 auto;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(34, 42, 70, 0.04);
}

.mhub-item-description {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(34, 42, 70, 0.03);
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* === Metadata chips ========================================= */

.mhub-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mhub-chip {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border);
    min-width: 0;
}

.mhub-chip-key {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.mhub-chip-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    word-break: break-word;
}

.mhub-chip-primary {
    background: rgba(124, 121, 184, 0.10);
    border-color: rgba(124, 121, 184, 0.30);
}

.mhub-chip-primary .mhub-chip-value {
    color: var(--primary-dark);
}

.mhub-chip-soft {
    background: rgba(34, 42, 70, 0.03);
}

/* === Actions disclosure ===================================== */

.mhub-actions-disclosure {
    border-top: 1px dashed rgba(34, 42, 70, 0.08);
    padding-top: 14px;
    margin-top: 2px;
}

.mhub-actions-disclosure > summary {
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(124, 121, 184, 0.10);
    border: 1px solid rgba(124, 121, 184, 0.25);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.92rem;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.mhub-actions-disclosure > summary::-webkit-details-marker {
    display: none;
}

.mhub-actions-disclosure > summary:hover {
    background: rgba(124, 121, 184, 0.16);
    border-color: rgba(124, 121, 184, 0.45);
}

.mhub-disclosure-chevron {
    transition: transform 0.18s ease;
}

.mhub-actions-disclosure[open] > summary .mhub-disclosure-chevron {
    transform: rotate(180deg);
}

.mhub-actions-form {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mhub-field-hint {
    color: var(--muted);
    font-weight: 500;
    font-size: 0.85em;
}

.mhub-action-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.mhub-action-row-spread {
    justify-content: space-between;
}

.mhub-action-row-decisions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mhub-action {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.mhub-action-approve {
    background: linear-gradient(135deg, #46b975 0%, #2d9b5b 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(45, 155, 91, 0.30);
}

.mhub-action-approve:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(45, 155, 91, 0.40);
}

.mhub-action-reject {
    background: rgba(220, 53, 69, 0.06);
    border-color: rgba(220, 53, 69, 0.30);
    color: #b02a37;
}

.mhub-action-reject:hover {
    background: rgba(220, 53, 69, 0.14);
    border-color: rgba(220, 53, 69, 0.50);
}

.mhub-action-secondary {
    background: rgba(124, 121, 184, 0.08);
    border-color: rgba(124, 121, 184, 0.25);
    color: var(--primary-dark);
}

.mhub-action-secondary:hover {
    background: rgba(124, 121, 184, 0.16);
    border-color: rgba(124, 121, 184, 0.45);
}

/* === Empty states =========================================== */

.mhub-empty {
    border-radius: 22px;
    border: 1.5px dashed rgba(124, 121, 184, 0.35);
    background: rgba(124, 121, 184, 0.04);
    padding: 36px 28px;
    text-align: center;
    color: var(--muted);
}

.mhub-empty-emoji {
    display: block;
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.mhub-empty h3 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 800;
}

.mhub-empty p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

/* === Responsive ============================================= */

@media (max-width: 920px) {
    .mhub-hero-body {
        grid-template-columns: 1fr;
        padding: 26px 22px;
    }

    .mhub-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mhub-stat {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "icon"
            "value"
            "label";
        text-align: center;
        padding: 14px 12px;
    }

    .mhub-stat-icon {
        margin: 0 auto;
    }

    .mhub-stat strong {
        align-self: center;
    }
}

@media (max-width: 620px) {
    .mhub-hero-stats {
        grid-template-columns: 1fr;
    }

    .mhub-section-head {
        flex-wrap: wrap;
    }

    .mhub-item-body {
        padding: 18px 18px;
    }

    .mhub-item-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .mhub-item-time {
        align-self: flex-start;
    }

    .mhub-action-row-spread {
        flex-direction: column;
        align-items: stretch;
    }

    .mhub-action-row-decisions {
        justify-content: flex-end;
    }

    .mhub-action {
        justify-content: center;
    }
}
