:root {
    --primary: #4f2ca3;
    --secondary: #2e7d32;
    --accent: #1e88e5;
    --bg-soft: #f5f5fb;
    --text-main: #1b1d29;
    --card-glass: rgba(255, 255, 255, 0.78);
}

* {
    box-sizing: border-box;
}

body.mms-body {
    font-family: 'Manrope', sans-serif;
    color: var(--text-main);
    background: radial-gradient(circle at 10% 10%, rgba(79, 44, 163, 0.12), transparent 40%),
                radial-gradient(circle at 85% 20%, rgba(46, 125, 50, 0.15), transparent 45%),
                var(--bg-soft);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-title {
    font-family: 'Outfit', sans-serif;
}

.mms-bg-shape {
    position: fixed;
    width: 460px;
    height: 460px;
    border-radius: 999px;
    filter: blur(90px);
    z-index: -1;
}

.mms-bg-shape-1 {
    background: color-mix(in srgb, var(--primary) 45%, transparent);
    top: -180px;
    left: -100px;
}

.mms-bg-shape-2 {
    background: color-mix(in srgb, var(--secondary) 45%, transparent);
    right: -120px;
    bottom: -180px;
}

.mms-navbar {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.mms-navbar .container {
    min-height: 72px;
}

.mms-navbar .navbar-brand {
    align-items: center;
}

.mms-navbar .navbar-nav {
    align-items: center;
    column-gap: 0.2rem;
}

.mms-navbar .navbar-nav .nav-link {
    white-space: nowrap;
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.mms-navbar .navbar-nav .nav-link:hover {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, #ffffff);
}

.mms-navbar .navbar-nav .nav-link:focus-visible,
.mms-navbar .navbar-toggler:focus-visible,
.mms-navbar .public-nav-auth-btn:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--primary) 40%, #ffffff);
    outline-offset: 2px;
}

.mms-navbar .navbar-nav .nav-link.is-active,
.mms-navbar .navbar-nav .nav-link.active {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 13%, #ffffff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 22%, #dce4fb);
}

.public-nav-auth-btn {
    white-space: nowrap;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.public-nav-user-menu .btn {
    white-space: nowrap;
}

.public-nav-auth-loading {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    min-width: 238px;
    min-height: 40px;
}

.public-nav-auth-loading-mobile {
    display: grid;
    gap: 0.55rem;
    width: 100%;
    min-height: 86px;
}

.public-nav-auth-skeleton {
    display: inline-block;
    border-radius: 999px;
    background: linear-gradient(90deg, #edf0f8 0%, #f8f9fc 45%, #edf0f8 90%);
    background-size: 220% 100%;
    animation: public-nav-auth-shimmer 1.15s ease-in-out infinite;
}

.public-nav-auth-skeleton-button {
    width: 148px;
    height: 40px;
}

.public-nav-auth-skeleton-chip {
    width: 92px;
    height: 40px;
}

.public-nav-auth-skeleton-mobile {
    width: 100%;
    height: 40px;
}

.public-nav-auth-skeleton-mobile-short {
    width: 72%;
    height: 40px;
}

@keyframes public-nav-auth-shimmer {
    0% {
        background-position: 120% 0;
    }
    100% {
        background-position: -120% 0;
    }
}

.workspace-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.3rem 0.72rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    border: 1px solid color-mix(in srgb, var(--primary) 22%, #e2e8f0);
    background: color-mix(in srgb, var(--primary) 10%, #ffffff);
    color: var(--primary);
    white-space: nowrap;
}

.workspace-pill-admin {
    border-color: color-mix(in srgb, #198754 24%, #d1e7dd);
    background: color-mix(in srgb, #198754 12%, #ffffff);
    color: #146c43;
}

.workspace-user-toggle {
    white-space: nowrap;
    font-size: 0.88rem;
    font-weight: 700;
}

.workspace-dropdown-menu .dropdown-item.active {
    background: color-mix(in srgb, var(--primary) 12%, #ffffff);
    color: var(--primary);
    font-weight: 700;
}

#mobileNav .btn[data-nav-key].is-active,
#mobileNav .btn[data-nav-key].active {
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 30%, #dce4fb);
    background: color-mix(in srgb, var(--primary) 8%, #ffffff);
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 12px;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.1;
}

.hero-section {
    position: relative;
}

.hero-card {
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.glass-card.hero-profile-card {
    overflow: hidden;
    padding: 0;
}

.hero-profile-media {
    width: 100%;
    height: clamp(180px, 17vw, 220px);
    overflow: hidden;
    border-radius: 1rem 1rem 0 0;
    background: rgba(255, 255, 255, 0.7);
}

.hero-profile-media picture,
.hero-profile-media img {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-profile-image {
    object-fit: cover;
    object-position: center;
}

.hero-profile-body {
    padding: 1.2rem;
}

.welfare-type-card {
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.welfare-type-card.active {
    border: 1px solid rgba(90, 49, 191, 0.35) !important;
    box-shadow: 0 12px 30px rgba(90, 49, 191, 0.12);
    transform: translateY(-1px);
}

.welfare-emergency-card.active {
    border-color: rgba(220, 53, 69, 0.35) !important;
    box-shadow: 0 12px 30px rgba(220, 53, 69, 0.12);
}

@media (max-width: 991.98px) {
    .hero-profile-media {
        height: 180px;
    }
}

.glass-card {
    background: var(--card-glass);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 1rem;
    padding: 1.2rem;
    box-shadow: 0 12px 35px rgba(38, 33, 80, 0.08);
}

.feature-card {
    background: #fff;
    border-radius: 0.8rem;
    padding: 1rem;
    border: 1px solid #eef0f9;
    height: 100%;
}

.soft-badge {
    background: color-mix(in srgb, var(--primary) 14%, white);
    color: var(--primary);
    border: 1px solid color-mix(in srgb, var(--primary) 35%, white);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--secondary)));
    border: none;
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.card-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 999px;
    padding: 0.22rem 0.7rem;
    font-size: 0.76rem;
    font-weight: 700;
    background: color-mix(in srgb, var(--accent) 16%, white);
    color: color-mix(in srgb, var(--accent) 70%, black);
}

.card-chip-soft {
    background: color-mix(in srgb, var(--primary) 12%, white);
    color: color-mix(in srgb, var(--primary) 78%, black);
}

.card-chip-success {
    background: color-mix(in srgb, #16a34a 14%, white);
    color: #166534;
}

.section-header .small-link,
.footer-link {
    color: var(--primary);
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

.mms-footer {
    background: rgba(255, 255, 255, 0.75);
    border-top: 1px solid rgba(255, 255, 255, 0.7);
}

.public-footer-official-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(91, 55, 183, 0.08);
}

.public-footer-official-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem;
    text-decoration: none;
}

.public-footer-official-link:focus-visible {
    outline: 3px solid rgba(91, 55, 183, 0.22);
    outline-offset: 3px;
}

.public-footer-official-img {
    display: block;
    width: auto;
    max-width: 110px;
    max-height: 36px;
    object-fit: contain;
}

.public-footer-official-img-seal {
    max-width: 38px;
    max-height: 34px;
}

.loading-state,
.empty-state {
    border: 1px dashed #d8deef;
    background: #fff;
    border-radius: 0.8rem;
    padding: 0.9rem;
    color: #6a6f85;
}

.module-card {
    display: block;
    background: #fff;
    border: 1px solid #eceffa;
    border-radius: 1rem;
    padding: 1rem;
    height: 100%;
    transition: all 0.3s ease;
}

.module-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(28, 33, 54, 0.08);
}

.public-site-maintenance-card {
    max-width: 680px;
}

.public-site-maintenance-logo {
    max-width: 180px;
    max-height: 96px;
    object-fit: contain;
}

.member-program-role-badges,
.member-program-payment-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.member-program-payment-summary {
    color: #566078;
}

.member-program-details-panel {
    border: 1px solid #e4e8f6;
    border-radius: 0.8rem;
    background: #f9fbff;
    padding: 0.75rem;
}

.member-program-role-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.75rem;
}

.member-program-role-panel {
    background: #fff;
    border: 1px solid #edf1fb;
    border-radius: 0.75rem;
    padding: 0.75rem;
}

.member-program-role-field-grid {
    display: grid;
    gap: 0.55rem;
}

.member-program-role-field-label {
    color: #6b7280;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.member-program-role-field-value {
    color: #1f2937;
    font-size: 0.86rem;
}

.org-preview-photo {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    object-fit: cover;
    border-radius: 0.75rem;
    border: 1px solid #dfe5f6;
    background: #f5f7ff;
}

.org-tree-list {
    list-style: none;
    margin: 0;
    padding-left: 1.05rem;
}

.org-tree-item {
    position: relative;
    margin-bottom: 0.65rem;
    padding-left: 0.8rem;
}

.org-tree-item::before {
    content: '';
    position: absolute;
    top: 0.7rem;
    left: 0;
    width: 0.55rem;
    height: 1px;
    background: #cfd8ef;
}

.org-tree-item::after {
    content: '';
    position: absolute;
    top: -0.8rem;
    bottom: -0.5rem;
    left: 0;
    width: 1px;
    background: #dce3f4;
}

.org-tree-list > .org-tree-item:first-child::after {
    top: 0.7rem;
}

.org-tree-list > .org-tree-item:last-child::after {
    bottom: calc(100% - 0.7rem);
}

.org-tree-card {
    background: #fff;
    border: 1px solid #e8ecf9;
    border-radius: 0.8rem;
    padding: 0.7rem 0.8rem;
}

body[data-page="public-organization"] .org-tree-card {
    border-left: 3px solid #5b47c6;
}

body[data-page="public-organization"] #publicOrganizationTreeView .org-tree-list {
    padding-left: 1.15rem;
}

body[data-page="public-organization"] #publicOrganizationDirectoryCard .module-card {
    border-radius: 0.85rem;
}

body[data-page="home"] .landing-section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.7rem;
}

body[data-page="home"] .landing-section-subtitle {
    max-width: 760px;
}

body[data-page="home"] .landing-card-grid > [class*='col-'] {
    display: flex;
}

body[data-page="home"] .landing-card-grid > [class*='col-'] > .module-card,
body[data-page="home"] .landing-card-grid > [class*='col-'] > a.module-card {
    width: 100%;
}

body[data-page="home"] .landing-section-card,
body[data-page="home"] .landing-unified-card {
    border-radius: 1rem;
    box-shadow: 0 8px 22px rgba(28, 33, 54, 0.06);
}

body[data-page="home"] .landing-unified-card {
    display: flex;
    flex-direction: column;
}

body[data-page="home"] .landing-card-title {
    line-height: 1.35;
    min-height: 2.7rem;
}

body[data-page="home"] .landing-line-clamp-3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.msi-card-image-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0.85rem;
    background: #f8fafc;
}

.msi-image-cover {
    object-fit: cover;
}

.msi-image-contain,
.msi-default-image {
    object-fit: contain !important;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.95), rgba(246, 248, 255, 0.82)),
        #fff;
    box-sizing: border-box;
}

.program-card-thumb.is-default,
.donation-campaign-thumb.is-default,
.donation-campaign-detail-banner.is-default,
.announcement-thumb.is-default,
.announcement-detail-banner.is-default,
.program-gallery-media-preview.is-default,
.program-preview-image.is-default,
.public-gallery-cover.is-default,
.public-gallery-thumb-image.is-default {
    padding: 0.85rem;
}

body[data-page="home"] .landing-program-card {
    min-height: 460px;
}

.landing-featured-program-card,
body[data-page="home"] .landing-featured-program-card {
    min-height: 360px;
    border-color: color-mix(in srgb, var(--primary) 14%, #e8ecfa);
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--primary) 10%, transparent), transparent 34%),
        #fff;
    overflow: hidden;
}

.landing-featured-program-card.is-mega-highlight,
body[data-page="home"] .landing-featured-program-card.is-mega-highlight {
    border-color: color-mix(in srgb, var(--primary) 28%, #e8ecfa);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--primary) 9%, #fff) 0%, #fff 56%),
        #fff;
}

.featured-program-layout,
body[data-page="home"] .featured-program-layout {
    display: grid;
    grid-template-columns: minmax(280px, 40%) minmax(0, 1fr);
    gap: 1.5rem;
    height: 100%;
    align-items: stretch;
    min-width: 0;
}

.msi-featured-mega-layout {
    grid-template-columns: minmax(280px, 40%) minmax(0, 1fr);
}

.landing-featured-program-card:not(.is-mega-highlight) .featured-program-layout,
body[data-page="home"] .landing-featured-program-card:not(.is-mega-highlight) .featured-program-layout {
    grid-template-columns: 1fr;
}

.featured-program-media,
body[data-page="home"] .featured-program-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    border-radius: 0.9rem;
    overflow: hidden;
    background: #f4f6fb;
    border: 1px solid #e3e9f7;
    min-height: 210px;
    max-height: 360px;
    aspect-ratio: 16 / 9;
}

.landing-featured-program-card:not(.is-mega-highlight) .featured-program-media,
body[data-page="home"] .landing-featured-program-card:not(.is-mega-highlight) .featured-program-media {
    min-height: 160px;
    max-height: 220px;
}

.featured-program-media img,
body[data-page="home"] .featured-program-media img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    display: block;
}

.landing-featured-program-card.is-mega-highlight .featured-program-media,
body[data-page="home"] .landing-featured-program-card.is-mega-highlight .featured-program-media,
.msi-featured-mega-card .msi-featured-mega-image-wrap {
    max-height: 360px;
}

.featured-program-media.is-default-banner {
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.92), rgba(244, 246, 251, 0.78)),
        #f4f6fb;
    padding: 1.4rem;
}

.landing-featured-program-card.is-mega-highlight .featured-program-media.is-default-banner,
body[data-page="home"] .landing-featured-program-card.is-mega-highlight .featured-program-media.is-default-banner,
.msi-featured-mega-card .msi-featured-mega-image-wrap.is-default-banner {
    background: #fff;
    padding: 1rem;
}

.featured-program-media.is-default-banner img {
    object-fit: contain;
    max-height: 100%;
    padding: 0;
}

.landing-featured-program-card.is-mega-highlight .featured-program-media.is-default-banner img,
body[data-page="home"] .landing-featured-program-card.is-mega-highlight .featured-program-media.is-default-banner img,
.msi-featured-mega-card .msi-featured-mega-image-wrap.is-default-banner img,
.msi-featured-mega-card .msi-featured-mega-image.is-default {
    object-fit: contain;
    max-height: 360px;
}

.msi-featured-mega-card .msi-featured-mega-image-wrap:not(.is-default-banner) img,
.msi-featured-mega-card .msi-featured-mega-image:not(.is-default) {
    object-fit: cover;
}

.featured-program-body,
body[data-page="home"] .featured-program-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-wrap: anywhere;
}

.msi-featured-mega-content,
.featured-program-body .row > * {
    min-width: 0;
}

.featured-program-body .fw-semibold {
    overflow-wrap: anywhere;
}

.featured-program-info-grid,
body[data-page="home"] .featured-program-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    min-width: 0;
}

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

.featured-program-info-item,
body[data-page="home"] .featured-program-info-item {
    border: 1px solid #e8ecfa;
    border-radius: 0.75rem;
    background: #fbfcff;
    padding: 0.55rem 0.65rem;
    min-width: 0;
}

.featured-program-info-item span,
.featured-program-info-item strong,
body[data-page="home"] .featured-program-info-item span,
body[data-page="home"] .featured-program-info-item strong {
    display: block;
}

.featured-program-info-item span,
body[data-page="home"] .featured-program-info-item span {
    color: #6b7280;
    font-size: 0.74rem;
}

.featured-program-info-item strong,
body[data-page="home"] .featured-program-info-item strong {
    color: #1f2937;
    font-size: 0.88rem;
}

.featured-program-info-item small {
    display: block;
    margin-top: 0.15rem;
    color: var(--primary);
    font-size: 0.72rem;
}

body[data-page="home"] .featured-mega-chip {
    background: color-mix(in srgb, #15803d 13%, #fff);
    color: #166534;
}

body[data-page="home"] .landing-kuliah-card {
    min-height: 182px;
}

body[data-page="home"] .landing-donation-card {
    min-height: 390px;
}

body[data-page="home"] .landing-gallery-card {
    min-height: 372px;
}

body[data-page="home"] .landing-gallery-card .public-gallery-cover {
    height: 176px;
}

body[data-page="home"] .landing-gallery-play-badge {
    inset: auto 0.75rem 0.75rem auto;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: rgba(82, 43, 153, 0.88);
    box-shadow: 0 0.5rem 1.2rem rgba(31, 41, 55, 0.22);
    font-size: 1.25rem;
}

body[data-page="home"] .landing-empty-state {
    border-radius: 0.85rem;
    padding: 0.9rem 1rem;
}

body[data-page="home"] .donation-friday-summary-card {
    min-height: 100%;
}

body[data-page="home"] .landing-community-card,
body[data-page="home"] .landing-community-subcard {
    border-color: #e8ecfa;
}

.card-chip-cancelled {
    background: rgba(214, 61, 57, 0.14);
    color: #9c2e2b;
}

.program-card-cancelled {
    border-color: #f0c9c8;
    background: linear-gradient(180deg, #fff7f7 0%, #fff 100%);
}

.program-card-cancelled:hover {
    transform: none;
    box-shadow: none;
}

.program-card-cancelled .program-card-thumb {
    filter: grayscale(0.42) saturate(0.7);
    opacity: 0.92;
}

.program-qurban-card-meta {
    border: 1px solid #e8ecfa;
    background: #fbfcff;
    border-radius: 0.75rem;
    padding: 0.55rem 0.65rem 0.45rem;
}

.program-qurban-status-grid {
    display: grid;
    gap: 0.45rem;
}

.program-qurban-status-row {
    border: 1px solid #e8ecfa;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, #fff, #fbfcff);
    padding: 0.5rem 0.6rem;
}

.program-qurban-status-row span,
.program-qurban-status-row strong,
.program-qurban-status-row em {
    display: block;
}

.program-qurban-status-row span {
    color: #6b7280;
    font-size: 0.75rem;
}

.program-qurban-status-row strong {
    color: #1f2937;
    font-size: 0.9rem;
}

.program-qurban-status-row em {
    margin-top: 0.12rem;
    color: var(--primary);
    font-size: 0.72rem;
    font-style: normal;
}

.program-qurban-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    border: 1px solid #e8ecfa;
    background: #fbfcff;
    border-radius: 0.85rem;
    padding: 0.8rem;
}

.program-qurban-detail-grid span,
.program-qurban-detail-grid strong,
.program-qurban-detail-grid small {
    display: block;
}

.program-qurban-detail-grid small {
    margin-top: 0.12rem;
    color: var(--primary);
    font-size: 0.72rem;
}

.qurban-registration-choice-grid,
.qurban-existing-role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
}

.qurban-registration-choice-card,
.qurban-existing-role-card {
    border: 1px solid #e8ecfa;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, #fff, #fbfcff);
    padding: 0.85rem;
}

@media (max-width: 575.98px) {
    .program-qurban-detail-grid {
        grid-template-columns: 1fr;
    }

    .featured-program-info-grid,
    body[data-page="home"] .featured-program-info-grid,
    .qurban-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .featured-program-layout,
    body[data-page="home"] .featured-program-layout {
        grid-template-columns: 1fr;
    }

    .featured-program-media,
    body[data-page="home"] .featured-program-media {
        min-height: 180px;
        max-height: 260px;
    }
}

.program-card-thumb {
    width: 100%;
    height: 148px;
    object-fit: cover;
    border-radius: 0.8rem;
    border: 1px solid #e9edf9;
    margin-bottom: 0.75rem;
    background: #f4f6fb;
}

.program-card-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a829c;
    font-size: 0.82rem;
    font-weight: 600;
}

.donation-campaign-card {
    border: 1px solid #e8ecf9;
}

.donation-campaign-thumb {
    width: 100%;
    height: 152px;
    object-fit: cover;
    border-radius: 0.8rem;
    border: 1px solid #e9edf9;
    margin-bottom: 0.75rem;
    background: #f6f8ff;
}

.donation-campaign-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a829c;
    font-size: 0.82rem;
    font-weight: 600;
}

.donation-campaign-detail-banner {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: 0.9rem;
    border: 1px solid #e8ecf9;
    background: #f6f8ff;
}

.donation-bank-account-item {
    border: 1px solid #e8ecf9;
    border-radius: 0.75rem;
    padding: 0.65rem 0.75rem;
    background: #fcfdff;
}

.donation-qr-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.55rem;
    border: 1px solid #dfe5f6;
}

.member-profile-avatar-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e9edf8;
    border-radius: 0.9rem;
    padding: 0.85rem 0.95rem;
}

.member-profile-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 8px 20px rgba(26, 37, 74, 0.16);
    background: #edf2ff;
}

.member-profile-photo-btn {
    font-size: 0.74rem;
    line-height: 1.2;
}

.member-profile-readonly-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid #e6ebf8;
    border-radius: 0.7rem;
    background: #f8faff;
    padding: 0.46rem 0.64rem;
    min-height: 40px;
}

.member-profile-readonly-value {
    font-weight: 600;
    color: #1f2b46;
    word-break: break-word;
}

#memberProfileCompletenessMissing .status-badge {
    display: inline-flex;
    margin-right: 0.28rem;
    margin-bottom: 0.28rem;
}

#adminPrayerSyncLogsTable {
    max-height: 420px;
    overflow: auto;
}

#adminPrayerSyncLogsTable table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
}

#adminPrayerBackupHistoryTable {
    max-height: 360px;
    overflow: auto;
}

#adminPrayerBackupHistoryTable table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
}

#adminPrayerBackupPreviewBox {
    max-height: 320px;
    overflow: auto;
}

@media (max-width: 768px) {
    #adminPrayerSyncLogsTable {
        max-height: 320px;
    }

    #adminPrayerBackupHistoryTable {
        max-height: 280px;
    }

    #adminPrayerBackupPreviewBox {
        max-height: 260px;
    }
}

.quick-action-card {
    text-decoration: none;
    color: var(--text-main);
}

.quick-action-card:hover {
    color: var(--text-main);
}

.quick-action-icon {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 10px 24px rgba(34, 39, 61, 0.14);
}

.quick-feedback-card {
    text-decoration: none;
    color: var(--text-main);
}

.quick-feedback-card:hover {
    color: var(--text-main);
}

.quick-feedback-card-danger {
    border-color: #f4c8c8;
    background: linear-gradient(135deg, #fff, #fff8f8);
}

.quick-feedback-card-danger .quick-feedback-icon {
    color: #b42318;
    background: #fff1f1;
}

.quick-feedback-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--primary) 14%, white);
    color: var(--primary);
    font-size: 1rem;
}

.contact-social-card {
    border: 1px solid rgba(91, 55, 183, 0.12);
}

.contact-social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.75rem;
}

.contact-social-link,
.footer-social-link,
.landing-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(91, 55, 183, 0.2);
    border-radius: 16px;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.72);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.contact-social-link:hover,
.contact-social-link:focus,
.footer-social-link:hover,
.footer-social-link:focus,
.landing-social-link:hover,
.landing-social-link:focus {
    color: var(--primary);
    border-color: rgba(91, 55, 183, 0.45);
    box-shadow: 0 12px 28px rgba(91, 55, 183, 0.12);
    transform: translateY(-1px);
}

.contact-social-link:focus-visible,
.footer-social-link:focus-visible,
.landing-social-link:focus-visible {
    outline: 3px solid rgba(91, 55, 183, 0.22);
    outline-offset: 3px;
}

.contact-social-icon,
.footer-social-icon,
.landing-social-icon {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--primary);
    background: rgba(91, 55, 183, 0.1);
    flex: 0 0 auto;
}

.footer-social-links,
.landing-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-social-link {
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
    font-size: 0.88rem;
}

.footer-social-icon {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
}

@media (max-width: 575.98px) {
    .public-footer-official-icons {
        gap: 0.65rem;
        margin-top: 1rem;
        padding-top: 0.85rem;
    }

    .public-footer-official-img {
        max-width: 96px;
        max-height: 32px;
    }

    .public-footer-official-img-seal {
        max-width: 34px;
        max-height: 31px;
    }
}

.branding-preview-navbar {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem;
    border: 1px solid rgba(91, 55, 183, 0.14);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.82);
}

.branding-preview-logo {
    width: 5rem;
    height: 3.25rem;
    object-fit: contain;
    border-radius: 0.75rem;
    background: #fff;
    border: 1px solid rgba(91, 55, 183, 0.1);
}

.branding-google-preview {
    border: 1px solid rgba(91, 55, 183, 0.12);
    border-radius: 1rem;
    padding: 1rem;
    background: #fff;
}

.branding-google-title {
    color: #1a0dab;
    font-size: 1.05rem;
    font-weight: 600;
}

.branding-og-preview {
    overflow: hidden;
    border: 1px solid rgba(91, 55, 183, 0.14);
    border-radius: 1rem;
    background: #fff;
}

.branding-og-preview img {
    width: 100%;
    height: 11rem;
    object-fit: contain;
    background: linear-gradient(135deg, #ffffff, #f7f5ff);
    border-bottom: 1px solid rgba(91, 55, 183, 0.1);
}

.landing-social-card {
    border: 1px solid rgba(91, 55, 183, 0.12);
    background: rgba(255, 255, 255, 0.78);
}

.program-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem 0.48rem;
    border-radius: 999px;
    background: color-mix(in srgb, #0f9d58 18%, #fff);
    color: #0a6b3c;
    font-size: 0.68rem;
    font-weight: 700;
    border: 1px solid color-mix(in srgb, #0f9d58 35%, #d9efe2);
}

.kuliah-matrix-table th,
.kuliah-matrix-table td {
    vertical-align: top;
}

.kuliah-mini-item {
    border: 1px solid #e7ecfa;
    border-radius: 0.65rem;
    padding: 0.42rem 0.48rem;
    margin-bottom: 0.38rem;
    background: #fff;
}

.kuliah-mini-item:last-child {
    margin-bottom: 0;
}

.kuliah-mini-item-cancelled {
    border-color: #f3c3c3;
    background: #fff7f7;
}

.kuliah-cancelled-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.08rem 0.38rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #9b1c1c;
    background: #fde8e8;
    border: 1px solid #f6b6b6;
    vertical-align: middle;
}

.floating-feedback-widget {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 1040;
}

.floating-feedback-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #7b1fa2);
    box-shadow: 0 14px 28px rgba(29, 34, 58, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
}

.floating-feedback-btn:hover,
.floating-feedback-btn:focus {
    color: #fff;
    transform: translateY(-2px);
}

.floating-feedback-btn:focus-visible,
.floating-feedback-option:focus-visible,
.floating-feedback-menu .btn-close:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary) 36%, #ffffff);
    outline-offset: 3px;
}

.floating-feedback-btn i {
    font-size: 0.95rem;
}

.floating-feedback-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.75rem);
    width: min(360px, calc(100vw - 2rem));
    border: 1px solid rgba(126, 87, 194, 0.18);
    border-radius: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 48px rgba(34, 28, 67, 0.22);
}

.floating-feedback-menu-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #edf0f7;
}

.floating-feedback-options {
    display: grid;
    gap: 0.65rem;
}

.floating-feedback-option {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 0.75rem;
    border: 1px solid #e6eaf5;
    border-radius: 0.85rem;
    background: #fff;
    color: var(--text-main);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.floating-feedback-option:hover {
    color: var(--text-main);
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--primary) 30%, #e6eaf5);
    box-shadow: 0 10px 24px rgba(34, 28, 67, 0.09);
}

.floating-feedback-option-icon {
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 2.25rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 13%, #ffffff);
}

.floating-feedback-option-danger {
    border-color: #f4c8c8;
}

.floating-feedback-option-danger .floating-feedback-option-icon {
    color: #b42318;
    background: #fff1f1;
}

.floating-feedback-backdrop {
    display: none;
}

.map-placeholder {
    border-radius: 0.8rem;
    min-height: 180px;
    display: grid;
    place-items: center;
    background: repeating-linear-gradient(
        45deg,
        #fafbfd,
        #fafbfd 12px,
        #f0f3fb 12px,
        #f0f3fb 24px
    );
    color: #53607b;
    font-weight: 600;
}

.map-embed {
    width: 100%;
    min-height: 320px;
    border: 0;
    border-radius: 0.9rem;
    box-shadow: inset 0 0 0 1px #e8ecf8;
}

.map-embed-wrapper {
    position: relative;
}

.map-overlay-link {
    position: absolute;
    inset: 0;
    border-radius: 0.9rem;
}

.announcement-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.announcement-link:hover {
    color: inherit;
}

.announcement-thumb {
    width: 100%;
    height: 148px;
    object-fit: cover;
    border-radius: 0.8rem;
    border: 1px solid #e9edf9;
    margin-bottom: 0.75rem;
}

.announcement-detail-banner {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 0.9rem;
    border: 1px solid #e9edf9;
}

.announcement-content {
    white-space: normal;
    line-height: 1.65;
}

.bkkmsi-hero {
    position: relative;
    overflow: hidden;
}

.bkkmsi-flow-step {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    border-bottom: 1px dashed #e6ebf9;
    padding: 0.5rem 0;
}

.bkkmsi-flow-step:last-child {
    border-bottom: 0;
}

.bkkmsi-eligibility-card {
    border: 1px solid #e9edf9;
    border-radius: 0.9rem;
    padding: 0.85rem;
    background: linear-gradient(130deg, rgba(79, 44, 163, 0.06), rgba(255, 255, 255, 0.95));
}

.bkkmsi-eligibility-header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
}

.bkkmsi-eligibility-icon {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 16%, #fff);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bkkmsi-eligibility-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.bkkmsi-eligibility-list li {
    position: relative;
    padding-left: 1.4rem;
    font-size: 0.88rem;
    margin-bottom: 0.42rem;
    color: #3b4558;
}

.bkkmsi-eligibility-list li:last-child {
    margin-bottom: 0;
}

.bkkmsi-eligibility-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0.02rem;
    width: 1rem;
    height: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: color-mix(in srgb, #15803d 13%, #fff);
    color: #166534;
    font-size: 0.68rem;
    font-weight: 700;
}

.bkkmsi-flow-step-index {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 18%, white);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.bkkmsi-process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.7rem;
}

.bkkmsi-process-item {
    background: #fff;
    border: 1px solid #e9edf9;
    border-radius: 0.85rem;
    padding: 0.75rem;
    font-size: 0.86rem;
}

.emergency-banner {
    border-left: 5px solid #d32f2f;
    background: linear-gradient(90deg, rgba(211, 47, 47, 0.12), rgba(255, 255, 255, 0.88));
}

.prayer-duty-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px dashed #e8ecf8;
    padding: 0.3rem 0;
}

.prayer-duty-row:last-child {
    border-bottom: 0;
}

.duty-person-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.duty-person-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(79, 44, 163, 0.18);
    background: #fff;
}

.duty-person-name {
    display: block;
}

.duty-person-meta {
    display: block;
    color: #6b7280;
    font-size: 0.72rem;
    line-height: 1.2;
}

.duty-friday-card {
    border: 1px solid rgba(79, 44, 163, 0.14);
    border-radius: 0.9rem;
    background: linear-gradient(120deg, rgba(79, 44, 163, 0.06), rgba(22, 163, 74, 0.05));
    padding: 0.85rem;
}

.duty-friday-card-empty {
    background: rgba(248, 250, 252, 0.86);
}

.duty-friday-field {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.78);
    padding: 0.6rem 0.7rem;
    height: 100%;
}

.prayer-widget-headline {
    border: 1px solid #e5ebf7;
    border-radius: 0.8rem;
    background: linear-gradient(120deg, rgba(79, 44, 163, 0.08), rgba(255, 255, 255, 0.92));
    padding: 0.7rem;
    margin-bottom: 0.65rem;
}

.prayer-widget-section {
    border: 1px solid #e5ebf7;
    border-radius: 0.8rem;
    background: linear-gradient(120deg, rgba(79, 44, 163, 0.06), rgba(255, 255, 255, 0.92));
    padding: 0.75rem;
}

.prayer-widget-section-tomorrow {
    background: linear-gradient(120deg, rgba(22, 101, 52, 0.05), rgba(255, 255, 255, 0.94));
}

.prayer-times-list {
    display: grid;
    gap: 0.4rem;
}

.prayer-times-list.compact {
    gap: 0.35rem;
}

.prayer-time-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid #e7ecf8;
    border-radius: 0.7rem;
    padding: 0.45rem 0.55rem;
    background: #fff;
}

.prayer-time-row .name {
    color: #4b5563;
    font-size: 0.88rem;
}

.prayer-time-row .value {
    font-weight: 700;
    font-size: 0.88rem;
    color: #1f2937;
}

.prayer-time-row.is-current {
    border-color: color-mix(in srgb, var(--primary) 35%, #dbe2f5);
    background: color-mix(in srgb, var(--primary) 10%, #fff);
}

.prayer-time-row.is-next {
    border-color: color-mix(in srgb, #15803d 35%, #dbe2f5);
    background: color-mix(in srgb, #15803d 10%, #fff);
}

.prayer-time-state {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #1f2937;
    background: #eef2ff;
}

.prayer-widget-times-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 0.9rem;
    font-size: 0.88rem;
}

.prayer-widget-times-grid .label {
    color: #64748b;
}

.prayer-widget-times-grid .value {
    text-align: right;
    font-weight: 600;
}

.prayer-widget-meta {
    margin-top: 0.65rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.prayer-current-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 13%, #fff);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
}

.prayer-next-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: color-mix(in srgb, #15803d 14%, #fff);
    color: #166534;
    font-size: 0.75rem;
    font-weight: 700;
}

.prayer-progress-wrap {
    display: grid;
    gap: 0.35rem;
}

.prayer-progress-track {
    width: 100%;
    height: 0.58rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 10%, #e8edf9);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--primary) 12%, #dfe6f5);
}

.prayer-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 78%, #ffffff), #15803d);
    border-radius: inherit;
    transition: width 0.7s linear;
}

.prayer-progress-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6b7280;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
}

.gallery-item {
    border-radius: 1rem;
    width: 100%;
    border: 1px solid #e9edf9;
}

.program-gallery-media-wrap {
    border-top: 1px dashed #d8dfef;
    padding-top: 0.75rem;
}

.program-gallery-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem;
}

.program-gallery-media-card {
    border: 1px solid #dde5f5;
    border-radius: 0.9rem;
    background: #fff;
    padding: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.program-gallery-media-preview {
    width: 100%;
    height: 168px;
    border-radius: 0.75rem;
    border: 1px solid #e3e9f7;
    background: #f5f7fd;
    object-fit: cover;
}

.program-gallery-media-body .form-label.small {
    color: #5f6681;
    font-weight: 600;
}

.public-gallery-album-card {
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
}

.public-gallery-cover-wrap {
    position: relative;
    border-radius: 0.9rem;
    overflow: hidden;
    background: #f4f7ff;
    border: 1px solid #e1e8fa;
}

.public-gallery-cover {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.public-gallery-thumb-card {
    border: 1px solid #dce4f5;
    border-radius: 0.95rem;
    overflow: hidden;
    background: #fff;
    padding: 0.6rem;
}

.public-gallery-thumb-image,
.public-gallery-thumb-video-wrap {
    width: 100%;
    height: 210px;
    border-radius: 0.8rem;
    border: 1px solid #e3eaf8;
    overflow: hidden;
    background: #f6f8fe;
    position: relative;
}

.public-gallery-thumb-image {
    object-fit: cover;
    display: block;
}

.public-gallery-thumb-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.public-gallery-play-icon {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.public-gallery-lightbox-content {
    width: 100%;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.public-gallery-lightbox-media {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 0.75rem;
    border: 1px solid #dde5f7;
    background: #111827;
    object-fit: contain;
}

.dashboard-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px 1fr;
}

.dashboard-sidebar {
    background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 80%, #1e1f38), #1f2137);
    color: #fff;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    position: sticky;
    top: 0;
}

.dashboard-sidebar #logoutBtn {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: color-mix(in srgb, var(--primary) 72%, #1e1f38);
}

.sidebar-brand {
    color: #fff;
    text-decoration: none;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.sidebar-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 2px;
}

.sidebar-brand strong {
    display: block;
    line-height: 1;
}

.sidebar-brand span {
    font-size: 0.78rem;
    opacity: 0.8;
}

.sidebar-link {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.65rem;
    padding: 0.5rem 0.7rem;
    font-size: 0.92rem;
}

.sidebar-link.active,
.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.sidebar-sub-link {
    margin-left: 0.8rem;
    padding: 0.38rem 0.62rem;
    font-size: 0.84rem;
    border-style: dashed;
    opacity: 0.92;
}

.dashboard-main {
    padding: 1.25rem;
}

.dashboard-topbar {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 0.95rem;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-wrapper .notification-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #223047;
}

.notification-wrapper .notification-btn:hover {
    background: color-mix(in srgb, var(--primary) 10%, #fff);
    border-color: color-mix(in srgb, var(--primary) 25%, #d6deee);
}

.notification-dropdown {
    width: min(420px, calc(100vw - 2rem));
    max-height: 420px;
    overflow: hidden;
    border-radius: 0.85rem;
    border: 1px solid #dbe4f4;
    box-shadow: 0 12px 30px rgba(28, 42, 68, 0.15);
}

.notification-dropdown-header {
    border-bottom: 1px solid #e7edf7;
    padding: 0.65rem 0.9rem;
    background: #f8fbff;
}

.notification-list {
    max-height: 340px;
    overflow: auto;
}

.notification-item {
    display: block;
    padding: 0.7rem 0.9rem;
    text-decoration: none;
    color: #1e2a42;
    border-bottom: 1px solid #edf2fa;
}

.notification-item:last-child {
    border-bottom: 0;
}

.notification-item:hover {
    background: #f7fbff;
}

.notification-item.notification-item-static {
    cursor: default;
}

.notification-item-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.notification-item-desc {
    font-size: 0.76rem;
    color: #5f6a83;
}

.notification-item-reason {
    margin-top: 0.3rem;
    font-size: 0.76rem;
    color: #9a2d2a;
}

.notification-item-actions {
    margin-top: 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.notification-item-actions .btn-link {
    font-size: 0.76rem;
    text-decoration: none;
}

.notification-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(214, 61, 57, 0.14);
    color: #9c2e2b;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 0 0.45rem;
    text-align: center;
    line-height: 1.1;
    white-space: nowrap;
}

.mms-toast-region {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: min(360px, calc(100vw - 1.5rem));
    pointer-events: none;
}

.mms-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.6rem;
    border-radius: 0.75rem;
    padding: 0.62rem 0.72rem;
    border: 1px solid #d8e2f2;
    background: #ffffff;
    color: #1f2b3f;
    box-shadow: 0 10px 24px rgba(25, 41, 72, 0.16);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mms-toast.is-show {
    opacity: 1;
    transform: translateY(0);
}

.mms-toast.is-leaving {
    opacity: 0;
    transform: translateY(-8px);
}

.mms-toast-success {
    border-color: #b9e6cb;
    background: #f4fcf7;
}

.mms-toast-error {
    border-color: #f5c2c0;
    background: #fff6f6;
}

.mms-toast-warning {
    border-color: #f3dfb0;
    background: #fffaf0;
}

.mms-toast-info {
    border-color: #c8ddfb;
    background: #f4f8ff;
}

.mms-toast-message {
    font-size: 0.84rem;
    line-height: 1.35;
}

.mms-toast-close {
    border: 0;
    background: transparent;
    color: #4a5674;
    font-size: 1rem;
    line-height: 1;
    padding: 0 0.15rem;
    cursor: pointer;
}

.btn.is-copied {
    opacity: 0.95;
}

.mms-temporary-highlight {
    animation: mmsRowPulse 4.5s ease;
    background: color-mix(in srgb, var(--primary) 14%, #ffffff) !important;
}

.msi-action-target {
    transition: background-color .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.msi-row-highlight,
.action-required-highlight {
    background: color-mix(in srgb, #fff6cc 72%, #ffffff) !important;
    border-left: 4px solid color-mix(in srgb, var(--primary) 70%, #ffffff) !important;
}

.msi-row-highlight td:first-child::before,
.action-required-highlight td:first-child::before {
    content: "Action Required";
    display: inline-flex;
    align-items: center;
    margin-right: 0.45rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
}

.msi-section-highlight {
    background: color-mix(in srgb, #fff6cc 40%, #ffffff) !important;
    border: 1px solid color-mix(in srgb, var(--primary) 24%, #ffffff) !important;
    border-left: 4px solid color-mix(in srgb, var(--primary) 70%, #ffffff) !important;
    border-radius: 12px;
}

@keyframes mmsRowPulse {
    0% {
        box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--primary) 50%, #ffffff);
        background: color-mix(in srgb, var(--primary) 18%, #ffffff);
    }
    65% {
        box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 24%, #ffffff);
    }
    100% {
        box-shadow: inset 0 0 0 0 transparent;
        background: transparent;
    }
}

@media (max-width: 767.98px) {
    .mms-toast-region {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        top: auto;
        bottom: 1rem;
        width: min(420px, calc(100vw - 1rem));
    }
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ecc71;
}

.stat-card {
    border-radius: 0.9rem;
    border: 1px solid #e9eeff;
    background: #fff;
    padding: 1rem;
}

.stat-card .value {
    font-size: 1.45rem;
    font-weight: 800;
    color: color-mix(in srgb, var(--primary) 70%, black);
}

.dashboard-action-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.dashboard-action-item {
    border: 1px solid #e7ebf8;
    border-radius: 0.82rem;
    background: #fff;
    padding: 0.72rem 0.82rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.72rem;
}

.dashboard-activity-timeline-scrollable {
    --dashboard-activity-visible-rows: 6;
    --dashboard-activity-row-height: 4.35rem;
    --dashboard-activity-row-gap: 0.72rem;
    max-height: calc(
        (var(--dashboard-activity-visible-rows) * var(--dashboard-activity-row-height))
        + ((var(--dashboard-activity-visible-rows) - 1) * var(--dashboard-activity-row-gap))
    );
    overflow-y: auto;
    padding-right: 0.35rem;
}

.dashboard-activity-item {
    border-left: 3px solid color-mix(in srgb, var(--primary) 26%, #d7ddf2);
    padding: 0.12rem 0.72rem 0.1rem;
}

.dashboard-activity-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dashboard-finance-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dashboard-finance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.7rem;
    border-bottom: 1px dashed #e8ecf8;
    padding-bottom: 0.32rem;
    font-size: 0.9rem;
}

.dashboard-finance-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.dashboard-today-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.7rem;
}

.dashboard-today-card {
    border: 1px solid #e6ebf8;
    border-radius: 0.82rem;
    background: #fff;
    padding: 0.75rem 0.82rem;
}

.dashboard-mini-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.dashboard-mini-list-item {
    border-bottom: 1px dashed #e8edf8;
    padding-bottom: 0.45rem;
}

.dashboard-mini-list-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.dashboard-weekly-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.dashboard-weekly-metric {
    border: 1px solid #e7ebf8;
    border-radius: 0.78rem;
    background: #fff;
    padding: 0.62rem 0.72rem;
}

.dashboard-weekly-metric .value {
    font-size: 1.25rem;
    font-weight: 800;
    color: color-mix(in srgb, var(--primary) 70%, black);
    line-height: 1.2;
}

.dashboard-health-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.dashboard-health-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px dashed #e8ecf8;
    padding-bottom: 0.35rem;
    font-size: 0.9rem;
}

.dashboard-health-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.dashboard-widget-option {
    border: 1px solid #e7ebf8;
    border-radius: 0.78rem;
    padding: 0.72rem 0.82rem;
    background: #fff;
    cursor: pointer;
}

.dashboard-widget-option:hover {
    border-color: color-mix(in srgb, var(--primary) 32%, #d5def5);
    background: color-mix(in srgb, var(--primary) 4%, #ffffff);
}

.dashboard-widget-option .form-check-input {
    margin-top: 0.22rem;
}

.dashboard-widget-option .dashboard-widget-title {
    font-weight: 700;
    color: color-mix(in srgb, var(--primary) 68%, #1f2a44);
}

.dashboard-widget-option .dashboard-widget-desc {
    font-size: 0.84rem;
}

@media (min-width: 992px) {
    .dashboard-today-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.stat-mini-new-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.16rem 0.48rem;
    border: 1px solid color-mix(in srgb, #2e7d32 28%, #cfead6);
    background: color-mix(in srgb, #2e7d32 12%, #ffffff);
    line-height: 1;
}

.stat-mini-new-label {
    font-size: 0.62rem;
    text-transform: lowercase;
    letter-spacing: 0.02em;
    font-weight: 700;
    color: #2e7d32;
}

.stat-mini-new-value {
    font-size: 0.72rem;
    font-weight: 800;
    color: #1f5f27;
}

.palette-preview {
    display: flex;
    gap: 0.5rem;
}

.palette-swatch {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sidebar-link.disabled {
    opacity: 0.48;
    pointer-events: none;
}

.sidebar-empty-state {
    border: 1px dashed rgba(255, 255, 255, 0.35);
    border-radius: 0.75rem;
    padding: 0.75rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    line-height: 1.35;
}

.crud-toolbar .form-label {
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
}

.table-card {
    overflow: hidden;
}

.table-card .table {
    margin-bottom: 0;
}

.table-card .table thead th {
    background: #f8f9fe;
    border-bottom: 1px solid #e9edf8;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #5b647f;
}

.table-card .table td {
    border-color: #eef2fb;
    vertical-align: middle;
}

.table-code {
    font-weight: 700;
    font-size: 0.85rem;
    color: color-mix(in srgb, var(--primary) 72%, black);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    text-transform: capitalize;
}

.status-badge.status-active,
.status-badge.status-approved,
.status-badge.status-published,
.status-badge.status-completed,
.status-badge.status-paid,
.status-badge.status-enabled,
.status-badge.status-accepted,
.status-badge.status-uploaded,
.status-badge.status-removed,
.status-badge.status-converted-to-po-wo,
.status-badge.status-converted-to-work-order,
.status-badge.status-approved-for-payment {
    background: rgba(46, 125, 50, 0.14);
    color: #1e6b2f;
}

.status-badge.status-pending,
.status-badge.status-draft,
.status-badge.status-postponed,
.status-badge.status-reserved,
.status-badge.status-under-maintenance,
.status-badge.status-pending-vendor-quotation,
.status-badge.status-quotation-received,
.status-badge.status-under-review,
.status-badge.status-committee-review,
.status-badge.status-work-in-progress,
.status-badge.status-pending-verification,
.status-badge.status-invoice-received,
.status-badge.status-unread,
.status-badge.status-action-required,
.status-badge.status-removal-requested {
    background: rgba(237, 162, 32, 0.15);
    color: #8b5e07;
}

.status-badge.status-pending-review,
.status-badge.status-awaiting-review,
.status-badge.status-pending-admin-review {
    background: rgba(237, 162, 32, 0.2);
    color: #7a4d00;
    font-weight: 800;
}

.member-doc-pending-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.member-doc-pending-icon {
    font-size: 0.78rem;
    color: #b45309;
}

.status-badge.status-inactive,
.status-badge.status-not-registered,
.status-badge.status-disabled,
.status-badge.status-cancelled,
.status-badge.status-rejected,
.status-badge.status-damaged,
.status-badge.status-retired,
.status-badge.status-suspended,
.status-badge.status-expired {
    background: rgba(214, 61, 57, 0.14);
    color: #9c2e2b;
}

.status-badge.status-read {
    background: rgba(84, 110, 122, 0.16);
    color: #34434d;
}

.status-badge.status-visible {
    background: rgba(46, 125, 50, 0.14);
    color: #1e6b2f;
}

.status-badge.status-hidden {
    background: rgba(84, 110, 122, 0.16);
    color: #34434d;
}

.status-badge.status-info {
    background: rgba(59, 130, 246, 0.14);
    color: #1e3a8a;
}

.status-badge.status-critical {
    background: rgba(220, 38, 38, 0.16);
    color: #991b1b;
}

.table-actions {
    display: inline-flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.member-main-table-scroll {
    max-height: 590px;
    overflow-y: auto;
}

.member-main-table-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f7f9fe;
}

.access-role-card {
    border: 1px solid #e8edf9;
    border-radius: 0.85rem;
    background: #fff;
    padding: 0.85rem;
}

.access-role-search-scroll {
    max-height: 460px;
}

.access-role-directory-scroll,
.access-role-audit-scroll {
    max-height: 560px;
}

.access-role-badges {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.access-diagnostic-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #e8edf9;
    border-radius: 0.75rem;
    background: #f8f9ff;
}

.access-role-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem 1rem;
}

.access-role-preview-card {
    border-radius: 0.8rem;
}

@media (max-width: 991.98px) {
    .access-role-directory-scroll,
    .access-role-audit-scroll {
        max-height: 500px;
    }
}

@media (max-width: 575.98px) {
    .access-role-profile-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .access-role-search-scroll,
    .access-role-directory-scroll,
    .access-role-audit-scroll {
        max-height: 430px;
    }
}

.mono-small {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.82rem;
}

.asset-label-card {
    border: 2px solid #1f2137;
    border-radius: 0.85rem;
    padding: 0.9rem;
    background: #fff;
}

.asset-label-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
}

.asset-label-grid {
    display: grid;
    grid-template-columns: 124px 1fr;
    gap: 0.75rem;
    align-items: start;
}

.asset-label-qr {
    width: 124px;
    height: 124px;
    border: 1px solid #dbe1f2;
    border-radius: 0.45rem;
    object-fit: cover;
}

.asset-label-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.82rem;
}

.asset-label-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px dashed #ebeff9;
    padding-bottom: 0.2rem;
}

.asset-label-row span {
    color: #596481;
}

.asset-label-row strong {
    text-align: right;
    font-weight: 700;
}

#khairatDeathReportModalBody .khairat-death-modal-grid .module-card,
#khairatDeathReportModalBody .khairat-death-checklist-card {
    height: auto;
}

#khairatDeathReportModalBody .khairat-death-left-col {
    gap: 1rem;
}

.khairat-death-summary-highlight {
    border: 1px solid color-mix(in srgb, var(--primary) 28%, #d7e1ff);
    border-left: 5px solid var(--primary);
    border-radius: 0.85rem;
    background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 10%, #ffffff), #ffffff);
    padding: 0.7rem 0.9rem;
}

.khairat-admin-tabs {
    gap: 0.45rem;
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    padding-bottom: 0.1rem;
}

.khairat-admin-tabs .nav-link {
    border-radius: 999px;
    border: 1px solid #dbe2f7;
    font-size: 0.82rem;
    color: #4f5b7d;
    background: #fff;
}

.khairat-admin-tabs .nav-link.active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.khairat-action-required-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.khairat-action-required-item {
    border: 1px solid #e8edf9;
    border-radius: 0.8rem;
    background: #fff;
    padding: 0.65rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.khairat-pii-indicator {
    display: inline-flex;
    align-items: center;
    margin-left: 0.35rem;
    font-size: 0.68rem;
    padding: 0.1rem 0.42rem;
    border-radius: 999px;
    border: 1px solid #e2d5b2;
    background: #fff7e2;
    color: #7a5a0a;
    font-weight: 700;
}

.khairat-restricted-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    padding: 0.12rem 0.42rem;
    border-radius: 999px;
    border: 1px solid #d9dee9;
    background: #f6f8fc;
    color: #5f6c88;
    font-weight: 700;
    margin-left: 0.3rem;
}

.khairat-settings-section {
    border: 1px solid #e8edf9;
    border-radius: 0.9rem;
}

.khairat-settings-section .form-label {
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.khairat-settings-section small.text-muted {
    font-size: 0.78rem;
}

.speaker-checklist {
    max-height: 230px;
    overflow-y: auto;
}

.speaker-checklist .speaker-row {
    border-bottom: 1px solid #e6e9ef;
    padding: 0.5rem 0;
}

.speaker-checklist .speaker-row:last-child {
    border-bottom: 0;
}

.speaker-checklist .speaker-meta {
    color: #6c757d;
    font-size: 0.78rem;
}

.program-admin-main-table-scroll {
    max-height: 620px;
    overflow-y: auto;
}

.program-admin-main-table-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f7f9fe;
}

@media (max-width: 991.98px) {
    .program-admin-main-table-scroll {
        max-height: 540px;
    }
}

@media (max-width: 575.98px) {
    .program-admin-main-table-scroll {
        max-height: 460px;
    }
}

#programAdminModal .modal-dialog {
    max-height: calc(100vh - 1.75rem);
}

#programAdminModal .modal-content {
    max-height: calc(100vh - 1.75rem);
}

#programAdminModal .program-admin-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
}

#programAdminModal .program-admin-form .modal-body {
    overflow-y: auto;
}

#programAdminModal .program-admin-form .modal-footer {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    z-index: 2;
}

.program-section-card {
    border: 1px solid #e7ebf8;
    border-radius: 0.95rem;
    background: #fff;
    padding: 0.95rem;
}

.program-section-head {
    border-bottom: 1px solid #eef1fb;
    padding-bottom: 0.6rem;
    margin-bottom: 0.85rem;
}

.program-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 1rem;
}

.program-feature-guidance {
    border: 1px solid #dbe4f8;
    border-radius: 0.8rem;
    background: #f8fbff;
    padding: 0.55rem 0.72rem;
}

.program-feature-guidance-summary {
    cursor: pointer;
    list-style: none;
    font-size: 0.86rem;
    font-weight: 600;
    color: #3f4e6d;
}

.program-feature-guidance-summary::-webkit-details-marker {
    display: none;
}

.program-feature-guidance-list {
    display: grid;
    gap: 0.5rem;
}

.program-feature-guidance-item {
    border: 1px solid #e4ebfa;
    border-radius: 0.65rem;
    background: #ffffff;
    padding: 0.52rem 0.65rem;
}

.capacity-summary-card {
    border: 1px solid #e8edf9;
    border-radius: 0.8rem;
    background: #fafcff;
    padding: 0.72rem 0.85rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.capacity-summary-item strong {
    font-size: 1.03rem;
    font-weight: 700;
    color: #24324b;
}

.publish-setting-options {
    border: 1px solid #e9edf8;
    border-radius: 0.72rem;
    padding: 0.55rem 0.72rem;
    background: #fbfcff;
    display: grid;
    gap: 0.38rem;
}

.program-preview-card {
    border: 1px solid #e7ebf8;
    border-radius: 0.95rem;
    background: #fff;
    overflow: hidden;
    position: sticky;
    top: 0.3rem;
}

.program-preview-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f2f5fb;
    border-bottom: 1px solid #e9edf8;
}

.program-preview-default-label {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    border: 1px solid #dfe6f8;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #5f6681;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.22rem 0.55rem;
    box-shadow: 0 8px 20px rgba(31, 41, 55, 0.08);
}

.program-preview-body {
    padding: 0.88rem;
}

.program-detail-tabs .nav-link {
    border-radius: 999px;
    border: 1px solid #d7dff2;
    color: #4b5a74;
    font-size: 0.88rem;
    padding: 0.34rem 0.78rem;
}

.program-detail-tabs .nav-link.active {
    background: color-mix(in srgb, var(--primary) 14%, #ffffff);
    border-color: color-mix(in srgb, var(--primary) 38%, #d2dcf4);
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 575px) {
    body[data-page="home"] .landing-section-head {
        align-items: stretch;
    }

    body[data-page="home"] .landing-section-head .btn {
        width: 100%;
    }

    body[data-page="home"] .landing-program-card,
    body[data-page="home"] .landing-kuliah-card,
    body[data-page="home"] .landing-donation-card,
    body[data-page="home"] .landing-gallery-card {
        min-height: auto;
    }

    body[data-page="home"] .landing-card-title {
        min-height: 0;
    }

    .member-profile-avatar-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .member-profile-avatar {
        width: 84px;
        height: 84px;
    }

    .member-profile-readonly-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .asset-label-grid {
        grid-template-columns: 1fr;
    }

    .asset-label-qr {
        width: 140px;
        height: 140px;
    }

    .floating-feedback-btn {
        right: 0.8rem;
        bottom: 0.9rem;
        padding: 0.55rem 0.8rem;
        font-size: 0.8rem;
    }

    .floating-feedback-widget {
        right: 0.8rem;
        bottom: 0.9rem;
    }

    .floating-feedback-menu {
        position: fixed;
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        width: auto;
        max-height: min(78vh, 560px);
        overflow-y: auto;
        z-index: 1051;
        border-radius: 1.1rem;
    }

    .floating-feedback-backdrop:not([hidden]) {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1050;
        background: rgba(25, 21, 44, 0.28);
        backdrop-filter: blur(2px);
    }

    .capacity-summary-card {
        grid-template-columns: 1fr;
    }

    .program-feature-grid {
        grid-template-columns: 1fr;
    }
}

.access-governance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.85rem;
}

.access-governance-card {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    padding: 1rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(96, 70, 180, 0.16);
    border-radius: 1rem;
    box-shadow: 0 0.45rem 1.2rem rgba(55, 44, 96, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.access-governance-card:hover,
.access-governance-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(96, 70, 180, 0.35);
    box-shadow: 0 0.65rem 1.45rem rgba(55, 44, 96, 0.13);
}

.access-governance-card-count {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    color: #2f245e;
}

.access-governance-card-title {
    font-weight: 700;
    color: #1d1835;
}

.access-governance-card-desc {
    color: #6f6b81;
    font-size: 0.82rem;
}

.access-governance-card-cta {
    margin-top: auto;
    color: #4f2ead;
    font-size: 0.78rem;
    font-weight: 700;
}

.access-governance-card-danger {
    background: linear-gradient(135deg, rgba(255, 246, 246, 0.95), rgba(255, 255, 255, 0.9));
    border-color: rgba(214, 69, 69, 0.22);
}

.access-governance-card-warning {
    background: linear-gradient(135deg, rgba(255, 250, 235, 0.95), rgba(255, 255, 255, 0.9));
    border-color: rgba(211, 151, 42, 0.24);
}

.access-governance-card-info {
    background: linear-gradient(135deg, rgba(243, 249, 255, 0.95), rgba(255, 255, 255, 0.9));
    border-color: rgba(70, 121, 199, 0.18);
}

.access-review-mini-card {
    height: 100%;
    padding: 0.8rem;
    background: rgba(246, 243, 255, 0.8);
    border: 1px solid rgba(96, 70, 180, 0.12);
    border-radius: 0.85rem;
    color: #4a4368;
}

.access-review-table-scroll {
    max-height: 540px;
    overflow: auto;
}

.access-review-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
}

.access-review-filter-hint {
    padding: 0.7rem 0.85rem;
    background: rgba(246, 243, 255, 0.72);
    border: 1px dashed rgba(96, 70, 180, 0.18);
    border-radius: 0.85rem;
}

.access-review-highlight {
    animation: accessReviewPulse 4.5s ease;
}

.gallery-landing-eligibility {
    margin: 0.75rem 0;
    padding: 0.75rem;
    border: 1px solid rgba(96, 70, 180, 0.14);
    border-radius: 0.85rem;
    background: rgba(246, 243, 255, 0.68);
}

.gallery-landing-eligibility-compact {
    padding: 0.55rem;
    margin-top: 0.5rem;
}

.gallery-landing-eligibility-list {
    display: grid;
    gap: 0.35rem;
}

.gallery-landing-eligibility-check {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: #5f5873;
}

.gallery-landing-eligibility-check.is-pass i {
    color: #198754;
}

.gallery-landing-eligibility-check.is-fail i {
    color: #b7791f;
}

.gallery-landing-eligibility-reason {
    margin-top: 0.55rem;
    padding: 0.45rem 0.55rem;
    border-radius: 0.65rem;
    font-size: 0.78rem;
}

.gallery-landing-eligibility-reason.is-pass {
    color: #17613a;
    background: rgba(25, 135, 84, 0.1);
}

.gallery-landing-eligibility-reason.is-fail {
    color: #7c4f08;
    background: rgba(255, 193, 7, 0.14);
}

@keyframes accessReviewPulse {
    0% {
        background: rgba(255, 236, 153, 0.7);
        box-shadow: inset 0 0 0 2px rgba(142, 103, 0, 0.28);
    }
    100% {
        background: transparent;
        box-shadow: inset 0 0 0 0 rgba(142, 103, 0, 0);
    }
}

@media (max-width: 991px) {
    .mms-navbar .navbar-nav .nav-link {
        padding-inline: 0.6rem;
        font-size: 0.89rem;
    }

    body[data-page="home"] .landing-section-head {
        align-items: flex-start;
    }

    body[data-page="home"] .landing-program-card,
    body[data-page="home"] .landing-donation-card,
    body[data-page="home"] .landing-gallery-card {
        min-height: auto;
    }

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

    .dashboard-sidebar {
        min-height: auto;
        max-height: none;
        overflow-y: visible;
        position: static;
    }

    .dashboard-sidebar #logoutBtn {
        position: static;
    }
}
