
:root {
    --kel-primary: #0d6efd;
    --kel-accent: #17a2b8;
    --kel-dark: #1f2937;
    --kel-soft: #f5f7fb;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-sidebar {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%) !important;
}

.sidebar-brand {
    min-height: 64px;
    display: flex;
    align-items: center;
}

.brand-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.sidebar-menu .nav-link {
    border-radius: 12px;
    margin-bottom: 4px;
    color: rgba(255,255,255,.78);
}

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

.nav-icon {
    width: 28px;
    display: inline-flex;
    justify-content: center;
    margin-right: 8px;
}

.nav-header {
    color: rgba(255,255,255,.4);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 16px 12px 8px;
}

.avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0d6efd, #17a2b8);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.sidebar-avatar {
    width: 42px;
    height: 42px;
}

.stat-card {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15,23,42,.08);
    overflow: hidden;
}

.stat-card .stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(13,110,253,.10);
    font-size: 22px;
}

.card {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15,23,42,.06);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #edf0f5;
    border-radius: 18px 18px 0 0 !important;
}

.form-control,
.form-select {
    border-radius: 12px;
    border-color: #d9e0ea;
    padding: .68rem .85rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #7db4ff;
    box-shadow: 0 0 0 .2rem rgba(13,110,253,.12);
}

.btn {
    border-radius: 12px;
    font-weight: 600;
}

.table thead th {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #4b5563;
    background: #f8fafc;
}

.table > :not(caption) > * > * {
    vertical-align: middle;
    padding: .85rem .9rem;
}

.login-page-custom {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(13,110,253,.28), transparent 28%), linear-gradient(135deg, #0f172a, #1e3a8a 55%, #0891b2);
}

.login-card {
    max-width: 980px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(2,6,23,.30);
}

.login-hero {
    background: linear-gradient(135deg, rgba(13,110,253,.92), rgba(23,162,184,.90));
    color: white;
}

.login-logo {
    width: 92px;
    height: 92px;
    object-fit: contain;
    background: #fff;
    border-radius: 24px;
    padding: 10px;
}

.public-hero {
    background: radial-gradient(circle at top left, rgba(255,255,255,.32), transparent 28%), linear-gradient(135deg, #0d6efd, #0f766e);
    color: white;
}

.public-logo {
    width: 74px;
    height: 74px;
    object-fit: contain;
    background: white;
    border-radius: 18px;
    padding: 8px;
}

.print-body {
    background: #fff;
}

.print-sheet {
    max-width: 840px;
    margin: 30px auto;
    padding: 42px;
    background: #fff;
    color: #111827;
}

@media print {
    .no-print { display: none !important; }
    .print-sheet { margin: 0; max-width: 100%; padding: 0; box-shadow: none; }
}

@media (max-width: 768px) {
    .app-content-header h1 { font-size: 1.35rem !important; }
    .table-responsive { border-radius: 14px; }
    .login-card { border-radius: 0; min-height: 100vh; }
}
.table-thumb {
    width: 76px;
    height: 56px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, .08);
    background: #f8fafc;
}

.empty-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #64748b;
}

.current-photo-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 16px;
    background: #f8fafc;
}

.current-photo-card img {
    width: 160px;
    height: 100px;
    object-fit: cover;
    border-radius: 14px;
}

.access-card .form-switch .form-check-input,
.access-switch {
    width: 3rem;
    height: 1.45rem;
    cursor: pointer;
}

.sticky-save-bar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    justify-content: flex-end;
    padding: .85rem 0;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0), #f8fafc 35%);
}

.public-activity-img,
.public-activity-placeholder {
    width: 100%;
    height: 210px;
    object-fit: cover;
    background: linear-gradient(135deg, #e0f2fe, #f8fafc);
}

.public-activity-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #64748b;
}

@media (max-width: 575.98px) {
    .current-photo-card {
        align-items: flex-start;
        flex-direction: column;
    }
    .current-photo-card img {
        width: 100%;
        height: 180px;
    }
}

.access-table th,
.access-table td {
    white-space: nowrap;
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(84px, 1fr));
    gap: .45rem .6rem;
}

.permission-toggle {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    font-weight: 700;
    color: #334155;
    padding: .35rem .45rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
}

.permission-toggle .form-check-input {
    margin: 0;
}

.access-card .form-switch .form-check-input,
.access-switch {
    width: 2.65rem;
    height: 1.25rem;
    cursor: pointer;
}

.permission-toggle .form-check-input:disabled {
    opacity: .75;
}

@media (max-width: 768px) {
    .permission-grid {
        grid-template-columns: 1fr;
    }
}

.public-body {
    background: #f5f7fb;
    color: #0f172a;
    overflow-x: hidden;
}

.public-navbar {
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    backdrop-filter: blur(16px);
}

.public-navbar .nav-link {
    color: #334155;
    font-weight: 700;
    border-radius: 999px;
    padding: .55rem .9rem;
}

.public-navbar .nav-link:hover {
    color: #0d6efd;
    background: rgba(13, 110, 253, .08);
}

.public-navbar-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .10);
}

.public-login-btn {
    box-shadow: 0 12px 24px rgba(13, 110, 253, .22);
}

.public-hero-modern {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, .20), transparent 24%),
        radial-gradient(circle at 80% 8%, rgba(125, 211, 252, .24), transparent 28%),
        linear-gradient(135deg, #061b4e 0%, #0d6efd 50%, #0f766e 100%);
}

.public-hero-modern::after {
    content: "";
    position: absolute;
    inset: auto -5% -1px -5%;
    height: 100px;
    background: #f5f7fb;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-orb {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    filter: blur(4px);
    opacity: .25;
    animation: floatOrb 9s ease-in-out infinite alternate;
}

.hero-orb-one {
    top: 8%;
    right: 8%;
    background: #facc15;
}

.hero-orb-two {
    bottom: 10%;
    left: 5%;
    background: #38bdf8;
    animation-delay: 1.5s;
}

.public-badge,
.section-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.public-badge {
    padding: .55rem 1rem;
    color: #dbeafe;
    border: 1px solid rgba(255, 255, 255, .20);
    background: rgba(255, 255, 255, .12);
}

.section-pill {
    padding: .5rem 1.1rem;
    color: #0d6efd;
    background: rgba(13, 110, 253, .10);
}

.public-logo-modern {
    width: 86px;
    height: 86px;
    object-fit: contain;
    padding: 10px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
}

.fw-black {
    font-weight: 900;
}

.public-hero-modern h1 {
    font-size: clamp(2.4rem, 5vw, 5rem);
    letter-spacing: -.04em;
    line-height: .95;
}

.public-hero-text {
    max-width: 680px;
    color: rgba(255, 255, 255, .82);
    font-size: 1.2rem;
}

.public-cta {
    border-radius: 999px;
    padding: .9rem 1.35rem;
}

.hero-mini-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .8rem;
    max-width: 720px;
}

.hero-mini-stats div {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 20px;
    background: rgba(255, 255, 255, .10);
    backdrop-filter: blur(14px);
}

.hero-mini-stats strong {
    display: block;
    font-size: 1.55rem;
    line-height: 1;
}

.hero-mini-stats span {
    display: block;
    margin-top: .35rem;
    color: rgba(255, 255, 255, .72);
    font-size: .85rem;
}

.hero-dashboard-card {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 32px;
    background: rgba(255, 255, 255, .92);
    color: #0f172a;
    box-shadow: 0 30px 80px rgba(2, 6, 23, .28);
    backdrop-filter: blur(20px);
}

.hero-status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 8px rgba(34, 197, 94, .12);
}

.hero-service-tile {
    min-height: 116px;
    padding: 1rem;
    border-radius: 22px;
    background: linear-gradient(180deg, #f8fafc, #eef6ff);
    border: 1px solid rgba(15, 23, 42, .06);
}

.hero-service-tile span {
    display: block;
    font-size: 1.8rem;
    margin-bottom: .6rem;
}

.hero-service-tile strong {
    display: block;
    font-size: .95rem;
}

.hero-progress .progress {
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
}

.hero-progress .progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, #0d6efd, #14b8a6);
}

.float-soft {
    animation: floatSoft 5.5s ease-in-out infinite;
}

.public-section {
    position: relative;
    padding: 88px 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -.04em;
    color: #002b75;
}

.section-subtitle {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    color: #64748b;
    font-size: 1.05rem;
}

.public-stat-section {
    background:
        radial-gradient(circle at 15% 15%, rgba(13, 110, 253, .08), transparent 28%),
        radial-gradient(circle at 85% 35%, rgba(20, 184, 166, .10), transparent 26%),
        #f5f7fb;
}

.stat-tab {
    border: 1px solid #dbe4f0;
    color: #475569;
    background: #fff;
    border-radius: 14px;
    padding: .75rem 1.1rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}

.stat-tab:hover,
.stat-tab.active {
    color: #fff;
    border-color: #0d6efd;
    background: linear-gradient(135deg, #0d6efd, #14b8a6);
    box-shadow: 0 14px 28px rgba(13, 110, 253, .18);
}

.stat-panel {
    display: none;
}

.stat-panel.active {
    display: block;
    animation: fadeSlide .35s ease both;
}

.category-stat-card {
    min-height: 154px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.6rem;
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 28px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 22px 55px rgba(15, 23, 42, .08);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.category-stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(13, 110, 253, .20);
    box-shadow: 0 28px 70px rgba(13, 110, 253, .14);
}

.category-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    flex: 0 0 58px;
    border-radius: 20px;
    color: #0d6efd;
    font-size: 2rem;
    background: rgba(13, 110, 253, .10);
}

.category-number {
    color: #002b75;
    font-size: 2.15rem;
    line-height: 1;
    font-weight: 900;
}

.category-label {
    margin-top: .45rem;
    color: #475569;
    font-weight: 800;
}

.profile-panel,
.vision-panel,
.service-card,
.official-card {
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 24px 65px rgba(15, 23, 42, .08);
}

.profile-panel,
.vision-panel {
    padding: 2rem;
}

.service-card,
.official-card {
    padding: 1.6rem;
    transition: transform .25s ease, box-shadow .25s ease;
}

.service-card:hover,
.official-card:hover,
.public-activity-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 28px 70px rgba(15, 23, 42, .12);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    border-radius: 22px;
    font-size: 2rem;
    background: linear-gradient(135deg, rgba(13, 110, 253, .12), rgba(20, 184, 166, .12));
}

.public-service-section {
    background: linear-gradient(180deg, #f8fafc, #eef6ff);
}

.public-activity-card {
    border-radius: 28px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.official-card {
    text-align: center;
}

.official-card .avatar-circle {
    width: 72px;
    height: 72px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.5rem;
}

.public-footer {
    background: linear-gradient(135deg, #0f172a, #0b3b75);
}

.reveal-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s ease, transform .65s ease;
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: .12s;
}

@keyframes floatSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@keyframes floatOrb {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(24px, -18px, 0) scale(1.08); }
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991.98px) {
    .public-hero-modern::after {
        height: 56px;
    }

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

    .public-section {
        padding: 64px 0;
    }
}

@media (max-width: 575.98px) {
    .public-logo-modern {
        width: 70px;
        height: 70px;
        border-radius: 20px;
    }

    .hero-mini-stats {
        grid-template-columns: 1fr;
    }

    .category-stat-card {
        min-height: 130px;
        padding: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

.activity-rt-tab {
    border: 1px solid rgba(13, 110, 253, .16);
    border-radius: 999px;
    padding: .65rem 1rem;
    font-weight: 800;
    color: #0f172a;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.activity-rt-tab span {
    display: inline-grid;
    place-items: center;
    min-width: 1.5rem;
    height: 1.5rem;
    margin-left: .45rem;
    border-radius: 999px;
    color: #0d6efd;
    background: rgba(13, 110, 253, .10);
}

.activity-rt-tab.active,
.activity-rt-tab:hover {
    color: #fff;
    background: linear-gradient(135deg, #0d6efd, #14b8a6);
    border-color: transparent;
}

.activity-rt-tab.active span,
.activity-rt-tab:hover span {
    color: #fff;
    background: rgba(255, 255, 255, .22);
}

.activity-rt-panel {
    display: none;
}

.activity-rt-panel.active {
    display: block;
    animation: fadeSlideIn .35s ease both;
}

.activity-rt-title {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    gap: .75rem;
    max-width: 960px;
    margin: 0 auto 1.25rem;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(13, 110, 253, .12);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(13, 110, 253, .08), rgba(20, 184, 166, .08));
}

.activity-rt-title span {
    color: #002b75;
    font-weight: 900;
    font-size: 1.05rem;
}

.activity-rt-title small {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .28rem .65rem;
    color: #475569;
    font-weight: 700;
    background: rgba(255, 255, 255, .75);
}

.activity-scope-badge {
    display: inline-flex;
    align-items: center;
    padding: .35rem .7rem;
    border-radius: 999px;
    color: #0f766e;
    background: rgba(20, 184, 166, .12);
    font-size: .78rem;
    font-weight: 900;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.notification-toggle {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

.notification-toggle:hover {
    background: #f3f6fb;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.notification-menu {
    width: min(360px, calc(100vw - 32px));
    padding: 0;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .18);
    overflow: hidden;
}

.notification-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #edf2f7;
    background: #f8fafc;
}

.notification-item {
    white-space: normal;
    padding: 13px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.notification-item.unread {
    background: #eef6ff;
}

.notification-time {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

.auto-region-box {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 11px 14px;
    border: 1px solid #d7e0ea;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
}

.activity-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.activity-photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.activity-photo-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.activity-photo-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    cursor: pointer;
    user-select: none;
}

.activity-photo-remove input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.activity-photo-remove span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(220, 53, 69, .28);
}

.activity-photo-remove span::before {
    content: "🗑";
    line-height: 1;
}

.activity-photo-remove input:checked + span {
    background: #7f1d1d;
}

.activity-photo-remove input:checked + span::before {
    content: "✓";
}

.activity-photo-item::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(15, 23, 42, .18), transparent 45%);
}

.activity-thumb-wrap {
    position: relative;
    width: max-content;
}

.activity-photo-count,
.public-photo-count {
    position: absolute;
    right: 6px;
    bottom: 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .86);
    color: #fff;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
}

.public-activity-photo-wrap {
    position: relative;
}

.public-activity-section {
    background:
        radial-gradient(circle at 12% 8%, rgba(13, 110, 253, .06), transparent 25%),
        radial-gradient(circle at 86% 20%, rgba(20, 184, 166, .08), transparent 26%),
        #fff;
}

.activity-filter-wrap {
    width: fit-content;
    max-width: 100%;
    padding: .35rem;
    border-radius: 24px;
    background: rgba(248, 250, 252, .84);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .05);
}

.activity-section-heading .section-pill {
    width: fit-content;
}

.public-activity-section .section-title {
    text-align: center;
}


.public-activity-photo-link,
.public-activity-title-link {
    color: inherit;
    text-decoration: none;
}

.public-activity-title-link:hover {
    color: #0d6efd;
}

.public-activity-date {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    color: #475569;
    background: #f1f5f9;
    font-size: .78rem;
    font-weight: 800;
}

.public-activity-date::before {
    content: '📅';
    font-size: .85rem;
}

.public-read-more {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #0d6efd;
    font-weight: 900;
    text-decoration: none;
}

.public-read-more span {
    transition: transform .2s ease;
}

.public-read-more:hover span {
    transform: translateX(4px);
}

.public-activity-card {
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 20px 55px rgba(15, 23, 42, .08);
}

.activity-detail-page {
    background: #f6f8fb;
}

.activity-detail-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 10%, rgba(20, 184, 166, .20), transparent 26%),
        radial-gradient(circle at 88% 18%, rgba(13, 110, 253, .22), transparent 28%),
        linear-gradient(135deg, #0f172a, #0b3b75);
    color: #fff;
}

.activity-detail-hero::after {
    content: '';
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -70px;
    height: 130px;
    border-radius: 50% 50% 0 0;
    background: #f6f8fb;
}

.activity-detail-hero .container {
    position: relative;
    z-index: 1;
}

.detail-back-link {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, .88);
    font-weight: 800;
    text-decoration: none;
}

.detail-back-link:hover {
    color: #fff;
}

.detail-date {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.activity-detail-title {
    max-width: 780px;
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 950;
    letter-spacing: -.045em;
    line-height: 1.05;
}

.activity-detail-location {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    padding: .7rem 1rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .13);
    font-weight: 800;
}

.activity-detail-cover {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    border: 8px solid rgba(255, 255, 255, .22);
    border-radius: 34px;
    background: rgba(255, 255, 255, .10);
    box-shadow: 0 32px 90px rgba(0, 0, 0, .28);
}

.activity-detail-cover img,
.activity-detail-empty {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.activity-detail-empty {
    display: grid;
    place-items: center;
    font-size: 4rem;
}

.activity-detail-card {
    padding: 1.6rem;
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .08);
}

.activity-detail-content {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.8;
}

.activity-gallery-item {
    display: block;
    overflow: hidden;
    height: 170px;
    border-radius: 20px;
    background: #f1f5f9;
}

.activity-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.activity-gallery-item:hover img {
    transform: scale(1.06);
}

.detail-info-list {
    display: grid;
    gap: .9rem;
}

.detail-info-list div {
    padding: .9rem 1rem;
    border-radius: 18px;
    background: #f8fafc;
}

.detail-info-list span,
.related-activity-item small {
    display: block;
    color: #64748b;
    font-size: .82rem;
    font-weight: 800;
}

.detail-info-list strong {
    display: block;
    margin-top: .2rem;
    color: #0f172a;
}

.related-activity-list {
    display: grid;
    gap: .8rem;
}

.related-activity-item {
    display: flex;
    gap: .8rem;
    align-items: center;
    padding: .7rem;
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 18px;
    color: #0f172a;
    text-decoration: none;
    background: #fff;
    transition: transform .2s ease, background .2s ease;
}

.related-activity-item:hover {
    transform: translateY(-3px);
    background: #f8fafc;
}

.related-activity-item img,
.related-activity-item > span {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 16px;
    object-fit: cover;
    background: #eef2ff;
}

.related-activity-item > span {
    display: grid;
    place-items: center;
    font-size: 1.5rem;
}

.related-activity-item strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .95rem;
}

@media (max-width: 767.98px) {
    .activity-filter-wrap {
        width: 100%;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto;
        padding-bottom: .55rem;
    }

    .activity-rt-tab {
        white-space: nowrap;
    }

    .activity-detail-cover,
    .activity-detail-cover img,
    .activity-detail-empty {
        min-height: 260px;
    }
}

.hero-mini-stat-card,
.category-stat-card {
    position: relative;
    overflow: hidden;
}

.hero-mini-stat-card::before,
.category-stat-card::before {
    content: '';
    position: absolute;
    inset: -60% auto auto -35%;
    width: 70%;
    height: 220%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .34), transparent);
    transform: rotate(18deg) translateX(-130%);
    opacity: 0;
    pointer-events: none;
}

.hero-mini-stat-card.count-glow::before,
.category-stat-card.count-glow::before {
    animation: statShine 1.15s ease both;
    opacity: 1;
}

.hero-mini-stat-card {
    transition: transform .28s ease, border-color .28s ease, background .28s ease, box-shadow .28s ease;
}

.hero-mini-stat-card:hover {
    transform: translateY(-7px) scale(1.02);
    border-color: rgba(255, 255, 255, .36);
    background: rgba(255, 255, 255, .16);
    box-shadow: 0 20px 45px rgba(2, 6, 23, .18);
}

.hero-mini-stat-card strong,
.category-number {
    font-variant-numeric: tabular-nums;
}

.js-count-up.count-animated {
    animation: numberPop .55s cubic-bezier(.19, 1, .22, 1) both;
}

.category-stat-card.count-glow {
    border-color: rgba(13, 110, 253, .26);
    box-shadow: 0 28px 70px rgba(13, 110, 253, .13);
}

.footer-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: center;
}

.footer-title,
.footer-location {
    color: rgba(255, 255, 255, .72);
    font-weight: 700;
}

.footer-credit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .72rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    letter-spacing: .02em;
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 16px 36px rgba(0, 0, 0, .14);
}

.footer-credit strong {
    color: #93c5fd;
}

@keyframes numberPop {
    0% { transform: translateY(10px) scale(.86); filter: blur(3px); opacity: .45; }
    70% { transform: translateY(-2px) scale(1.08); filter: blur(0); opacity: 1; }
    100% { transform: translateY(0) scale(1); filter: blur(0); opacity: 1; }
}

@keyframes statShine {
    from { transform: rotate(18deg) translateX(-130%); }
    to { transform: rotate(18deg) translateX(260%); }
}

@media (max-width: 767.98px) {
    .footer-modern {
        flex-direction: column;
    }
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    margin-top: 1rem;
    color: #0d6efd;
    font-weight: 900;
    text-decoration: none;
}

.service-link:hover {
    color: #0b5ed7;
    transform: translateX(3px);
}

.detail-soft-box {
    padding: 1rem;
    border: 1px solid rgba(15, 23, 42, .07);
    border-radius: 16px;
    background: #f8fafc;
}

.surat-public-body {
    min-height: 100vh;
    background: #f4f7fb;
}

.surat-page-wrap {
    position: relative;
    min-height: calc(100vh - 72px);
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 8%, rgba(13, 110, 253, .13), transparent 28%),
        radial-gradient(circle at 84% 16%, rgba(23, 162, 184, .12), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.surat-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    opacity: .7;
    animation: floatSoft 7s ease-in-out infinite alternate;
}

.surat-glow-one {
    width: 260px;
    height: 260px;
    left: -90px;
    top: 90px;
    background: rgba(13, 110, 253, .11);
}

.surat-glow-two {
    width: 320px;
    height: 320px;
    right: -110px;
    bottom: 60px;
    background: rgba(32, 201, 151, .12);
    animation-delay: .9s;
}

.surat-shell {
    max-width: 980px;
}

.surat-auto-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .85rem;
    border: 1px solid #64748b;
    border-radius: 999px;
    color: #475569;
    background: rgba(255, 255, 255, .72);
    font-weight: 800;
    font-size: .86rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.surat-icon-title {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: .4rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(32, 201, 151, .18), rgba(13, 110, 253, .13));
    color: #0f766e;
    font-size: 1.35rem;
}

.surat-title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 1000;
    letter-spacing: -.055em;
}

.surat-subtitle {
    margin: .35rem 0 0;
    color: #64748b;
    font-weight: 600;
}

.surat-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 760px;
    margin-inline: auto;
}

.surat-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 12%;
    right: 12%;
    height: 3px;
    border-radius: 999px;
    background: #dbe4ee;
}

.surat-step {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: .5rem;
    color: #94a3b8;
    font-weight: 900;
}

.surat-step span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 3px solid #e8eef6;
    border-radius: 999px;
    background: #fff;
    color: #94a3b8;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
    transition: all .25s ease;
}

.surat-step.active span,
.surat-step.done span {
    border-color: #2ab7a9;
    color: #fff;
    background: linear-gradient(135deg, #2ab7a9, #0d6efd);
    box-shadow: 0 16px 36px rgba(42, 183, 169, .25);
}

.surat-step small {
    display: none;
    color: #334155;
}

.surat-wizard-card {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    border: 1px solid rgba(226, 232, 240, .92);
    border-radius: 28px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 28px 85px rgba(15, 23, 42, .10);
    backdrop-filter: blur(18px);
}

.surat-panel {
    display: none;
    animation: suratPanelIn .35s ease both;
}

.surat-panel.active {
    display: block;
}

.surat-card-title {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1rem;
    color: #0f172a;
    font-weight: 1000;
    font-size: 1.08rem;
}

.surat-search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .75rem;
}

.surat-search-input {
    min-height: 58px;
    border: 2px solid rgba(42, 183, 169, .65);
    border-radius: 18px;
    font-size: 1.02rem;
}

.surat-search-btn {
    min-width: 125px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #2ab7a9, #18a3c7);
    box-shadow: 0 16px 34px rgba(42, 183, 169, .20);
}

.surat-citizen-card {
    padding: 1rem;
    border: 1px solid rgba(42, 183, 169, .22);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(42, 183, 169, .09), rgba(13, 110, 253, .06));
}

.surat-citizen-card span,
.surat-review-grid span {
    display: block;
    color: #64748b;
    font-size: .82rem;
    font-weight: 900;
}

.surat-citizen-card strong,
.surat-review-grid strong {
    display: block;
    margin-top: .15rem;
    color: #0f172a;
}

.surat-letter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.surat-letter-option {
    position: relative;
    min-height: 150px;
    padding: 1.15rem;
    border: 2px solid #e2e8f0;
    border-radius: 22px;
    background: #fff;
    color: #0f172a;
    text-align: left;
    transition: all .22s ease;
}

.surat-letter-option:hover,
.surat-letter-option.active {
    transform: translateY(-5px);
    border-color: #2ab7a9;
    box-shadow: 0 22px 55px rgba(42, 183, 169, .16);
}

.surat-letter-option.active::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    color: #fff;
    background: #2ab7a9;
    font-weight: 1000;
}

.surat-letter-option span {
    display: inline-flex;
    margin-bottom: .75rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    color: #0d6efd;
    background: #eaf2ff;
    font-weight: 1000;
}

.surat-letter-option strong {
    display: block;
    font-size: 1rem;
}

.surat-letter-option small {
    display: block;
    margin-top: .5rem;
    color: #64748b;
    line-height: 1.45;
}

.surat-review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .9rem;
}

.surat-review-grid > div {
    padding: 1rem;
    border: 1px solid rgba(15, 23, 42, .07);
    border-radius: 18px;
    background: #f8fafc;
}

.surat-actions {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #edf2f7;
}

.surat-actions .btn {
    min-width: 160px;
    padding: .8rem 1.1rem;
    border-radius: 16px;
}

.surat-success-panel {
    padding: 2rem 1rem;
    text-align: center;
    animation: suratPanelIn .4s ease both;
}

.surat-success-icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 1rem;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #2ab7a9, #0d6efd);
    font-size: 2.5rem;
    font-weight: 1000;
    box-shadow: 0 20px 50px rgba(42, 183, 169, .22);
}

.surat-success-panel h3 {
    color: #0f172a;
    font-weight: 1000;
}

.surat-success-panel p {
    color: #64748b;
}

.surat-success-number {
    display: inline-flex;
    padding: .7rem 1rem;
    border-radius: 999px;
    color: #0d6efd;
    background: #eaf2ff;
    font-weight: 1000;
}

@keyframes suratPanelIn {
    from { transform: translateY(16px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 768px) {
    .surat-step small {
        display: block;
    }
}

@media (max-width: 575.98px) {
    .surat-page-wrap .container {
        padding-left: .85rem;
        padding-right: .85rem;
    }

    .surat-auto-pill {
        font-size: .78rem;
    }

    .surat-wizard-card {
        padding: 1rem;
        border-radius: 22px;
    }

    .surat-search-row {
        grid-template-columns: 1fr;
    }

    .surat-search-btn,
    .surat-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .surat-actions {
        flex-direction: column-reverse;
    }

    .surat-step span {
        width: 40px;
        height: 40px;
    }

    .surat-steps::before {
        top: 20px;
    }
}

.role-panel-body {
    background: #f5f7fb;
}

.role-topbar {
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
}

.role-sidebar {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%) !important;
}

.role-rt-panel {
    --role-main: #14b8a6;
    --role-second: #0d6efd;
    --role-soft: rgba(20, 184, 166, .12);
}

.role-rw-panel {
    --role-main: #7c3aed;
    --role-second: #0d6efd;
    --role-soft: rgba(124, 58, 237, .12);
}

.role-lurah-panel {
    --role-main: #0d6efd;
    --role-second: #f59e0b;
    --role-soft: rgba(13, 110, 253, .12);
}

.role-panel-body .role-avatar,
.role-panel-body .role-badge,
.role-panel-body .btn-primary {
    background: linear-gradient(135deg, var(--role-main), var(--role-second));
    border-color: transparent;
}

.role-card-user {
    display: flex;
    gap: .8rem;
    align-items: center;
    padding: .9rem;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 20px;
    background: rgba(255, 255, 255, .06);
}

.role-badge {
    color: #fff;
    border: 0;
}

.role-content-header {
    background:
        radial-gradient(circle at 18% 20%, var(--role-soft), transparent 26%),
        radial-gradient(circle at 80% 0%, rgba(13, 110, 253, .08), transparent 24%);
}

.role-hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, var(--role-soft), transparent 30%),
        #fff;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .08);
    overflow: hidden;
}

.lurah-hero-card {
    background:
        radial-gradient(circle at top left, rgba(13, 110, 253, .12), transparent 30%),
        radial-gradient(circle at top right, rgba(245, 158, 11, .13), transparent 28%),
        #fff;
}

.role-soft-pill {
    display: inline-flex;
    align-items: center;
    padding: .48rem .85rem;
    border-radius: 999px;
    color: var(--role-main);
    background: var(--role-soft);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.role-hero-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    flex: 0 0 82px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--role-main), var(--role-second));
    color: #fff;
    font-size: 2.2rem;
    box-shadow: 0 18px 42px color-mix(in srgb, var(--role-main), transparent 72%);
}

.role-stat-card {
    min-height: 126px;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 24px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .07);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.role-stat-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--role-main), transparent 75%);
    box-shadow: 0 26px 64px rgba(15, 23, 42, .11);
}

.role-stat-card > span {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    flex: 0 0 56px;
    border-radius: 20px;
    background: var(--role-soft);
    font-size: 1.7rem;
}

.role-stat-card strong {
    display: block;
    color: #0f172a;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.role-stat-card small {
    display: block;
    margin-top: .35rem;
    color: #64748b;
    font-weight: 800;
}

.role-list-item {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem;
    border: 1px solid #edf2f7;
    border-radius: 18px;
    color: #0f172a;
    background: #fff;
    transition: transform .2s ease, background .2s ease;
}

.role-list-item:hover {
    transform: translateY(-2px);
    background: #f8fafc;
}

.role-list-item > span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    border-radius: 16px;
    background: var(--role-soft);
}

.role-list-item strong,
.role-list-item small {
    display: block;
}

.role-list-item small {
    margin-top: .2rem;
    color: #64748b;
    font-weight: 700;
}

.role-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 18px;
    background: #f8fafc;
}

.role-progress-row span {
    color: #64748b;
    font-weight: 800;
}

.role-progress-row strong {
    color: var(--role-main);
    font-size: 1.6rem;
    font-weight: 900;
}

.role-activity-cover {
    height: 220px;
    object-fit: cover;
}

.role-activity-card {
    transition: transform .22s ease, box-shadow .22s ease;
}

.role-activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 70px rgba(15, 23, 42, .12);
}

.place-items-center {
    place-items: center;
}

@media (max-width: 767.98px) {
    .role-hero-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .role-hero-icon {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
        font-size: 1.75rem;
    }
}

/* Green Innovation / Kupang Bersih */
.green-safe-alert {
    background: linear-gradient(135deg, rgba(16, 185, 129, .12), rgba(34, 197, 94, .08));
    color: #065f46;
    border-radius: 18px;
}

.leader-rank {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #22c55e, #0f766e);
    color: #fff;
    font-weight: 800;
}

.green-public-body {
    background: #f1f8f4;
}

.green-hero-public {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, .25), transparent 30%), linear-gradient(135deg, #064e3b, #0f766e 48%, #22c55e);
}

.green-hero-public::after {
    content: "";
    position: absolute;
    inset: auto -10% -35% 45%;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    filter: blur(2px);
}

.green-hero-text {
    color: rgba(255, 255, 255, .82);
    font-size: 1.08rem;
    line-height: 1.8;
    max-width: 720px;
}

.green-program-card,
.green-info-panel {
    border-radius: 28px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 28px 70px rgba(6, 78, 59, .25);
    backdrop-filter: blur(12px);
}

.green-program-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: inline-grid;
    place-items: center;
    font-size: 1.8rem;
    background: #dcfce7;
}

.green-program-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.green-program-row span {
    color: #64748b;
}

.green-program-row strong {
    color: #064e3b;
}

.green-program-status {
    margin-top: 1rem;
    padding: .85rem 1rem;
    border-radius: 16px;
    background: #ecfdf5;
    color: #047857;
    font-weight: 700;
}

.green-stat-public,
.green-result-mini {
    height: 100%;
    padding: 1.25rem;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.green-stat-public span {
    font-size: 2rem;
}

.green-stat-public strong,
.green-result-mini strong {
    font-size: 1.35rem;
    color: #064e3b;
}

.green-stat-public small,
.green-result-mini span {
    color: #64748b;
    font-weight: 600;
}

.green-check-card,
.green-result-card,
.green-leader-card {
    border: 1px solid rgba(16, 185, 129, .10);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.green-info-panel {
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.green-info-panel ol {
    padding-left: 1.2rem;
    line-height: 1.9;
}

@media (max-width: 768px) {
    .green-hero-public .display-5 {
        font-size: 2rem;
    }

    .green-program-card,
    .green-info-panel {
        border-radius: 22px;
        padding: 1.1rem;
    }

    .green-program-row {
        align-items: flex-start;
        flex-direction: column;
        gap: .25rem;
    }
}

/* Undangan */
.invitation-card {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
}

.invitation-mini-poster {
    background: linear-gradient(135deg, #e0f2fe, #fff7ed);
    height: 340px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 12px;
}

.invitation-mini-poster svg {
    width: 190px;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .18);
}

.poster-preview-shell {
    background: radial-gradient(circle at top, #e0f2fe 0, #f8fafc 45%, #ffffff 100%);
    display: flex;
    justify-content: center;
    overflow: auto;
}

.poster-preview-shell svg {
    width: min(100%, 540px);
    height: auto;
    border-radius: 26px;
    box-shadow: 0 22px 58px rgba(15, 23, 42, .16);
}

.invitation-form-card textarea.form-control {
    min-height: 155px;
}

.invitation-detail-list dt {
    color: #64748b;
}

.public-invitation-card {
    border: 0;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

.invitation-public-hero {
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

@media (max-width: 768px) {
    .invitation-mini-poster {
        height: 300px;
    }

    .poster-preview-shell {
        padding: 10px;
    }

    .poster-preview-shell svg {
        width: 100%;
        border-radius: 18px;
    }
}

.invitation-mini-poster img,
.public-invitation-cover img,
.invitation-preview-image,
.invitation-current-image img {
    display: block;
    max-width: 100%;
    height: auto;
}

.invitation-mini-poster img {
    width: auto;
    max-height: 316px;
    border-radius: 18px;
    object-fit: contain;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .18);
}

.poster-preview-shell .invitation-preview-image {
    width: min(100%, 620px);
    border-radius: 26px;
    box-shadow: 0 22px 58px rgba(15, 23, 42, .16);
}

.public-invitation-cover {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 320px;
    padding: 14px;
    background: linear-gradient(135deg, #e0f2fe, #fff7ed);
    overflow: hidden;
}

.public-invitation-cover img,
.public-invitation-cover svg {
    max-height: 320px;
    width: auto;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
}

.public-invitation-cover svg {
    max-width: 210px;
}

.invitation-current-image {
    padding: .75rem;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 18px;
    background: #f8fafc;
}

.invitation-current-image img {
    max-height: 220px;
    margin: 0 auto;
    border-radius: 14px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .invitation-mini-poster img {
        max-height: 280px;
    }

    .poster-preview-shell .invitation-preview-image {
        width: 100%;
        border-radius: 18px;
    }

    .public-invitation-cover {
        min-height: 280px;
    }

    .public-invitation-cover img,
    .public-invitation-cover svg {
        max-height: 280px;
    }
}

.invitation-page-modern {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 14%, rgba(59, 130, 246, .18) 0, rgba(59, 130, 246, 0) 28%),
        radial-gradient(circle at 88% 6%, rgba(245, 158, 11, .16) 0, rgba(245, 158, 11, 0) 28%),
        linear-gradient(180deg, #eef6ff 0%, #ffffff 48%, #f8fbff 100%);
    color: #0f172a;
}

.invitation-navbar {
    border-bottom: 1px solid rgba(148, 163, 184, .18);
    background: rgba(255, 255, 255, .86) !important;
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 40px rgba(15, 23, 42, .06);
}

.invitation-brand-logo-wrap {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff, #e0f2fe);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .10);
}

.invitation-brand-logo-wrap .public-navbar-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.invitation-nav-btn {
    border-radius: 999px;
    padding: .48rem .9rem;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(37, 99, 235, .08);
}

.invitation-hero-modern {
    position: relative;
    padding: 4.2rem 0 3rem;
    overflow: hidden;
}

.invitation-hero-modern::before,
.invitation-hero-modern::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.invitation-hero-modern::before {
    width: 220px;
    height: 220px;
    left: -80px;
    top: 20px;
    background: rgba(14, 165, 233, .14);
}

.invitation-hero-modern::after {
    width: 260px;
    height: 260px;
    right: -100px;
    bottom: -70px;
    background: rgba(251, 191, 36, .18);
}

.invitation-kicker,
.invitation-mini-label {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border-radius: 999px;
    padding: .42rem .85rem;
    background: rgba(37, 99, 235, .10);
    color: #1d4ed8;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.invitation-title-modern {
    margin: .9rem auto .75rem;
    max-width: 850px;
    color: #0b3b82;
    font-size: clamp(2.35rem, 6vw, 5rem);
    font-weight: 950;
    line-height: .95;
    letter-spacing: -.06em;
}

.invitation-subtitle-modern {
    max-width: 700px;
    color: #475569;
    font-size: clamp(1rem, 2vw, 1.16rem);
    line-height: 1.8;
}

.invitation-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.35rem;
}

.invitation-hero-pills span {
    border: 1px solid rgba(37, 99, 235, .16);
    border-radius: 999px;
    padding: .55rem .9rem;
    background: rgba(255, 255, 255, .76);
    color: #1e293b;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .06);
}

.invitation-list-section {
    padding: 1rem 0 5rem;
}

.invitation-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.invitation-section-head h2 {
    margin: .65rem 0 0;
    color: #0f172a;
    font-weight: 950;
    letter-spacing: -.035em;
}

.invitation-count-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .7rem 1rem;
    background: #ffffff;
    color: #0b3b82;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.modern-invitation-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, .85);
    background: rgba(255, 255, 255, .92);
    border-radius: 30px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .10);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.modern-invitation-card:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, .24);
    box-shadow: 0 34px 90px rgba(15, 23, 42, .14);
}

.modern-invitation-cover-link {
    display: block;
    text-decoration: none;
}

.modern-invitation-cover {
    position: relative;
    min-height: 430px;
    padding: 18px;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(219, 234, 254, .92), rgba(255, 247, 237, .92)),
        radial-gradient(circle at top left, rgba(37, 99, 235, .18), transparent 45%);
}

.modern-invitation-cover::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px dashed rgba(37, 99, 235, .18);
    border-radius: 24px;
    pointer-events: none;
}

.modern-invitation-cover img,
.modern-invitation-cover svg {
    position: relative;
    z-index: 1;
    width: auto;
    max-width: 100%;
    max-height: 405px;
    border-radius: 22px;
    box-shadow: 0 22px 48px rgba(15, 23, 42, .20);
}

.modern-invitation-body {
    padding: 1.35rem;
}

.invitation-date-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .5rem .8rem;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: .8rem;
    font-weight: 900;
}

.invitation-status-dot {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #047857;
    font-size: .78rem;
    font-weight: 900;
}

.invitation-status-dot::before {
    content: "";
    width: .55rem;
    height: .55rem;
    border-radius: 999px;
    background: #10b981;
    box-shadow: 0 0 0 5px rgba(16, 185, 129, .12);
}

.modern-invitation-body h3 {
    margin: 0 0 .9rem;
    color: #111827;
    font-size: 1.35rem;
    font-weight: 950;
    line-height: 1.15;
    letter-spacing: -.03em;
}

.invitation-meta-list {
    display: grid;
    gap: .65rem;
    margin-bottom: 1rem;
}

.invitation-meta-list div {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: #334155;
}

.invitation-meta-list span {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
}

.modern-invitation-body p {
    min-height: 48px;
    color: #64748b;
    line-height: 1.65;
}

.invitation-main-action {
    border: 0;
    border-radius: 16px;
    padding: .85rem 1rem;
    font-weight: 950;
    background: linear-gradient(135deg, #2563eb, #0f62fe);
    box-shadow: 0 16px 30px rgba(37, 99, 235, .25);
}

.invitation-outline-action {
    border-radius: 16px;
    padding: .85rem 1rem;
    font-weight: 950;
}

.invitation-empty-state {
    border: 1px solid rgba(226, 232, 240, .85);
    border-radius: 30px;
    padding: 3rem 1.5rem;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
}

.invitation-empty-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 1rem;
    border-radius: 24px;
    display: grid;
    place-items: center;
    background: #dbeafe;
    font-size: 2rem;
}

.invitation-empty-state h2 {
    font-weight: 950;
    color: #0f172a;
}

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

.invitation-pagination .pagination {
    justify-content: center;
}

.invitation-detail-hero {
    padding: 3.5rem 0 2rem;
}

.invitation-detail-hero h1 {
    margin: .9rem auto .55rem;
    max-width: 860px;
    color: #0b3b82;
    font-size: clamp(2rem, 5vw, 4.2rem);
    font-weight: 950;
    line-height: 1;
    letter-spacing: -.055em;
}

.invitation-detail-hero p {
    color: #475569;
    font-weight: 800;
}

.invitation-detail-section {
    padding: 0 0 5rem;
}

.invitation-detail-poster-card,
.invitation-detail-info-card {
    border: 1px solid rgba(226, 232, 240, .85);
    border-radius: 32px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 28px 80px rgba(15, 23, 42, .10);
}

.invitation-detail-poster-card {
    overflow: hidden;
}

.modern-poster-preview {
    min-height: 640px;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(219, 234, 254, .92), rgba(255, 247, 237, .94)),
        radial-gradient(circle at top left, rgba(37, 99, 235, .18), transparent 42%);
}

.modern-poster-preview .invitation-preview-image,
.modern-poster-preview svg {
    width: min(100%, 560px);
    max-height: 82vh;
    object-fit: contain;
    border-radius: 26px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, .20);
}

.invitation-detail-info-card {
    position: sticky;
    top: 96px;
    padding: 1.55rem;
}

.invitation-detail-info-card h2 {
    margin: .7rem 0 1rem;
    color: #111827;
    font-size: 1.65rem;
    font-weight: 950;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.invitation-detail-info-card h5 {
    color: #0f172a;
    font-weight: 950;
}

.invitation-detail-info-card p {
    color: #475569;
    line-height: 1.75;
}

.invitation-detail-meta {
    display: grid;
    gap: .8rem;
}

.invitation-detail-meta > div {
    display: flex;
    gap: .8rem;
    align-items: center;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 18px;
    padding: .85rem;
    background: #f8fafc;
}

.invitation-detail-meta span {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: #dbeafe;
}

.invitation-detail-meta small {
    display: block;
    margin-bottom: .1rem;
    color: #64748b;
    font-weight: 800;
}

.invitation-detail-meta strong {
    color: #0f172a;
}

@media (max-width: 991px) {
    .invitation-detail-info-card {
        position: static;
    }

    .modern-poster-preview {
        min-height: auto;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .invitation-hero-modern {
        padding: 3rem 0 2rem;
    }

    .invitation-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .modern-invitation-cover {
        min-height: 360px;
    }

    .modern-invitation-cover img,
    .modern-invitation-cover svg {
        max-height: 335px;
    }

    .modern-invitation-body {
        padding: 1.1rem;
    }

    .invitation-detail-hero {
        padding: 2.6rem 0 1.4rem;
    }

    .invitation-detail-info-card {
        padding: 1.15rem;
        border-radius: 24px;
    }
}

/* Tampilan undangan simpel */
.invitation-page-modern {
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 44%, #f8fafc 100%);
}

.invitation-navbar {
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .05);
}

.invitation-hero-simple,
.invitation-hero-modern {
    padding: 2.35rem 0 1.45rem;
    background: linear-gradient(180deg, #eef6ff 0%, rgba(255, 255, 255, .75) 100%);
}

.invitation-hero-simple::before,
.invitation-hero-simple::after,
.invitation-hero-modern::before,
.invitation-hero-modern::after {
    display: none !important;
}

.invitation-simple-head {
    max-width: 720px;
}

.invitation-kicker,
.invitation-mini-label {
    padding: .32rem .7rem;
    font-size: .68rem;
    letter-spacing: .07em;
    background: #e8f1ff;
    color: #0d47a1;
}

.invitation-title-modern,
.invitation-detail-hero h1 {
    margin: .55rem auto .45rem;
    color: #0b3b82;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.invitation-subtitle-modern {
    max-width: 620px;
    margin-bottom: 0;
    color: #475569;
    font-size: .98rem;
    line-height: 1.65;
}

.invitation-hero-pills {
    display: none !important;
}

.invitation-list-section {
    padding: 2rem 0 4rem;
}

.invitation-section-head,
.invitation-section-head-simple {
    align-items: center;
    margin-bottom: 1.2rem;
}

.invitation-section-head h2 {
    margin-top: .45rem;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 900;
    letter-spacing: -.025em;
}

.invitation-count-badge {
    padding: .55rem .85rem;
    font-size: .9rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.modern-invitation-card {
    border-radius: 24px;
    box-shadow: 0 16px 45px rgba(15, 23, 42, .08);
}

.modern-invitation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 55px rgba(15, 23, 42, .11);
}

.modern-invitation-cover {
    min-height: 360px;
    padding: 16px;
    background: linear-gradient(135deg, #edf6ff, #fffaf0);
}

.modern-invitation-cover::before {
    display: none;
}

.modern-invitation-cover img,
.modern-invitation-cover svg {
    max-height: 335px;
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .16);
}

.modern-invitation-body {
    padding: 1.15rem;
}

.modern-invitation-body h3 {
    font-size: 1.12rem;
    line-height: 1.22;
    font-weight: 900;
}

.invitation-date-badge {
    padding: .38rem .65rem;
    font-size: .76rem;
}

.invitation-status-dot {
    font-size: .75rem;
}

.invitation-meta-list span {
    width: 30px;
    height: 30px;
    border-radius: 10px;
}

.modern-invitation-body p {
    min-height: 0;
    font-size: .94rem;
}

.invitation-main-action,
.invitation-outline-action {
    border-radius: 14px;
    padding: .78rem .95rem;
}

.invitation-detail-hero {
    padding: 2.3rem 0 1.2rem;
    background: linear-gradient(180deg, #eef6ff 0%, rgba(255, 255, 255, .78) 100%);
}

.invitation-detail-hero p {
    margin-bottom: 0;
    color: #475569;
    font-weight: 700;
}

@media (max-width: 768px) {
    .invitation-hero-simple,
    .invitation-hero-modern {
        padding: 1.8rem 0 1.15rem;
    }

    .invitation-title-modern,
    .invitation-detail-hero h1 {
        font-size: 2rem;
        letter-spacing: -.025em;
    }

    .invitation-subtitle-modern {
        font-size: .94rem;
    }

    .invitation-section-head,
    .invitation-section-head-simple {
        align-items: flex-start;
    }

    .modern-invitation-cover {
        min-height: 320px;
    }

    .modern-invitation-cover img,
    .modern-invitation-cover svg {
        max-height: 300px;
    }
}

.public-hero-modern .container {
    position: relative;
    z-index: 1;
}

.public-hero-modern .row {
    min-height: min(680px, 75vh);
}

.hero-mini-stat-card {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.public-stat-section .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

.category-stat-card {
    height: 100%;
}

@media (min-width: 992px) {
    .public-hero-modern .container {
        padding-top: 4rem !important;
        padding-bottom: 5rem !important;
    }

    .public-section {
        padding: 76px 0;
    }
}

@media (max-width: 991.98px) {
    .public-hero-modern .row {
        min-height: auto;
    }

    .hero-dashboard-card {
        margin-top: .5rem;
    }
}

@media (max-width: 767.98px) {
    .public-navbar {
        border-bottom: 1px solid rgba(15, 23, 42, .06);
    }

    .public-hero-modern {
        background: linear-gradient(145deg, #073b8e 0%, #0d6efd 55%, #0f8a73 100%);
    }

    .public-hero-modern .container {
        padding-top: 1.4rem !important;
        padding-bottom: 2.2rem !important;
    }

    .public-hero-modern::after {
        height: 32px;
    }

    .hero-orb {
        display: none;
    }

    .public-badge,
    .section-pill {
        font-size: .68rem;
        padding: .42rem .75rem;
    }

    .public-logo-modern {
        width: 58px;
        height: 58px;
        border-radius: 16px;
        padding: 7px;
    }

    .public-hero-modern h1 {
        font-size: clamp(2rem, 9vw, 2.85rem);
        line-height: 1;
    }

    .public-hero-text {
        max-width: 100%;
        font-size: .98rem;
        line-height: 1.6;
    }

    .public-cta {
        padding: .72rem 1rem;
        font-size: .95rem;
    }

    .hero-mini-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: .65rem;
        max-width: none;
        margin-top: .25rem;
    }

    .hero-mini-stats div {
        min-height: 86px;
        padding: .85rem .8rem;
        border-radius: 18px;
        background: rgba(255, 255, 255, .13);
    }

    .hero-mini-stats strong {
        font-size: 1.45rem;
    }

    .hero-mini-stats span {
        font-size: .78rem;
        line-height: 1.25;
    }

    .hero-dashboard-card {
        display: none;
    }

    .public-section {
        padding: 46px 0;
    }

    .public-stat-section .text-center.mb-5,
    .public-service-section .text-center.mb-5,
    #pejabat .text-center.mb-5 {
        margin-bottom: 1.4rem !important;
    }

    .section-title {
        font-size: 1.55rem !important;
        line-height: 1.15;
        letter-spacing: -.02em;
    }

    .section-subtitle {
        font-size: .92rem;
        line-height: 1.55;
    }

    .public-stat-section .d-flex[role="tablist"] {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto;
        padding: 0 .1rem .6rem;
        margin-bottom: 1rem !important;
        scrollbar-width: none;
    }

    .public-stat-section .d-flex[role="tablist"]::-webkit-scrollbar {
        display: none;
    }

    .stat-tab {
        flex: 0 0 auto;
        padding: .62rem .9rem;
        border-radius: 14px;
        font-size: .9rem;
        white-space: nowrap;
    }

    .public-stat-section .row {
        --bs-gutter-x: .75rem;
        --bs-gutter-y: .75rem;
    }

    .category-stat-card {
        min-height: 126px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        gap: .65rem;
        padding: 1rem;
        border-radius: 22px;
        box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
    }

    .category-stat-card:hover {
        transform: translateY(-3px);
    }

    .category-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 15px;
        font-size: 1.35rem;
    }

    .category-number {
        font-size: 1.75rem;
    }

    .category-label {
        margin-top: .25rem;
        font-size: .84rem;
        line-height: 1.25;
    }

    .service-card,
    .official-card,
    .profile-panel,
    .vision-panel {
        border-radius: 22px;
        box-shadow: 0 14px 36px rgba(15, 23, 42, .07);
    }

    .service-card {
        padding: 1rem;
        min-height: 190px;
    }

    .service-icon {
        width: 46px;
        height: 46px;
        margin-bottom: .75rem;
        border-radius: 16px;
        font-size: 1.35rem;
    }

    .service-card h5 {
        font-size: .95rem;
        line-height: 1.25;
    }

    .service-card p {
        font-size: .82rem;
        line-height: 1.45;
    }

    .service-link {
        font-size: .82rem;
    }

    .profile-panel,
    .vision-panel {
        padding: 1.25rem;
    }

    .public-activity-img,
    .public-activity-placeholder {
        height: 185px;
    }

    .footer-modern {
        flex-direction: column;
        gap: .35rem;
        font-size: .86rem;
    }
}

@media (max-width: 380px) {
    .hero-mini-stats,
    .public-stat-section .row {
        --bs-gutter-x: .55rem;
        --bs-gutter-y: .55rem;
    }

    .category-stat-card {
        min-height: 116px;
        padding: .85rem;
    }

    .category-number {
        font-size: 1.55rem;
    }

    .category-label {
        font-size: .78rem;
    }

    .service-card {
        min-height: 178px;
        padding: .9rem;
    }
}

/* Perapian desktop hero: dashboard kanan tidak ikut tinggi row utama */
.public-hero-modern > .container > .row,
.public-hero-modern .container > .row.min-vh-75 {
    min-height: clamp(520px, 68vh, 660px);
}

.hero-dashboard-card .row,
.hero-dashboard-card .row.g-3 {
    min-height: 0 !important;
}

@media (min-width: 992px) {
    .public-hero-modern .container {
        padding-top: 3rem !important;
        padding-bottom: 3.5rem !important;
    }

    .hero-dashboard-card {
        width: min(100%, 460px);
        margin-left: auto;
        padding: 1.35rem;
        border-radius: 28px;
        height: auto !important;
        min-height: 0 !important;
    }

    .hero-dashboard-card .mb-4 {
        margin-bottom: 1rem !important;
    }

    .hero-service-tile {
        min-height: 92px;
        padding: .9rem;
        border-radius: 20px;
    }

    .hero-service-tile span {
        font-size: 1.45rem;
        margin-bottom: .45rem;
    }

    .hero-service-tile strong {
        font-size: .88rem;
        line-height: 1.25;
    }

    .hero-progress {
        margin-top: 1rem !important;
    }

    .hero-mini-stat-card {
        min-height: 96px;
    }

    .public-hero-modern h1 {
        font-size: clamp(3rem, 4.3vw, 4.2rem);
    }
}
