/* ==================== Loading Overlay ==================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 15%, rgba(230, 244, 233, 0.9) 0%, rgba(248, 251, 249, 0.95) 46%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.36s ease, visibility 0.36s ease;
}

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

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 12px;
    transform: translateY(0) scale(1);
    opacity: 1;
    transition: transform 0.34s ease, opacity 0.34s ease;
}

.loading-logo {
    height: 58px;
    width: auto;
    max-width: 62px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    filter: drop-shadow(0 6px 14px rgba(15, 118, 82, 0.2));
    animation: logoFloat 1.9s ease-in-out infinite;
}

#loading-text {
    font-size: 0.93rem;
    font-weight: 700;
    letter-spacing: 0.045em;
    color: #1f2937;
    text-transform: uppercase;
    opacity: 0.92;
}

@keyframes logoFloat {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-4px) scale(1.035);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

/* --- Scanner Effect (Premium Loader) --- */
.scanner-container {
    position: relative;
    width: 94px;
    height: 94px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scanner-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(22, 101, 52, 0.2);
    box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.56), 0 10px 24px rgba(16, 185, 129, 0.12);
    animation: pulseRing 1.9s ease-in-out infinite;
}

.scanner {
    position: absolute;
    top: 8px;
    left: 7px;
    width: calc(100% - 14px);
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(22, 101, 52, 0.2), rgba(22, 101, 52, 0.95), rgba(22, 101, 52, 0.2), transparent);
    box-shadow: 0 0 14px rgba(22, 101, 52, 0.55);
    animation: scan 1.6s ease-in-out infinite;
    z-index: 2;
}

@keyframes scan {

    0%,
    100% {
        top: 8px;
        opacity: 0;
    }

    50% {
        top: calc(100% - 11px);
        opacity: 1;
    }
}

@keyframes pulseRing {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.72;
    }
    50% {
        transform: scale(1.04);
        opacity: 0.95;
    }
}

.loading-overlay.boot-leave .loading-content {
    transform: translateY(-8px) scale(0.985);
    opacity: 0;
}

.mobile-header,
.main-content,
.public-footer,
.bottom-nav {
    transition: opacity 0.44s cubic-bezier(0.22, 1, 0.36, 1), transform 0.44s cubic-bezier(0.22, 1, 0.36, 1);
}

body.app-entering .mobile-header,
body.app-entering .main-content,
body.app-entering .public-footer,
body.app-entering .bottom-nav {
    opacity: 0;
    transform: translateY(10px);
}

@media (prefers-reduced-motion: reduce) {
    .loading-logo,
    .scanner,
    .scanner-container::before {
        animation: none !important;
    }

    .mobile-header,
    .main-content,
    .public-footer,
    .bottom-nav {
        transition: none !important;
    }
}

/* ==================== Design Tokens & Typography ==================== */
:root {
    --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    
    /* Fluid Sizing System */
    --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
    --text-sm: clamp(0.8rem, 0.75rem + 0.3vw, 0.9rem);
    --text-base: clamp(0.95rem, 0.9rem + 0.4vw, 1.1rem);
    --text-lg: clamp(1.1rem, 1rem + 0.6vw, 1.35rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem);
    --text-2xl: clamp(1.5rem, 1.3rem + 1.2vw, 2.25rem);
    --text-3xl: clamp(2rem, 1.6rem + 2.5vw, 3.5rem);

    /* Premium Colors */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-900: #0f172a;
    
    --em-primary: #10b981;
    --em-dark: #065f46;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--slate-50);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-main);
    color: var(--slate-600);
    line-height: 1.7;
    padding-top: 56px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--slate-900);
    line-height: 1.2;
    letter-spacing: -0.025em;
    font-weight: 800;
}

@media (min-width: 769px) {
    body {
        padding-top: 70px;
        /* Adjust padding for desktop header */
    }
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

body.body-no-scroll {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0px);
}

/* ==================== Unified Header (Mobile First & Desktop) ==================== */

/* --- Base Header Styles (Mobile) --- */
.mobile-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 252, 249, 0.86));
    backdrop-filter: blur(14px) saturate(1.15);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    padding: 0 14px;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 6000;
    /* Highest priority below overlays */
    box-shadow: 0 10px 26px rgba(16, 35, 24, 0.1);
    border-bottom: 1px solid rgba(74, 124, 93, 0.2);
    transition: all 0.3s ease;
}

.mobile-header.is-scrolled {
    background: #fff;
    box-shadow: 0 14px 30px rgba(16, 35, 24, 0.14);
}

.mobile-header::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, rgba(74, 124, 93, 0), rgba(74, 124, 93, 0.4), rgba(74, 124, 93, 0));
    pointer-events: none;
}

.mobile-header.is-scrolled {
    box-shadow: 0 14px 30px rgba(16, 35, 24, 0.14);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

.header-logo {
    height: 56px;
    width: auto;
    flex: 0 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.header-title {
    font-size: clamp(0.95rem, 1vw, 1.1rem);
    font-weight: 700;
    color: var(--slate-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
    max-width: 150px;
}

.header-right-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: 8px;
    padding: 4px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(74, 124, 93, 0.12);
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #e9f5ec;
    border: 1px solid rgba(74, 124, 93, 0.18);
    border-radius: 999px;
    color: #1a1a1a;
    font-size: 12px;
}

.user-chip span {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-chip i {
    color: #1d8d27;
}

.user-dropdown {
    position: fixed;
    top: 65px;
    right: 16px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.user-dropdown.open {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown button {
    background: transparent;
    border: none;
    padding: 8px 12px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: #4b5563;
    transition: background 0.2s;
    border-radius: 6px;
}

.user-dropdown button:hover {
    background: #f3f4f6;
}

.user-dropdown button:active {
    transform: scale(0.98);
}

.header-icon {
    color: #243128;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.header-icon:hover {
    color: #1d8d27;
}

.header-right-icons > .header-icon,
.header-icon-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(74, 124, 93, 0.2);
    background: rgba(255, 255, 255, 0.82);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(31, 67, 45, 0.08);
}

.header-right-icons > .header-icon:hover,
.header-right-icons > .header-icon:focus-visible,
.header-icon-btn:hover,
.header-icon-btn:focus-visible {
    background: rgba(233, 245, 236, 0.95);
    border-color: rgba(74, 124, 93, 0.35);
    color: #1d8d27;
    outline: none;
}

.header-right-icons > .header-icon:active,
.header-icon-btn:active {
    transform: translateY(1px);
}

.header-right-icons > .header-icon.is-active,
.header-icon-btn.is-active {
    background: rgba(233, 245, 236, 0.98);
    border-color: rgba(74, 124, 93, 0.38);
    color: #1d8d27;
}

/* --- Hamburger Menu Icon --- */
.hamburger-menu {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(74, 124, 93, 0.2);
    cursor: pointer;
    padding: 7px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 38px;
    height: 38px;
    z-index: 1010;
    flex: 0 0 auto;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.hamburger-menu:hover,
.hamburger-menu:focus-visible {
    background: rgba(233, 245, 236, 0.95);
    border-color: rgba(74, 124, 93, 0.35);
    outline: none;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: #243128;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-menu.is-open .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hamburger-menu.is-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.is-open .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* --- Mobile Navigation Panel (Dropdown) --- */
.mobile-nav {
    position: fixed;
    top: 64px;
    left: 0;
    width: 280px;
    height: calc(100% - 64px);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1400;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav.open {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
}

.mobile-nav-links {
    list-style: none;
    padding: 8px;
    /* Reduced padding */
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    /* Reduced padding */
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.mobile-nav-link i {
    display: none;
    /* Hide icons for a minimalist look */
}

.mobile-nav-link:hover {
    background-color: #f1f3f5;
}

.mobile-nav-link.active {
    color: #1d8d27;
    font-weight: 600;
    background-color: #e9f5ec;
}

.mobile-nav-link.active i {
    color: #1d8d27;
}

@media (max-width: 480px) {
    .mobile-header {
        padding: 0 8px;
    }

    .header-right-icons {
        gap: 4px;
        margin-left: 4px;
        padding: 2px;
    }

    .header-icon {
        font-size: 0.95rem;
    }

    .header-icon-btn,
    .hamburger-menu {
        width: 34px;
        height: 34px;
        min-width: 34px;
        border-radius: 10px;
    }

    #profile-header-btn.is-login-state {
        font-size: 11px;
        padding: 0 8px;
        width: auto;
        min-width: 50px;
    }

    .hamburger-menu {
        padding: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-header,
    .header-icon,
    .header-icon-btn,
    .hamburger-menu,
    .hamburger-line {
        transition: none !important;
        animation: none !important;
    }
}






/* Under Construction Modal */
.under-construction-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(2px);
}

.under-construction-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.under-construction-modal {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.under-construction-modal i {
    font-size: 56px;
    color: #4a7c5d;
    margin-bottom: 16px;
    display: block;
}

.under-construction-modal h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.under-construction-modal p {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #efefef;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
    display: none;
    z-index: 1200;
}

.bottom-nav .bottom-nav-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 0;
    padding: 0 4px;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 2px 8px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 11px;
    min-width: 0;
    word-break: break-word;
}

.bottom-nav a.active {
    color: #1d8d27;
}

.bottom-nav i {
    font-size: 18px;
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .bottom-nav {
        display: block;
    }

    body {
        padding-bottom: 64px;
    }
}

@media (max-width: 768px) {
    .page-quiz .floating-action-btn {
        bottom: calc(88px + env(safe-area-inset-bottom, 0px));
        z-index: 1301;
    }
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1300;
}

.toast.show {
    opacity: 0.96;
}

.set-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.set-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px;
    border-radius: 16px;
    color: #0f172a;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateZ(0);
    will-change: transform, box-shadow;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.set-card i {
    font-size: 20px;
}

.set-card span {
    font-size: 14px;
}

.set-card small {
    color: #334155;
    font-weight: 500;
}

.set-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.set-card:active {
    transform: translateY(0);
}

.set-card:disabled {
    opacity: 0.45;
    filter: grayscale(0.1);
    cursor: not-allowed;
}

.set-card[data-set="1"] {
    background: linear-gradient(135deg, #e9f5ec, #d8f3dc);
    border-color: rgba(74, 124, 93, 0.25);
}

.set-card[data-set="2"] {
    background: linear-gradient(135deg, #e7f1ff, #dbeafe);
    border-color: rgba(59, 130, 246, 0.25);
}

.set-card[data-set="3"] {
    background: linear-gradient(135deg, #fff5db, #fde68a);
    border-color: rgba(245, 158, 11, 0.25);
}

@media (max-width: 640px) {
    .set-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        overflow: visible;
        padding-bottom: 0;
    }

    .set-card {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .set-card {
        transition: none;
    }
}

.under-construction-modal button {
    padding: 11px 24px;
    background: linear-gradient(135deg, #4a7c5d 0%, #3d6a4f 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Main Hero Section */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    /* Reduced top padding */
    text-align: center;
}

.hero-content {
    max-width: 480px;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo {
    width: 100px;
    height: auto;
    margin: 0 auto 24px;
    opacity: 0.95;
    filter: drop-shadow(0 8px 24px rgba(15, 118, 82, 0.15));
}

.hero-title {
    color: var(--slate-900);
    font-size: var(--text-3xl);
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}


.hero-subtitle {
    color: var(--slate-400);
    font-size: var(--text-lg);
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Quiz header back button */


.btn-hero {
    padding: 12px 28px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.btn-hero-primary {
    background: #4a7c5d;
    color: white;
    box-shadow: 0 2px 8px rgba(74, 124, 93, 0.15);
}

.btn-hero-secondary {
    background: transparent;
    color: #4a7c5d;
    border: 1.5px solid #4a7c5d;
}



.btn-hero:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Footer */
.public-footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #666;
    padding: 28px 20px;
    text-align: center;
    margin-top: auto;
    font-size: 12px;
    border-top: 1px solid rgba(74, 124, 93, 0.1);
}

.footer-text {
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a7c5d;
}

.footer-socials {
    margin-bottom: 12px;
}

.social-link {
    color: #666;
    margin: 0 10px;
    font-size: 1.6rem;
    transition: color 0.3s ease;
}

.footer-info {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 11px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #efefef;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .header-logo {
        height: 48px;
    }

    .hero-section {
        padding: 40px 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-tagline {
        font-size: 18px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .btn-hero {
        padding: 11px 24px;
        font-size: 14px;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .public-header {
        padding: 0 12px;
    }

    .header-logo {
        height: 44px;
    }

    .hero-logo {
        width: 130px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-tagline {
        font-size: 16px;
    }

    /* .hero-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    } */

    .btn-hero {
        padding: 12px 18px;
        font-size: 14px;
        min-height: 44px;
    }

    .public-footer {
        padding: 20px 14px;
        font-size: 12px;
    }

    .footer-info {
        gap: 12px;
        font-size: 11px;
    }
}

/* Quiz mobile controls */
@media (max-width: 480px) {
    .page-quiz #start-quiz-btn {
        min-height: 46px;
        padding: 12px 16px;
        font-size: 15px;
    }

    .page-quiz #next-btn.floating-action-btn {
        width: 56px;
        height: 56px;
        bottom: calc(88px + env(safe-area-inset-bottom, 0px));
        right: 16px;
        font-size: 18px;
        z-index: 1301;
    }

    .page-quiz #progress-text {
        font-size: 14px;
    }
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #e9f5ec 0%, #ffffff 100%);
    border: 1px solid rgba(74, 124, 93, 0.18);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.user-badge i {
    color: #1d8d27;
    font-size: 20px;
}

.user-badge-text {
    display: flex;
    flex-direction: column;
}

#user-name-text {
    font-weight: 600;
    color: #1a1a1a;
}

.user-badge-sub {
    font-size: 12px;
    color: #4a7c5d;
}

.empty-state {
    background: #fff;
    border: 1px solid #efefef;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.empty-state .empty-icon {
    font-size: 24px;
    margin-bottom: 8px;
}


/* ==================== Article Page ==================== */
/* ---
        Design System: Professional Article UI
        Target: Mobile-First, Readability, Elegance
        --- */

.page-article {
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Palatino, serif;

    --color-background: #FFFFFF;
    --color-text-primary: #1D1D1F;
    /* Near black for high contrast */
    --color-text-secondary: #6E6E73;
    /* Subtler gray for meta info */
    --color-accent: #1d8d27;
    /* A vibrant, modern blue */
    --color-border: #E5E5E5;
    --color-card-bg: #F5F5F7;

    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-article {
    font-family: var(--font-primary);
    margin: 0;
    background-color: var(--color-background);
    color: var(--color-text-primary);
}

/* --- Header --- */


/* --- Main Container --- */
.page-article .container {
    max-width: 100%;
    /* Full width on mobile */
    margin: 0;
    padding: 0;
}

/* --- Article List (Redesigned) --- */
.page-article #article-list {
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile-first: 1 column */
    gap: 20px;
}

.page-article .article-card {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-article .article-card-image {
    height: 160px;
    background-size: cover;
    background-position: center;
}

.page-article .article-card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Ensure content fills the card height */
}

.page-article .article-card h2 {
    margin: 0 0 12px;
    font-size: 1.1rem;
    /* 18px */
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text-primary);
    flex-grow: 1;
    /* Pushes the meta info down */
}

.page-article .article-card .meta {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    /* 13px */
    color: var(--color-text-secondary);
    margin-top: auto;
    /* Pushes itself to the bottom of the flex container */
    padding-top: 12px;
    /* Space between title and meta */
}

.page-article .article-card .author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    background-color: var(--color-border);
    background-size: cover;
    background-position: center;
}

.page-article .article-card .excerpt {
    display: none;
    /* Hide excerpt as per reference image */
}

.page-article .article-card-category {
    font-size: 0.75rem;
    /* 12px */
    font-weight: 600;
    color: var(--color-text-secondary);
    /* Default color for categories */
    text-transform: uppercase;
    margin-bottom: 8px;
}

.page-article .article-card-category--kader {
    color: #28a745;
    /* Green color for 'Kader' */
}

/* --- Article Reader --- */
.page-article #article-reader {
    background-color: var(--color-background);
    padding: 0;
    /* Padding will be on the content itself */
    border-radius: 0;
    box-shadow: none;
}

.page-article #back-to-list {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin: 20px 20px 0;
    background-color: var(--color-card-bg);
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.page-article #back-to-list:hover {
    background-color: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

.page-article #article-content {
    padding: 20px;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    /* 18px */
    line-height: 1.8;
    color: var(--color-text-primary);
}

.page-article #article-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 16px 0 32px;
    box-shadow: var(--shadow-medium);
    display: block;
}

.page-article #article-content h1 {
    font-family: var(--font-primary);
    font-size: 2.25rem;
    /* 36px */
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 8px;
    color: var(--color-text-primary);
}

.page-article #article-content .meta {
    font-family: var(--font-primary);
    font-size: 1rem;
    /* 16px */
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

.page-article #article-content h2,
.page-article #article-content h3 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    margin: 40px 0 16px;
}

.page-article #article-content h2 {
    font-size: 1.75rem;
}

/* 28px */
.page-article #article-content h3 {
    font-size: 1.5rem;
}

/* 24px */

.page-article #article-content p {
    margin: 0 0 24px;
}

.page-article #article-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding-left: 20px;
    margin: 32px 0;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--color-text-secondary);
}

.page-article .hidden {
    display: none;
}

.page-article .loading-indicator {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.page-article .loading-indicator.show {
    display: flex;
}

.page-article .spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: var(--color-accent);
    animation: spin 1s ease infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- Footer --- */
.page-article .public-footer {
    background-color: var(--color-card-bg);
    color: var(--color-text-secondary);
    padding: 32px 20px;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid var(--color-border);
}

.page-article .footer-text {
    margin: 0 0 16px;
    font-size: 0.875rem;
}

.page-article .footer-socials {
    margin-bottom: 16px;
}

.page-article .social-link {
    color: var(--color-text-secondary);
    margin: 0 12px;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.page-article .footer-info span {
    margin: 0 10px;
    font-size: 0.875rem;
}

/* --- Media Queries --- */
@media (min-width: 600px) {
    .page-article #article-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 24px;
    }
}

@media (min-width: 960px) {
    .page-article .container {
        max-width: 960px;
        margin: 0 auto;
    }
}

/* ==================== Struktur Organisasi Page ==================== */
.page-struktur * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.page-struktur {
    scroll-behavior: smooth;
}

.page-struktur {
    background: linear-gradient(135deg, #fafaf8 0%, #f5f5f3 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
    color: #1a1a1a;
    overflow-x: hidden;
}

/* ==================== HEADER ==================== */
.page-struktur .public-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #2c2c2c;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(74, 124, 93, 0.1);
}


/* ==================== MAIN CONTAINER ==================== */
.page-struktur .main-container {
    flex: 1;
    padding: 24px 16px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.page-struktur .page-title {
    color: #1a1a1a;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

/* ==================== Admin Page Styles ==================== */

.admin-body {
    background-color: #f0f2f5;
    font-family: 'Poppins', sans-serif;
    display: block;
    padding-top: 0;
}

/* --- Login Screen --- */
.page-auth {
    min-height: 100dvh;
    padding-top: 0;
}

.page-auth .login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: 24px 16px;
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
}

.page-auth.keyboard-open .login-screen {
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.page-auth .login-card {
    background: #ffffff;
    padding: 32px 24px 22px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.page-auth .login-card h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.page-auth .login-card p {
    font-size: 14px;
    color: #777;
    margin-bottom: 22px;
}

.page-auth .input-group {
    margin-bottom: 20px;
    text-align: left;
}

.page-auth .input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.page-auth .input-group input,
.page-auth .input-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.35;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #ffffff;
    color: #1f2937;
}

.page-auth .input-group input:focus,
.page-auth .input-group select:focus {
    outline: none;
    border-color: #4a7c5d;
    box-shadow: 0 0 0 3px rgba(74, 124, 93, 0.1);
}

.page-auth .input-group input::placeholder {
    color: #9ca3af;
}

.page-auth .input-hint {
    font-size: 12px;
    color: #667085;
    display: block;
    margin-top: 6px;
    line-height: 1.45;
}

.page-auth .field-error {
    display: block;
    margin-top: 6px;
    min-height: 16px;
    font-size: 12px;
    line-height: 1.35;
    color: #b42318;
}

.page-auth .field-error[hidden] {
    display: none;
}

.page-auth .input-group input.is-invalid,
.page-auth .input-group select.is-invalid {
    border-color: #d92d20;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12);
}

.page-auth .input-group input.is-invalid:focus,
.page-auth .input-group select.is-invalid:focus {
    border-color: #d92d20;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.16);
}

.page-auth .remember-row {
    margin-top: -2px;
    margin-bottom: 16px;
    text-align: left;
}

.page-auth .remember-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
    font-weight: 500;
    cursor: pointer;
}

.page-auth .remember-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #4a7c5d;
}

.page-auth .btn-login {
    width: 100%;
    padding: 14px;
    background: #4a7c5d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    min-height: 48px;
}

.page-auth .btn-login:hover {
    background: #3d6a4f;
}

.page-auth .btn-login:focus-visible {
    outline: 3px solid rgba(74, 124, 93, 0.24);
    outline-offset: 2px;
}

.page-auth .btn-login:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.page-auth .form-message {
    margin-top: 12px;
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.page-auth .form-message.error {
    color: #b42318;
}

.page-auth .form-message.success {
    color: #027a48;
}

/* --- Login Extras --- */
.page-auth .login-card .logo {
    width: 80px;
    height: auto;
    margin-bottom: 14px;
}

.page-auth .password-wrapper {
    position: relative;
    width: 100%;
}

.page-auth .password-wrapper input {
    padding-right: 40px !important;
}

.page-auth .password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.page-auth .password-toggle:hover {
    color: #4a7c5d;
}

.page-auth .register-link {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.page-auth .register-link a {
    color: #4a7c5d;
    text-decoration: none;
    font-weight: 600;
}

.page-auth .register-link a:hover {
    text-decoration: underline;
}

@media (max-width: 560px) {
    .page-auth .login-screen {
        padding: 10px 10px 12px;
    }

    .page-auth .login-card {
        max-width: 100%;
        padding: 22px 14px 16px;
        border-radius: 14px;
    }

    .page-auth .login-card .logo {
        width: 64px;
        margin-bottom: 10px;
    }

    .page-auth .login-card h1 {
        font-size: 20px;
    }

    .page-auth .login-card p {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .page-auth .input-group {
        margin-bottom: 14px;
    }

    .page-auth .input-group input,
    .page-auth .input-group select {
        padding: 11px 12px;
        font-size: 14px;
    }

    .page-auth .btn-login {
        min-height: 46px;
        font-size: 15px;
    }

    .page-auth.keyboard-open .login-card {
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    }
}

/* --- Dashboard Layout --- */
.dashboard-screen {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: #ffffff;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-header .header-logo {
    height: 40px;
}

.sidebar-nav {
    padding: 15px;
    flex-grow: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.nav-link i {
    margin-right: 15px;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.nav-link:hover {
    background-color: #f8f9fa;
}

.nav-link.active {
    background-color: #4a7c5d;
    color: #ffffff;
}

.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.main-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.menu-toggle-btn {
    display: none;
    /* Hidden by default */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    margin-right: 15px;
}

#page-title {
    font-size: 28px;
    font-weight: 700;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

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

.content-header h2 {
    font-size: 22px;
    font-weight: 600;
}

.btn-primary {
    background-color: #4a7c5d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    transform: scale(0.95);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

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

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #777;
}

.modal-body .input-group {
    margin-bottom: 15px;
}

.modal-body textarea {
    min-height: 100px;
    resize: vertical;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
}

.btn-secondary {
    background-color: #f1f3f5;
    color: #333;
}

/* --- Responsive Styles --- */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 1100;
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        padding: 15px;
    }

    .menu-toggle-btn {
        display: block;
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .modal-container {
        padding: 20px;
    }
}

/* === Global Styles & Variables === */
:root {
    --color-green-primary: #10B981;
    --color-green-secondary: #34D399;
    --color-green-dark: #059669;
    --color-gold-accent: #FBBF24;
    --color-gold-dark: #F59E0B;
    --color-light-bg: #F9FAFB;
    --color-white-transparent: rgba(255, 255, 255, 0.7);
    --color-gray-border: rgba(0, 0, 0, 0.1);
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
    --font-family: 'Poppins', sans-serif;
    --border-radius-card: 24px;
    --border-radius-button: 16px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.page-quiz {
    background: var(--color-light-bg);
    font-family: var(--font-family);
    color: #333;
    overflow-x: hidden;
    padding-top: 80px;
    /* Space for fixed header */
}

/* === Quiz Container === */
.quiz-container {
    max-width: 500px;
    /* Mobile-first */
    margin: 24px auto;
    padding: 16px;
    position: relative;
}

/* === Progress Indicator === */
#quiz-header {
    margin-bottom: 32px;
}

.progress-indicator {
    width: 100%;
}

.progress-text-container {
    text-align: center;
    margin-bottom: 8px;
}

#progress-text {
    display: inline-block;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-green-dark);
    background-color: rgba(209, 250, 229, 1);
    padding: 4px 12px;
    border-radius: 999px;
}

/* Admin badges and chips */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 12px;
}

.badge-set-1 {
    background: #fee2e2;
    color: #7f1d1d;
    border: 1px solid #fecaca;
}

.badge-set-2 {
    background: #dbeafe;
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
}

.badge-set-3 {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fde68a;
}

.badge-category {
    background: #e9f5ec;
    color: #14532d;
    border: 1px solid rgba(74, 124, 93, 0.18);
}

.chip-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
}

.chip-button.active {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.18);
}

.progress-bar-track {
    width: 100%;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 999px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-green-secondary), var(--color-gold-accent));
    border-radius: 999px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Question Card === */
#quiz-body {
    perspective: 1000px;
}

.question-card {
    background: var(--color-white-transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius-card);
    padding: 24px;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.question-text {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 24px;
    text-align: center;
}

/* === Option Cards === */
.options-container {
    display: grid;
    gap: 12px;
}

.option-card {
    background-color: #fff;
    padding: 16px;
    border-radius: var(--border-radius-button);
    border: 2px solid transparent;
    box-shadow: var(--shadow-light);
    cursor: pointer;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    transform: translateY(0);
}

.option-card:active {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.option-card.selected {
    background: linear-gradient(120deg, #e0f2f1, #d1fae5);
    border-color: var(--color-green-primary);
    font-weight: 600;
    color: var(--color-green-dark);
}

.option-card.selected::before {
    content: '\f00c';
    /* FontAwesome checkmark */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    color: var(--color-green-dark);
    animation: scale-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* === Floating Action Button === */
.floating-action-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(45deg, var(--color-green-dark), var(--color-green-primary));
    color: white;
    font-size: 24px;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 1301;
}

/* === User Info Screen === */
#user-info-screen {
    text-align: center;
    padding: 40px 20px;
    animation: fade-in 0.7s ease-in;
}

#user-info-screen h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

#user-info-screen p {
    color: #666;
    margin-bottom: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#username {
    width: 100%;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-button);
    font-size: 16px;
    font-family: var(--font-family);
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
}

#username:focus {
    outline: none;
    border-color: var(--color-green-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

#start-quiz-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--border-radius-button);
    background: var(--color-green-primary);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

#start-quiz-btn:hover {
    background: var(--color-green-dark);
    box-shadow: var(--shadow-medium);
}

.floating-action-btn:disabled {
    background: #bdc3c7;
    box-shadow: none;
    cursor: not-allowed;
    transform: scale(0.9);
    opacity: 0.7;
}

.floating-action-btn.enabled {
    animation: pulse 2s infinite;
}

.floating-action-btn:not(:disabled):active {
    transform: scale(0.95);
    box-shadow: 0 5px 10px rgba(16, 185, 129, 0.2);
}

/* === Result Screen === */
#result-container {
    display: none;
    /* Hidden by default */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-light-bg);
    z-index: 200;
}

#result-container h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

#result-container p {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
}

#score-text {
    font-size: 72px;
    font-weight: 700;
    background: linear-gradient(45deg, var(--color-green-primary), var(--color-gold-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 32px;
}

.result-actions {
    display: flex;
    gap: 16px;
}

.result-button {
    padding: 14px 28px;
    border: none;
    border-radius: var(--border-radius-button);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: var(--color-white-transparent);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
}

.result-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

#restart-btn {
    background-color: var(--color-green-primary);
    color: white;
}

/* === Animations === */
@keyframes scale-in {
    from {
        transform: translateY(-50%) scale(0);
    }

    to {
        transform: translateY(-50%) scale(1);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
    }

    50% {
        box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
    }

    100% {
        box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.floating-action-btn.shake {
    animation: shake 0.5s;
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(50px) rotateY(-20deg);
    }

    to {
        opacity: 1;
        transform: translateX(0) rotateY(0);
    }
}

@keyframes slide-out {
    from {
        opacity: 1;
        transform: translateX(0) rotateY(0);
    }

    to {
        opacity: 0;
        transform: translateX(-50px) rotateY(20deg);
    }
}

.question-card.slide-in {
    animation: slide-in 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.question-card.slide-out {
    animation: slide-out 0.5s cubic-bezier(0.5, 0, 0.75, 0) forwards;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fade-in 0.7s ease-in forwards;
}

@keyframes count-up {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Particle Animation for Result Screen */
.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--color-gold-accent);
    border-radius: 50%;
    opacity: 0;
    animation: float 5s infinite ease-in-out;
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0.5);
        opacity: 0;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* ==================== Quiz Page ==================== */
/* === Global Styles & Variables === */
:root {
    --color-green-primary: #10B981;
    --color-green-secondary: #34D399;
    --color-green-dark: #059669;
    --color-gold-accent: #FBBF24;
    --color-gold-dark: #F59E0B;
    --color-light-bg: #F9FAFB;
    --color-white-transparent: rgba(255, 255, 255, 0.7);
    --color-gray-border: rgba(0, 0, 0, 0.1);
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
    --font-family: 'Poppins', sans-serif;
    --border-radius-card: 24px;
    --border-radius-button: 16px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.page-quiz {
    background: var(--color-light-bg);
    font-family: var(--font-family);
    color: #333;
    overflow-x: hidden;
    padding-top: 80px;
    /* Space for fixed header */
}

/* === Quiz Container === */
.quiz-container {
    max-width: 500px;
    /* Mobile-first */
    margin: 24px auto;
    padding: 16px;
    position: relative;
}

/* === Progress Indicator === */
#quiz-header {
    margin-bottom: 32px;
}

.progress-indicator {
    width: 100%;
}

.progress-text-container {
    text-align: center;
    margin-bottom: 8px;
}

#progress-text {
    display: inline-block;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-green-dark);
    background-color: rgba(209, 250, 229, 1);
    padding: 4px 12px;
    border-radius: 999px;
}

.progress-bar-track {
    width: 100%;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 999px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-green-secondary), var(--color-gold-accent));
    border-radius: 999px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Question Card === */
#quiz-body {
    perspective: 1000px;
}

.question-card {
    background: var(--color-white-transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius-card);
    padding: 24px;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.question-text {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 24px;
    text-align: center;
}

/* === Option Cards === */
.options-container {
    display: grid;
    gap: 12px;
}

.option-card {
    background-color: #fff;
    padding: 16px;
    border-radius: var(--border-radius-button);
    border: 2px solid transparent;
    box-shadow: var(--shadow-light);
    cursor: pointer;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    transform: translateY(0);
}

.option-card:active {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.option-card.selected {
    background: linear-gradient(120deg, #e0f2f1, #d1fae5);
    border-color: var(--color-green-primary);
    font-weight: 600;
    color: var(--color-green-dark);
}

.option-card.selected::before {
    content: '\f00c';
    /* FontAwesome checkmark */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    color: var(--color-green-dark);
    animation: scale-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* === Floating Action Button === */
.floating-action-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(45deg, var(--color-green-dark), var(--color-green-primary));
    color: white;
    font-size: 24px;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 1301;
}

/* === User Info Screen === */
#user-info-screen {
    text-align: center;
    padding: 40px 20px;
    animation: fade-in 0.7s ease-in;
}

#user-info-screen h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

#user-info-screen p {
    color: #666;
    margin-bottom: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#username {
    width: 100%;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-button);
    font-size: 16px;
    font-family: var(--font-family);
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
}

#username:focus {
    outline: none;
    border-color: var(--color-green-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

#start-quiz-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--border-radius-button);
    background: var(--color-green-primary);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

#start-quiz-btn:hover {
    background: var(--color-green-dark);
    box-shadow: var(--shadow-medium);
}

.floating-action-btn:disabled {
    background: #bdc3c7;
    box-shadow: none;
    cursor: not-allowed;
    transform: scale(0.9);
    opacity: 0.7;
}

.floating-action-btn.enabled {
    animation: pulse 2s infinite;
}

.floating-action-btn:not(:disabled):active {
    transform: scale(0.95);
    box-shadow: 0 5px 10px rgba(16, 185, 129, 0.2);
}

/* === Result Screen === */
#result-container {
    display: none;
    /* Hidden by default */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-light-bg);
    z-index: 200;
}

#result-container h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

#result-container p {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
}

#score-text {
    font-size: 72px;
    font-weight: 700;
    background: linear-gradient(45deg, var(--color-green-primary), var(--color-gold-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 32px;
}

.result-actions {
    display: flex;
    gap: 16px;
}

.result-button {
    padding: 14px 28px;
    border: none;
    border-radius: var(--border-radius-button);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: var(--color-white-transparent);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
}

.result-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

#restart-btn {
    background-color: var(--color-green-primary);
    color: white;
}

/* === Animations === */
@keyframes scale-in {
    from {
        transform: translateY(-50%) scale(0);
    }

    to {
        transform: translateY(-50%) scale(1);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
    }

    50% {
        box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
    }

    100% {
        box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.floating-action-btn.shake {
    animation: shake 0.5s;
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(50px) rotateY(-20deg);
    }

    to {
        opacity: 1;
        transform: translateX(0) rotateY(0);
    }
}

@keyframes slide-out {
    from {
        opacity: 1;
        transform: translateX(0) rotateY(0);
    }

    to {
        opacity: 0;
        transform: translateX(-50px) rotateY(20deg);
    }
}

.question-card.slide-in {
    animation: slide-in 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.question-card.slide-out {
    animation: slide-out 0.5s cubic-bezier(0.5, 0, 0.75, 0) forwards;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fade-in 0.7s ease-in forwards;
}

@keyframes count-up {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Particle Animation for Result Screen */
.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--color-gold-accent);
    border-radius: 50%;
    opacity: 0;
    animation: float 5s infinite ease-in-out;
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0.5);
        opacity: 0;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

.page-struktur .page-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 32px;
    font-weight: 400;
}

/* ==================== VIEW 1: BIDANG GRID (MAIN VIEW) ==================== */
.page-struktur #viewBidangGrid {
    display: block;
}

.page-struktur #viewBidangGrid.hidden {
    display: none;
}

.page-struktur .bidang-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.page-struktur .bidang-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: auto;
}

.page-struktur .bidang-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, transparent 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-struktur .bidang-card:hover::before {
    opacity: 1;
}

.page-struktur .bidang-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
}

.page-struktur .bidang-card:active {
    transform: translateY(-3px) scale(0.98);
}

.page-struktur .bidang-card-header {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    background: #f0f0f0;
    width: 100%;
    order: -1;
}

.page-struktur .bidang-card-header img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.page-struktur .bidang-card-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 30%, transparent 60%);
    pointer-events: none;
    z-index: 2;
}

.page-struktur .bidang-card-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 3;
}

.page-struktur .bidang-card-content {
    flex: 1;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: space-between;
    background: white;
    min-height: auto;
}

.page-struktur .bidang-card-name {
    font-size: 16px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.page-struktur .bidang-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.page-struktur .btn-card {
    flex: 1;
    padding: 9px 10px;
    border: none;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    text-decoration: none;
    min-height: 34px;
}

.page-struktur .btn-card-anggota {
    background: rgba(74, 124, 93, 0.1);
    color: #4a7c5d;
    border: 1px solid rgba(74, 124, 93, 0.2);
}

.page-struktur .btn-card-anggota:hover {
    background: rgba(74, 124, 93, 0.2);
    border-color: rgba(74, 124, 93, 0.4);
}

.page-struktur .btn-card-anggota:active {
    transform: scale(0.96);
}

.page-struktur .btn-card-program {
    background: #4a7c5d;
    color: white;
    border: 1px solid #4a7c5d;
}

.page-struktur .btn-card-program:hover {
    background: #3d6a4f;
    border-color: #3d6a4f;
}

.page-struktur .btn-card-program:active {
    transform: scale(0.96);
}

/* ==================== VIEW 2: ANGGOTA ==================== */
.page-struktur #viewAnggota {
    display: none;
}

.page-struktur #viewAnggota.active {
    display: block;
}

.page-struktur .anggota-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(74, 124, 93, 0.1);
}

.page-struktur .back-btn {
    background: rgba(74, 124, 93, 0.08);
    border: 1px solid rgba(74, 124, 93, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a7c5d;
    font-size: 18px;
    transition: all 0.15s ease;
}

.page-struktur .back-btn:hover {
    background: rgba(74, 124, 93, 0.12);
    border-color: rgba(74, 124, 93, 0.3);
}

.page-struktur .back-btn:active {
    transform: scale(0.94);
}

.page-struktur .header-info {
    flex: 1;
}

.page-struktur .anggota-header .header-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

.page-struktur .anggota-header .header-count {
    font-size: 12px;
    color: #888;
    font-weight: 600;
    margin-top: 4px;
}

.page-struktur .anggota-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 40px;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    border: none;
    box-shadow: none;
}

.page-struktur .anggota-card {
    background: white;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(74, 124, 93, 0.1),
        0 8px 24px rgba(74, 124, 93, 0.08);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    margin-bottom: 12px;
    position: relative;
    border: 1px solid rgba(74, 124, 93, 0.12);
    background: white;
    backdrop-filter: blur(8px);
}

.page-struktur .anggota-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #4a7c5d 0%, #3d6a4f 100%);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.2s ease;
    z-index: 10;
}

.page-struktur .anggota-card:hover::before {
    transform: scaleY(1);
}

.page-struktur .anggota-card:last-child {
    border-bottom: 1px solid rgba(74, 124, 93, 0.08);
    margin-bottom: 0;
}

.page-struktur .anggota-card:hover {
    box-shadow: 0 12px 32px rgba(74, 124, 93, 0.16),
        0 4px 12px rgba(74, 124, 93, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(74, 124, 93, 0.2);
}

.page-struktur .anggota-card-photo {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #4a7c5d 0%, #3d6a4f 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 -30px 40px rgba(0, 0, 0, 0.1),
        inset 0 30px 40px rgba(255, 255, 255, 0.08);
}

.page-struktur .anggota-card-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.15) 100%);
    pointer-events: none;
    z-index: 3;
}

.page-struktur .anggota-card-photo.no-image img {
    display: none;
}

.page-struktur .anggota-card-photo.no-image .anggota-card-avatar {
    opacity: 1;
}

@keyframes orgImageSkeletonShimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.page-struktur .org-node-media.is-loading:not(.no-image)::before,
.page-struktur .anggota-card-photo.is-loading:not(.no-image)::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 80%);
    animation: orgImageSkeletonShimmer 1.2s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

.page-struktur .org-node-media.is-loading:not(.no-image) img,
.page-struktur .anggota-card-photo.is-loading:not(.no-image) img {
    opacity: 0;
}

.page-struktur .org-node-media.is-loaded img,
.page-struktur .anggota-card-photo.is-loaded img {
    opacity: 1;
    transition: opacity 0.24s ease;
}

.page-struktur .anggota-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.page-struktur .anggota-card:hover .anggota-card-photo img {
    transform: scale(1.05);
}

.page-struktur .anggota-card-avatar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.8);
    background: linear-gradient(135deg, #4a7c5d 0%, #3d6a4f 100%);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.page-struktur .anggota-card-photo.no-image img {
    display: none;
}

.page-struktur .anggota-card-photo.no-image .anggota-card-avatar {
    opacity: 1;
    z-index: 2;
}

.page-struktur .anggota-card-info {
    padding: 18px 16px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.95) 100%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    flex: 1;
    border-top: 1px solid rgba(74, 124, 93, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.page-struktur .anggota-card-name {
    font-size: 16px;
    font-weight: 800;
    color: #0f0f0f;
    line-height: 1.3;
    letter-spacing: -0.1px;
    width: 100%;
    background: linear-gradient(135deg, #0f0f0f 0%, #3d6a4f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-struktur .anggota-card-role {
    font-size: 11px;
    color: #4a7c5d;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    background: linear-gradient(135deg, rgba(74, 124, 93, 0.08) 0%, rgba(74, 124, 93, 0.04) 100%);
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid rgba(74, 124, 93, 0.1);
}

.page-struktur .anggota-card-quote {
    font-size: 12px;
    color: #777;
    font-style: italic;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
    margin-top: 2px;
    font-weight: 500;
}

.page-struktur .anggota-card-indicator {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a7c5d;
    font-size: 12px;
    flex-shrink: 0;
    opacity: 0.5;
    transition: all 0.2s ease;
    align-self: flex-end;
    margin-top: 4px;
}

.page-struktur .anggota-card:hover .anggota-card-indicator {
    opacity: 1;
    transform: translateX(3px);
}

/* ==================== VIEW 3: PROGRAM KERJA ==================== */
.page-struktur #viewProgram {
    display: none;
}

.page-struktur #viewProgram.active {
    display: block;
}

.page-struktur .program-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(74, 124, 93, 0.1);
}

.page-struktur .program-header-info {
    flex: 1;
}

.page-struktur .program-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

.page-struktur .program-subtitle {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
    font-weight: 500;
}

.page-struktur .program-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.page-struktur .org-empty-state {
    background: #ffffff;
    border-radius: 14px;
    border: 1px dashed rgba(74, 124, 93, 0.35);
    padding: 16px;
    color: #3f4d46;
    font-size: 14px;
    font-weight: 600;
}

.page-struktur .program-card {
    background: white;
    border-radius: 14px;
    padding: 18px 16px;
    border: 1px solid rgba(74, 124, 93, 0.1);
    box-shadow: 0 4px 16px rgba(74, 124, 93, 0.08);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.page-struktur .program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-bidang, #4a7c5d), var(--color-bidang-light, #3d6a4f));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.page-struktur .program-card:hover::before {
    transform: scaleX(1);
}

.page-struktur .program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(74, 124, 93, 0.15);
}

.page-struktur .program-card:active {
    transform: translateY(-2px) scale(0.98);
}

.page-struktur .program-card-name {
    font-size: 16px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.2px;
}

.page-struktur .program-card-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    font-weight: 500;
}

.page-struktur .program-card-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.page-struktur .status-terlaksana {
    color: #27ae60;
}

.page-struktur .status-terlaksana::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #27ae60;
}

.page-struktur .status-rencana {
    color: #f39c12;
}

.page-struktur .status-rencana::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f39c12;
}

.page-struktur .btn-instagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    margin-top: 16px;
    transition: all 0.2s ease;
}

.page-struktur .btn-instagram:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ==================== MODAL DETAIL ANGGOTA ==================== */
.page-struktur .anggota-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    padding: 16px;
    backdrop-filter: blur(2px);
}

.page-struktur .anggota-detail-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* GANTI KODE INI */
.page-struktur .anggota-detail-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    max-width: 400px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 1px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateZ(0);
    position: relative;
    /* Penting untuk posisi tombol */
}

/* Tambahkan style untuk tombol close */
.page-struktur .close-btn-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.3);
    /* Latar belakang sedikit transparan */
    color: white;
    border: none;
    border-radius: 50%;
    /* Membuatnya bundar */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 10;
    transition: all 0.2s ease;
}

.page-struktur .close-btn-modal:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.page-struktur .anggota-detail-header {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #4a7c5d 0%, #3d6a4f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 -30px 40px rgba(0, 0, 0, 0.1),
        inset 0 30px 40px rgba(255, 255, 255, 0.08);
}

.page-struktur .anggota-detail-header img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.page-struktur .anggota-detail-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.15) 100%);
    pointer-events: none;
    z-index: 3;
}

.page-struktur .anggota-detail-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 4;
}

.page-struktur .anggota-detail-header.no-image img {
    display: none;
}

.page-struktur .anggota-detail-header.no-image .anggota-detail-avatar {
    opacity: 1;
}

.page-struktur .anggota-detail-avatar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.8);
    background: linear-gradient(135deg, #4a7c5d 0%, #3d6a4f 100%);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.page-struktur .anggota-detail-content {
    flex: 1;
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.98) 100%);
}

.page-struktur .anggota-detail-name {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.page-struktur .anggota-detail-role {
    font-size: 12px;
    color: #4a7c5d;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 12px;
    background: rgba(74, 124, 93, 0.08);
    border-radius: 8px;
    width: fit-content;
    border: 1px solid rgba(74, 124, 93, 0.12);
}

.page-struktur .anggota-detail-divider {
    height: 1px;
    background: rgba(74, 124, 93, 0.1);
    margin: 8px 0;
}

.page-struktur .anggota-detail-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.page-struktur .anggota-detail-info-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.page-struktur .anggota-detail-info-label {
    font-size: 11px;
    color: #888;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-struktur .anggota-detail-info-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    line-height: 1.5;
}

.page-struktur .anggota-detail-quote {
    font-size: 13px;
    color: #555;
    font-style: italic;
    padding: 14px 14px;
    background: rgba(74, 124, 93, 0.05);
    border-left: 3px solid #4a7c5d;
    border-radius: 6px;
    line-height: 1.6;
    margin: 8px 0;
}

.page-struktur .anggota-detail-instagram {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.page-struktur .btn-instagram {
    flex: 1;
    padding: 12px 16px;
    background: linear-gradient(135deg, #4a7c5d 0%, #3d6a4f 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.page-struktur .btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(74, 124, 93, 0.25);
}

.page-struktur .btn-instagram:active {
    transform: translateY(0);
}

.page-struktur .btn-instagram i {
    font-size: 14px;
}

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

.page-struktur .public-footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #666;
    padding: 28px 20px;
    text-align: center;
    font-size: 12px;
    border-top: 1px solid rgba(74, 124, 93, 0.1);
    margin-top: auto;
}

.page-struktur .footer-text {
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a7c5d;
}

.page-struktur .footer-info {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 11px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #efefef;
    color: #888;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .page-struktur .bidang-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .page-struktur .page-title {
        font-size: 24px;
    }

    .page-struktur .anggota-detail-card {
        max-width: 90%;
        max-height: 80vh;
    }

    .page-struktur .anggota-detail-content {
        padding: 24px 20px 20px;
    }

    .page-struktur .anggota-detail-name {
        font-size: 22px;
    }

    .page-struktur .btn-instagram {
        padding: 11px 14px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .page-struktur .main-container {
        padding: 16px 12px;
    }

    .page-struktur .page-title {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .page-struktur .page-subtitle {
        margin-bottom: 20px;
        font-size: 13px;
    }

    .page-struktur .bidang-card {
        min-height: auto;
    }

    .page-struktur .bidang-card-header {
        aspect-ratio: 16 / 9;
    }

    .page-struktur .bidang-card-name {
        font-size: 14px;
    }

    .page-struktur .btn-card {
        padding: 8px 9px;
        font-size: 10px;
        min-height: 32px;
    }

    .page-struktur .anggota-header,
    .page-struktur .program-header {
        gap: 10px;
        margin-bottom: 20px;
    }

    .page-struktur .back-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .page-struktur .anggota-header .header-title {
        font-size: 18px;
    }

    .page-struktur .anggota-header .header-count {
        font-size: 11px;
    }

    .page-struktur .anggota-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .page-struktur .anggota-card {
        margin-bottom: 0;
    }

    .page-struktur .anggota-card-photo {
        height: 140px;
    }

    .page-struktur .anggota-card-avatar {
        font-size: 36px;
    }

    .page-struktur .anggota-card-info {
        padding: 10px 12px;
    }

    .page-struktur .anggota-card-name {
        font-size: 13px;
    }

    .page-struktur .anggota-card-role {
        font-size: 9px;
    }

    .page-struktur .anggota-card-quote {
        font-size: 11px;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        padding: 3px 8px;
    }

    .page-struktur .program-title {
        font-size: 18px;
    }

    .page-struktur .program-subtitle {
        font-size: 12px;
    }

    .page-struktur .program-card {
        padding: 14px 12px;
    }

    .page-struktur .program-card-name {
        font-size: 15px;
    }

    .page-struktur .program-card-desc {
        font-size: 12px;
    }

    .page-struktur .public-footer {
        padding: 20px 14px;
        font-size: 11px;
    }
}

/* ==================== Ranking Page Styles ==================== */
.rank-card .stats {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-color-light);
}

.rank-card .stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stats-rest {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #8899a6;
    margin-left: auto;
    margin-right: 1.5rem;
}

.stats-rest span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.list-item .score {
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 80px;
    text-align: right;
}

/* --- Notification Timer Grid --- */
.nq-timer-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.timer-unit {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    min-width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-val {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent-primary, #1d8d27);
    font-variant-numeric: tabular-nums;
}

.timer-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: #666;
    margin-top: 4px;
    text-transform: uppercase;
}

.timer-sep {
    font-size: 1.5rem;
    font-weight: 700;
    color: #888;
    padding-bottom: 14px;
}

body.light-mode .timer-unit {
    background: #f0f0f0;
}

/* --- PREMIUM FLOATING ACTION BUTTON (FAB) --- */
.premium-fab-container {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 16px;
}

.fab-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-primary, #2D7A4A);
    color: white;
    border: none;
    box-shadow: 0 8px 32px rgba(45, 122, 74, 0.4);
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-main:hover {
    transform: scale(1.1) rotate(90deg);
}

.fab-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.premium-fab-container.open .fab-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.premium-fab-container.open .fab-main {
    background: #1a1a1a;
    transform: rotate(45deg);
}

.fab-option.back-to-top {
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #2D7A4A;
    color: white;
    border: none;
}

.fab-option.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    margin-bottom: 8px;
}

.fab-option {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    color: #4a7c5d;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}

.fab-option::after {
    content: attr(data-label);
    position: absolute;
    right: 60px;
    background: #1a1a1a;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.fab-option:hover {
    background: #f8fafc;
    color: var(--accent-primary);
    transform: scale(1.1);
}

.fab-option:hover::after {
    opacity: 1;
}

.fab-option.install-app-btn.install-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.fab-option.install-app-btn.install-disabled:hover {
    background: white;
    transform: none;
    opacity: 0.55;
}

.fab-option.install-app-btn {
    width: auto;
    min-width: 92px;
    padding: 10px 14px;
    border-radius: 999px;
    gap: 8px;
}

.fab-option.install-app-btn i {
    font-size: 14px;
}

.fab-option.install-app-btn .fab-option-text {
    font-size: 12px;
    font-weight: 600;
}

/* --- Notifications Badge --- */
.notif-bell {
    position: relative;
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 5px;
    line-height: 1;
    min-width: 16px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35);
}

.notif-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1200;
}

.notif-panel {
    position: fixed;
    top: 70px;
    right: 16px;
    width: min(340px, calc(100% - 32px));
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
    z-index: 1210;
    display: grid;
    gap: 10px;
    padding: 12px;
    animation: notifSlide 0.18s ease;
}

.notif-panel[hidden],
.notif-overlay[hidden] {
    display: none !important;
}

.notif-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: #0f172a;
}

.notif-push {
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px dashed rgba(15, 23, 42, 0.12);
    display: grid;
    gap: 8px;
}

.notif-push-text {
    font-size: 0.8rem;
    color: #475569;
}

.notif-push-warning {
    font-size: 0.75rem;
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 6px 10px;
    border-radius: 10px;
}

.notif-push-btn {
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 700;
    background: #0f172a;
    color: #ffffff;
    cursor: pointer;
}

.notif-push-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.notif-countdown {
    position: relative;
    border-radius: 16px;
    padding: 12px 14px;
    background: radial-gradient(120% 140% at 0% 0%, rgba(16, 185, 129, 0.18), rgba(59, 130, 246, 0.08) 60%, rgba(15, 23, 42, 0.02) 100%);
    border: 1px solid rgba(59, 130, 246, 0.25);
    display: grid;
    gap: 6px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    overflow: hidden;
}

.notif-countdown::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.18), rgba(59, 130, 246, 0.08));
    opacity: 0.4;
    pointer-events: none;
    animation: notifGlow 8s ease-in-out infinite;
}

.notif-countdown-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0f172a;
    position: relative;
    z-index: 1;
}

.notif-countdown-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    z-index: 1;
}

.notif-countdown-timer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.notif-countdown-sub {
    font-size: 0.75rem;
    color: #475569;
}

.notif-countdown-seg {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 10px;
    min-width: 62px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(226, 232, 240, 0.8));
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(6px);
    animation: notifSegGlow 10s ease-in-out infinite;
}

.notif-countdown-val {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.notif-countdown-unit {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.notif-countdown-state {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(226, 232, 240, 0.85));
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 999px;
    padding: 6px 12px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
}

@keyframes notifGlow {
    0%, 100% { opacity: 0.35; filter: saturate(1); }
    50% { opacity: 0.6; filter: saturate(1.15); }
}

@keyframes notifSegGlow {
    0%, 100% { transform: translateY(0); box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1); }
    50% { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14); }
}

@media (prefers-reduced-motion: reduce) {
    .notif-countdown::before,
    .notif-countdown-seg {
        animation: none;
    }
}

.notif-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #64748b;
}

.notif-panel-list {
    display: grid;
    gap: 8px;
    max-height: 240px;
    overflow: auto;
}

.notif-item {
    padding: 14px 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 8px;
}

.notif-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.notif-item.unread {
    border-color: rgba(34, 197, 94, 0.3);
    background: #f0fdf4;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.05);
}

.notif-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.notif-type-success .notif-item-icon { background: #dcfce7; color: #15803d; }
.notif-type-info .notif-item-icon { background: #e0f2fe; color: #0369a1; }
.notif-type-warning .notif-item-icon { background: #fef3c7; color: #b45309; }
.notif-type-danger .notif-item-icon { background: #fee2e2; color: #b91c1c; }

.notif-item-thumb {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(15, 23, 42, 0.05);
    flex-shrink: 0;
}

.notif-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notif-item-body { min-width: 0; }
.notif-item-title { font-size: 0.95rem; font-weight: 700; color: #0f172a; margin-bottom: 2px; line-height: 1.3; }
.notif-item-message { font-size: 0.85rem; color: #475569; line-height: 1.5; margin-bottom: 6px; }
.notif-item-meta { font-size: 0.72rem; color: #94a3b8; display: flex; align-items: center; gap: 4px; }
.notif-item-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #10b981;
    text-decoration: none;
    transition: gap 0.2s;
}
.notif-item-link:hover { gap: 8px; text-decoration: none; }

.notif-empty {
    font-size: 0.85rem;
    color: #94a3b8;
    text-align: center;
    padding: 12px 0;
}

.notif-mark-read {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 12px;
    padding: 8px 12px;
    font-weight: 600;
    cursor: pointer;
}

@keyframes notifSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- PAGE TRANSITIONS --- */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 10000;
    pointer-events: all;
    /* Block by default until fade out */
    opacity: 1;
    transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.page-transition-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Hide global FAB during active quiz to prevent overlap */
body.quiz-active .premium-fab-container {
    display: none !important;
}

@media (max-width: 768px) {
    .premium-fab-container {
        bottom: 84px;
        /* Above bottom nav */
        right: 16px;
    }
}

/* === Mobile Quiz UX Fixes === */
@media (max-width: 768px) {

    /* Hide bottom nav only while taking quiz to prevent overlap with floating next button */
    body.page-quiz .bottom-nav {
        display: none !important;
    }

    body {
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }

    body.page-quiz {
        padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    }

    /* eker tranparasn */
    body.page-quiz #next-btn.floating-action-btn {
        width: 56px;
        height: 56px;
        right: 16px;
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        z-index: 1302;
    }

    /* opsi soal */
    body.page-quiz #quiz-body {
        padding-bottom: 96px;
    }

    /* ngameh nyaman */
    body.page-quiz .options-container {
        gap: 14px;
    }

    body.page-quiz .option-card {
        min-height: 48px;
        padding: 16px 18px;
    }

    body.page-quiz .question-card {
        padding: 20px;
        margin-bottom: 20px;
    }

    body.page-quiz .result-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    body.page-quiz .result-button {
        width: 100%;
        min-height: 48px;
    }

}

.header-icon.install-app-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.header-icon.install-app-btn {
    font-size: 1.1rem;
    opacity: 0.7;
}

.header-icon.install-app-btn:hover {
    opacity: 1;
}
.header-icon.profile-icon-btn.is-login-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 66px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid rgba(29, 141, 39, 0.28);
    border-radius: 999px;
    background: #e9f5ec;
    color: #1d8d27;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
}

.header-icon.profile-icon-btn.is-login-state:hover {
    background: #dff0e4;
    color: #166e1e;
}

@media (max-width: 480px) {
    .header-icon.profile-icon-btn.is-login-state {
        width: auto;
        min-width: 60px;
        height: 36px;
        padding: 0 9px;
        font-size: 0.72rem;
    }
}

/* ==================== Struktur Organisasi Redesign v2 ==================== */
.page-struktur .page-subtitle {
    color: #5f6763;
    font-size: 15px;
    margin-bottom: 28px;
    font-weight: 500;
}

.page-struktur #viewBidangGrid {
    display: block;
}

.page-struktur #viewBidangGrid.hidden {
    display: none;
}

.page-struktur #viewDetail {
    display: none;
    background: #ffffff;
    border: 1px solid rgba(39, 70, 52, 0.12);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(21, 42, 31, 0.08);
    margin-bottom: 36px;
}

.page-struktur #viewDetail.active {
    display: block;
}

.page-struktur .bidang-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 36px;
}

.page-struktur .bidang-card {
    background: #ffffff;
    border: 1px solid rgba(39, 70, 52, 0.12);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 8px 24px rgba(26, 52, 39, 0.08);
}

.page-struktur .bidang-card:hover {
    transform: translateY(-3px);
    border-color: rgba(39, 70, 52, 0.2);
    box-shadow: 0 14px 32px rgba(26, 52, 39, 0.12);
}

.page-struktur .bidang-card:active {
    transform: translateY(-1px);
}

.page-struktur .bidang-card-header {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #eef3ef;
}

.page-struktur .bidang-card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-struktur .bidang-card-content {
    padding: 14px 14px 12px;
}

.page-struktur .bidang-card-name {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: #172019;
}

.page-struktur .bidang-card-meta {
    margin-top: 4px;
    font-size: 12px;
    color: #5f6763;
}

.page-struktur .bidang-card-actions {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.page-struktur .btn-card {
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-struktur .btn-card-anggota {
    background: #f3f7f4;
    color: #214d37;
    border-color: rgba(33, 77, 55, 0.18);
}

.page-struktur .btn-card-anggota:hover {
    background: #eaf2ed;
}

.page-struktur .btn-card-program {
    background: #214d37;
    color: #ffffff;
    border-color: #214d37;
}

.page-struktur .btn-card-program:hover {
    background: #1b402e;
}

.page-struktur .detail-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.page-struktur .back-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(33, 77, 55, 0.18);
    background: #f2f6f3;
    color: #214d37;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
}

.page-struktur .detail-header-info {
    min-width: 0;
    flex: 1;
}

.page-struktur .detail-title {
    font-size: 26px;
    line-height: 1.2;
    color: #142018;
    font-weight: 750;
    letter-spacing: -0.3px;
}

.page-struktur .detail-meta {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.page-struktur .detail-meta span {
    font-size: 12px;
    color: #4e5a53;
    background: #f2f6f3;
    border: 1px solid rgba(33, 77, 55, 0.14);
    padding: 5px 10px;
    border-radius: 999px;
    font-weight: 600;
}

.page-struktur .detail-segment {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: #eef3ef;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(33, 77, 55, 0.1);
    margin-bottom: 18px;
}

.page-struktur .segment-btn {
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: #3e5347;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-struktur .segment-btn.active {
    background: #ffffff;
    color: #1d4a34;
    border-color: rgba(29, 74, 52, 0.16);
    box-shadow: 0 3px 8px rgba(27, 53, 40, 0.08);
}

.page-struktur .detail-panel {
    display: none;
}

.page-struktur .detail-panel.active {
    display: block;
}

.page-struktur .hierarchy-section {
    margin-bottom: 18px;
}

.page-struktur .hierarchy-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.page-struktur .hierarchy-title {
    font-size: 18px;
    color: #142018;
    font-weight: 700;
}

.page-struktur .hierarchy-meta {
    font-size: 12px;
    color: #6b726e;
    font-weight: 600;
}

.page-struktur .anggota-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.page-struktur .anggota-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(30, 62, 45, 0.13);
    background: #ffffff;
    box-shadow: 0 5px 16px rgba(22, 45, 34, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.page-struktur .anggota-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 22px rgba(22, 45, 34, 0.12);
    border-color: rgba(30, 62, 45, 0.2);
}

.page-struktur .anggota-card.is-leadership {
    border-color: rgba(30, 93, 63, 0.24);
    box-shadow: 0 9px 22px rgba(19, 59, 41, 0.14);
}

.page-struktur .anggota-card-photo {
    width: 96px;
    height: 116px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(140deg, #2f6a4b 0%, #1f4f38 100%);
    position: relative;
}

.page-struktur .anggota-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-struktur .anggota-card-photo.no-image img {
    display: none;
}

.page-struktur .anggota-card-avatar {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 30px;
    font-weight: 700;
    opacity: 0;
}

.page-struktur .anggota-card-photo.no-image .anggota-card-avatar {
    opacity: 1;
}

.page-struktur .anggota-card-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.page-struktur .anggota-card-name {
    font-size: 17px;
    font-weight: 700;
    color: #15221a;
    line-height: 1.25;
}

.page-struktur .anggota-card-role {
    margin-top: 6px;
    width: fit-content;
    max-width: 100%;
    font-size: 11px;
    font-weight: 700;
    color: #1f5b3f;
    background: #edf5f0;
    border: 1px solid rgba(31, 91, 63, 0.16);
    border-radius: 8px;
    padding: 4px 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.page-struktur .anggota-card.is-leadership .anggota-card-role {
    background: #e6f2eb;
    border-color: rgba(24, 92, 60, 0.26);
}

.page-struktur .anggota-card-quote {
    margin-top: 8px;
    color: #57625c;
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-struktur .anggota-card-indicator {
    margin-top: auto;
    align-self: flex-end;
    color: #24543c;
    font-size: 12px;
    opacity: 0.6;
}

.page-struktur .program-list {
    display: grid;
    gap: 12px;
}

.page-struktur .program-card {
    border: 1px solid rgba(30, 62, 45, 0.13);
    border-left: 4px solid var(--color-bidang, #1f5b3f);
    border-radius: 12px;
    padding: 14px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(21, 40, 31, 0.08);
}

.page-struktur .program-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.page-struktur .program-card-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: #17241b;
}

.page-struktur .program-card-desc {
    margin-top: 8px;
    color: #596660;
    font-size: 14px;
    line-height: 1.55;
}

.page-struktur .program-card-status {
    flex-shrink: 0;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid transparent;
}

.page-struktur .program-card-status.status-draft {
    color: #55615d;
    background: #eff3f2;
    border-color: #d5dfdc;
}

.page-struktur .program-card-status.status-rencana {
    color: #8f6210;
    background: #fff7e7;
    border-color: #efd59b;
}

.page-struktur .program-card-status.status-terlaksana {
    color: #1e744c;
    background: #eaf7f1;
    border-color: #b8dfcb;
}

.page-struktur .org-empty-state {
    border: 1px dashed rgba(31, 91, 63, 0.32);
    border-radius: 12px;
    background: #fbfcfb;
    padding: 16px;
    color: #58655f;
    font-size: 14px;
    font-weight: 600;
}

.page-struktur .org-feedback-card {
    margin-top: 24px;
    margin-bottom: 36px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(30, 62, 45, 0.13);
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(21, 40, 31, 0.07);
}

.page-struktur .org-feedback-head h2 {
    font-size: 20px;
    line-height: 1.25;
    color: #15221a;
    font-weight: 750;
}

.page-struktur .org-feedback-head p {
    margin-top: 6px;
    color: #5b6861;
    font-size: 14px;
    line-height: 1.55;
}

.page-struktur .org-feedback-form {
    margin-top: 14px;
}

.page-struktur .org-feedback-trigger {
    width: 100%;
    min-height: 46px;
    border-radius: 10px;
    border: 1px dashed rgba(31, 91, 63, 0.45);
    background: #f7fbf8;
    color: #1f5b3f;
    padding: 10px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-struktur .org-feedback-trigger:hover,
.page-struktur .org-feedback-trigger.active {
    border-style: solid;
    border-color: rgba(31, 91, 63, 0.6);
    background: #eef7f1;
}

.page-struktur .org-feedback-panel {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(31, 91, 63, 0.12);
}

.page-struktur .org-feedback-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.page-struktur .org-feedback-field {
    margin-bottom: 10px;
}

.page-struktur .org-feedback-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #314138;
    margin-bottom: 6px;
}

.page-struktur .org-feedback-field input,
.page-struktur .org-feedback-field textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(31, 91, 63, 0.2);
    background: #fdfefd;
    color: #1b2a21;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.45;
}

.page-struktur .org-feedback-field input:focus,
.page-struktur .org-feedback-field textarea:focus {
    outline: none;
    border-color: rgba(31, 91, 63, 0.45);
    box-shadow: 0 0 0 3px rgba(31, 91, 63, 0.12);
}

.page-struktur .org-feedback-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.page-struktur .btn-submit-feedback {
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid #214d37;
    background: #214d37;
    color: #ffffff;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.page-struktur .btn-submit-feedback:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.page-struktur .org-feedback-status {
    font-size: 13px;
    font-weight: 600;
    color: #65726b;
}

.page-struktur .org-feedback-status.success {
    color: #1e744c;
}

.page-struktur .org-feedback-status.error {
    color: #a23232;
}

.page-struktur .anggota-detail-card {
    max-width: 420px;
}

.page-struktur .anggota-detail-content {
    padding: 24px 20px 20px;
}

.page-struktur .btn-instagram {
    min-height: 44px;
}

@media (min-width: 760px) {
    .page-struktur .bidang-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-struktur .hierarchy-section.is-regular .anggota-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1140px) {
    .page-struktur .bidang-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .page-struktur .main-container {
        padding: 18px 14px;
    }

    .page-struktur #viewDetail {
        border-radius: 16px;
        padding: 14px;
    }

    .page-struktur .detail-title {
        font-size: 22px;
    }

    .page-struktur .hierarchy-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .page-struktur .detail-title {
        font-size: 20px;
    }

    .page-struktur .segment-btn {
        font-size: 12px;
        padding: 0 8px;
    }

    .page-struktur .anggota-card {
        grid-template-columns: 88px minmax(0, 1fr);
        padding: 9px;
    }

    .page-struktur .anggota-card-photo {
        width: 88px;
        height: 108px;
    }

    .page-struktur .anggota-card-name {
        font-size: 15px;
    }

    .page-struktur .anggota-card-quote {
        font-size: 12px;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .page-struktur .program-card {
        padding: 12px;
    }

    .page-struktur .program-card-name {
        font-size: 15px;
    }

    .page-struktur .program-card-desc {
        font-size: 13px;
    }

    .page-struktur .org-feedback-card {
        padding: 14px;
    }

    .page-struktur .org-feedback-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ==================== Struktur Organisasi Overhaul v3 ==================== */
.page-struktur {
    --org-bg: #f3f5f3;
    --org-surface: #ffffff;
    --org-surface-soft: #f7faf8;
    --org-text: #152119;
    --org-muted: #5f6b62;
    --org-line: rgba(35, 74, 55, 0.22);
    --org-border: rgba(27, 52, 39, 0.14);
    --org-shadow: 0 16px 40px rgba(17, 36, 27, 0.08);
    --org-shadow-soft: 0 8px 20px rgba(17, 36, 27, 0.06);
    --org-radius-lg: 22px;
    --org-radius-md: 14px;
    --org-radius-sm: 11px;
}

.page-struktur {
    background: radial-gradient(circle at top right, #eef3ef 0%, #f3f5f3 48%, #f1f4f2 100%);
    color: var(--org-text);
}

.page-struktur .main-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 24px 20px 120px;
}

.page-struktur .org-hero {
    background: linear-gradient(145deg, #ffffff 0%, #f7fbf8 100%);
    border: 1px solid var(--org-border);
    border-radius: var(--org-radius-lg);
    padding: 24px;
    box-shadow: var(--org-shadow-soft);
    margin-bottom: 20px;
}

.page-struktur .org-kicker {
    font-size: 12px;
    letter-spacing: 0.16em;
    font-weight: 700;
    text-transform: uppercase;
    color: #2a6046;
    margin-bottom: 10px;
}

.page-struktur .org-hero-title {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0;
    color: #121c15;
}

.page-struktur .org-hero-subtitle {
    margin-top: 10px;
    color: var(--org-muted);
    font-size: 15px;
    line-height: 1.7;
    max-width: 760px;
}

.page-struktur .org-hero-stats {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.page-struktur .org-stat {
    background: var(--org-surface);
    border: 1px solid rgba(25, 52, 39, 0.1);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.page-struktur .org-stat-value {
    font-size: 24px;
    line-height: 1;
    font-weight: 780;
    color: #173121;
}

.page-struktur .org-stat-label {
    font-size: 12px;
    font-weight: 600;
    color: #5e6b63;
}

.page-struktur #viewBidangGrid {
    display: block;
}

.page-struktur #viewBidangGrid.hidden {
    display: none;
}

.page-struktur .org-chart-view {
    background: var(--org-surface);
    border: 1px solid var(--org-border);
    border-radius: var(--org-radius-lg);
    box-shadow: var(--org-shadow);
    padding: 20px;
}

.page-struktur .org-section-head h2 {
    margin: 0;
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.14;
    letter-spacing: -0.01em;
    color: #132017;
}

.page-struktur .org-section-head p {
    margin-top: 7px;
    margin-bottom: 0;
    color: var(--org-muted);
    font-size: 14px;
    line-height: 1.6;
}

.page-struktur .org-chart-canvas {
    margin-top: 18px;
    background: linear-gradient(180deg, #fbfdfb 0%, #f4f8f5 100%);
    border: 1px solid rgba(28, 53, 41, 0.1);
    border-radius: 16px;
    padding: 18px 14px;
}

.page-struktur .org-chart-tiers {
    display: grid;
    gap: 18px;
}

.page-struktur .org-tier {
    position: relative;
}

.page-struktur .org-tier[data-parent="true"] {
    padding-top: 26px;
}

.page-struktur .org-tier[data-parent="true"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 26px;
    border-radius: 999px;
    background: var(--org-line);
}

.page-struktur .org-tier-head {
    margin-bottom: 10px;
    text-align: center;
}

.page-struktur .org-tier-title {
    margin: 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-weight: 760;
    color: #26533f;
}

.page-struktur .org-tier-subtitle {
    margin: 4px 0 0;
    font-size: 12px;
    color: #647269;
    line-height: 1.4;
}

.page-struktur .org-tier-track {
    position: relative;
    display: grid;
    gap: 16px;
}

.page-struktur .org-tier-track.is-multi {
    padding-top: 16px;
}

.page-struktur .org-tier-track.is-multi::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--org-line);
    border-radius: 999px;
}

.page-struktur .org-tier-track.is-multi .org-node-card::before {
    content: '';
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 13px;
    background: var(--org-line);
    border-radius: 999px;
}

.page-struktur .org-tier-top .org-tier-track {
    grid-template-columns: minmax(280px, 420px);
    justify-content: center;
}

.page-struktur .org-tier-core .org-tier-track {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.page-struktur .org-tier-fields .org-tier-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.page-struktur .org-node-card {
    position: relative;
    width: 100%;
    border: 1px solid rgba(24, 47, 36, 0.14);
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(16, 35, 26, 0.09);
    cursor: pointer;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.page-struktur .org-node-card:hover {
    transform: translateY(-3px);
    border-color: rgba(24, 47, 36, 0.24);
    box-shadow: 0 16px 34px rgba(16, 35, 26, 0.12);
}

.page-struktur .org-node-card:focus-visible {
    outline: 3px solid rgba(27, 86, 57, 0.28);
    outline-offset: 2px;
}

.page-struktur .org-node-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(145deg, #e8edea 0%, #dfe6e1 100%);
    overflow: hidden;
}

.page-struktur .org-node-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-struktur .org-node-media.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-struktur .org-node-media.no-image img {
    display: none;
}

.page-struktur .org-node-fallback {
    display: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    place-items: center;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(150deg, #2a6448 0%, #1f4f38 100%);
}

.page-struktur .org-node-media.no-image .org-node-fallback {
    display: grid;
}

.page-struktur .org-node-content {
    padding: 14px 14px 13px;
}

.page-struktur .org-node-name {
    margin: 0;
    font-size: clamp(19px, 2vw, 24px);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #111d15;
}

.page-struktur .org-node-meta {
    margin: 6px 0 0;
    color: #5f6b62;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
}

.page-struktur #viewDetail {
    display: none;
    margin-top: 20px;
    background: var(--org-surface);
    border: 1px solid var(--org-border);
    border-radius: var(--org-radius-lg);
    box-shadow: var(--org-shadow);
    padding: 20px;
}

.page-struktur #viewDetail.active {
    display: block;
}

.page-struktur .detail-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.page-struktur .back-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(28, 58, 43, 0.16);
    background: #f3f7f4;
    color: #1c4d36;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.page-struktur .back-btn:hover {
    background: #ecf3ef;
}

.page-struktur .detail-header-info {
    min-width: 0;
    flex: 1;
}

.page-struktur .detail-title {
    margin: 0;
    font-size: clamp(28px, 2.6vw, 38px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #101c14;
}

.page-struktur .detail-title:focus {
    outline: none;
}

.page-struktur .detail-meta {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.page-struktur .detail-meta span {
    font-size: 12px;
    color: #4f5d55;
    background: #eef3ef;
    border: 1px solid rgba(29, 57, 43, 0.14);
    border-radius: 999px;
    font-weight: 700;
    padding: 5px 11px;
}

.page-struktur .detail-segment {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
    padding: 6px;
    border-radius: 12px;
    background: #eef3ef;
    border: 1px solid rgba(29, 57, 43, 0.11);
}

.page-struktur .segment-btn {
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #40564a;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.page-struktur .segment-btn.active {
    background: #ffffff;
    border-color: rgba(29, 57, 43, 0.16);
    color: #1c4d36;
    box-shadow: 0 5px 12px rgba(18, 37, 28, 0.08);
}

.page-struktur .detail-panel {
    display: none;
}

.page-struktur .detail-panel.active {
    display: block;
}

.page-struktur .hierarchy-section {
    border: 1px solid rgba(28, 58, 43, 0.12);
    border-radius: var(--org-radius-md);
    padding: 14px;
    background: #ffffff;
    box-shadow: var(--org-shadow-soft);
    margin-bottom: 14px;
}

.page-struktur .hierarchy-section.is-leadership {
    background: linear-gradient(170deg, #ffffff 0%, #f6faf7 100%);
}

.page-struktur .hierarchy-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.page-struktur .hierarchy-title {
    font-size: 18px;
    font-weight: 760;
    color: #122015;
}

.page-struktur .hierarchy-meta {
    font-size: 12px;
    font-weight: 700;
    color: #5b695f;
}

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

.page-struktur .hierarchy-section.is-leadership .anggota-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.page-struktur .anggota-card {
    display: grid;
    grid-template-columns: 106px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(31, 59, 45, 0.14);
    background: #ffffff;
    box-shadow: 0 6px 15px rgba(22, 41, 31, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.page-struktur .anggota-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(22, 41, 31, 0.12);
    border-color: rgba(31, 59, 45, 0.22);
}

.page-struktur .anggota-card:focus-visible {
    outline: 3px solid rgba(29, 87, 58, 0.28);
    outline-offset: 1px;
}

.page-struktur .anggota-card.is-leadership {
    border-color: rgba(26, 93, 61, 0.26);
}

.page-struktur .anggota-card-photo {
    width: 106px;
    height: 128px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(145deg, #2e694b 0%, #1f4f38 100%);
    position: relative;
}

.page-struktur .anggota-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-struktur .anggota-card-photo.no-image img {
    display: none;
}

.page-struktur .anggota-card-avatar {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.88);
    font-size: 30px;
    font-weight: 760;
    opacity: 0;
}

.page-struktur .anggota-card-photo.no-image .anggota-card-avatar {
    opacity: 1;
}

.page-struktur .anggota-card-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.page-struktur .anggota-card-name {
    font-size: 17px;
    line-height: 1.28;
    font-weight: 760;
    color: #142218;
}

.page-struktur .anggota-card-role {
    margin-top: 6px;
    width: fit-content;
    max-width: 100%;
    background: #edf5f0;
    border: 1px solid rgba(32, 88, 60, 0.18);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 700;
    color: #1f5b3f;
}

.page-struktur .anggota-card-quote {
    margin-top: 7px;
    color: #5e6a63;
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-struktur .anggota-card-indicator {
    margin-top: auto;
    align-self: flex-end;
    color: #28533f;
    font-size: 12px;
    opacity: 0.68;
}

.page-struktur .program-list {
    display: grid;
    gap: 10px;
}

.page-struktur .program-card {
    border: 1px solid rgba(31, 59, 45, 0.14);
    border-left: 4px solid var(--color-bidang, #1f5b3f);
    border-radius: 12px;
    padding: 14px;
    background: #ffffff;
    box-shadow: 0 4px 11px rgba(21, 39, 30, 0.07);
}

.page-struktur .program-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.page-struktur .program-card-name {
    font-size: 16px;
    line-height: 1.35;
    font-weight: 760;
    color: #152219;
}

.page-struktur .program-card-desc {
    margin-top: 7px;
    font-size: 14px;
    line-height: 1.58;
    color: #5d6961;
}

.page-struktur .program-card-status {
    flex-shrink: 0;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid transparent;
}

.page-struktur .program-card-status.status-draft {
    color: #55615d;
    background: #eff3f2;
    border-color: #d5dfdc;
}

.page-struktur .program-card-status.status-rencana {
    color: #8f6210;
    background: #fff7e7;
    border-color: #efd59b;
}

.page-struktur .program-card-status.status-terlaksana {
    color: #1e744c;
    background: #eaf7f1;
    border-color: #b8dfcb;
}

.page-struktur .org-empty-state {
    border: 1px dashed rgba(31, 91, 63, 0.34);
    border-radius: 12px;
    background: #fbfcfb;
    padding: 16px;
    color: #58655f;
    font-size: 14px;
    font-weight: 600;
}

.page-struktur #orgFeedbackSection[hidden] {
    display: none !important;
}

.page-struktur .org-feedback-card {
    margin-top: 16px;
    margin-bottom: 32px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(31, 59, 45, 0.14);
    background: #ffffff;
    box-shadow: var(--org-shadow-soft);
}

.page-struktur .org-feedback-head h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    color: #15221a;
}

.page-struktur .org-feedback-head p {
    margin-top: 6px;
    margin-bottom: 0;
    color: #5b6861;
    font-size: 14px;
    line-height: 1.55;
}

.page-struktur .org-feedback-trigger {
    width: 100%;
    min-height: 46px;
    margin-top: 12px;
    border-radius: 10px;
    border: 1px dashed rgba(31, 91, 63, 0.45);
    background: #f7fbf8;
    color: #1f5b3f;
    padding: 10px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-struktur .org-feedback-trigger:hover,
.page-struktur .org-feedback-trigger.active {
    border-style: solid;
    border-color: rgba(31, 91, 63, 0.62);
    background: #edf6f0;
}

.page-struktur .org-feedback-panel {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(31, 91, 63, 0.12);
}

.page-struktur .org-feedback-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.page-struktur .org-feedback-field {
    margin-bottom: 10px;
}

.page-struktur .org-feedback-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #314138;
    margin-bottom: 6px;
}

.page-struktur .org-feedback-field input,
.page-struktur .org-feedback-field textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(31, 91, 63, 0.2);
    background: #fdfefd;
    color: #1b2a21;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.45;
}

.page-struktur .org-feedback-field input:focus,
.page-struktur .org-feedback-field textarea:focus {
    outline: none;
    border-color: rgba(31, 91, 63, 0.45);
    box-shadow: 0 0 0 3px rgba(31, 91, 63, 0.12);
}

.page-struktur .org-feedback-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.page-struktur .btn-submit-feedback {
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid #214d37;
    background: #214d37;
    color: #ffffff;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.page-struktur .btn-submit-feedback:disabled {
    opacity: 0.76;
    cursor: not-allowed;
}

.page-struktur .org-feedback-status {
    font-size: 13px;
    font-weight: 600;
    color: #66726c;
}

.page-struktur .org-feedback-status.success {
    color: #1e744c;
}

.page-struktur .org-feedback-status.error {
    color: #a23232;
}

.page-struktur .anggota-detail-card {
    max-width: 440px;
}

@media (max-width: 1140px) {
    .page-struktur .org-tier-fields .org-tier-track {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .page-struktur .hierarchy-section.is-regular .anggota-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .page-struktur .org-tier-core .org-tier-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-struktur .org-tier-fields .org-tier-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .page-struktur .main-container {
        padding: 18px 14px 106px;
    }

    .page-struktur .org-hero,
    .page-struktur .org-chart-view,
    .page-struktur #viewDetail {
        border-radius: 16px;
        padding: 14px;
    }

    .page-struktur .org-hero-stats {
        grid-template-columns: 1fr;
    }

    .page-struktur .org-tier-head {
        text-align: left;
    }

    .page-struktur .org-tier[data-parent="true"] {
        padding-top: 16px;
    }

    .page-struktur .org-tier[data-parent="true"]::before {
        left: 22px;
        transform: none;
        height: 16px;
    }

    .page-struktur .org-tier-track,
    .page-struktur .org-tier-top .org-tier-track,
    .page-struktur .org-tier-core .org-tier-track,
    .page-struktur .org-tier-fields .org-tier-track {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .page-struktur .org-tier-track.is-multi {
        padding-top: 0;
    }

    .page-struktur .org-tier-track.is-multi::before,
    .page-struktur .org-tier-track.is-multi .org-node-card::before {
        display: none;
    }

    .page-struktur .detail-title {
        font-size: 26px;
    }

    .page-struktur .hierarchy-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .page-struktur .anggota-grid,
    .page-struktur .hierarchy-section.is-regular .anggota-grid,
    .page-struktur .hierarchy-section.is-leadership .anggota-grid {
        grid-template-columns: 1fr;
    }

    .page-struktur .org-feedback-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .page-struktur .detail-title {
        font-size: 22px;
    }

    .page-struktur .segment-btn {
        font-size: 12px;
        padding: 0 8px;
    }

    .page-struktur .org-node-name {
        font-size: 21px;
    }

    .page-struktur .anggota-card {
        grid-template-columns: 92px minmax(0, 1fr);
        padding: 9px;
    }

    .page-struktur .anggota-card-photo {
        width: 92px;
        height: 112px;
    }

    .page-struktur .anggota-card-name {
        font-size: 15px;
    }

    .page-struktur .anggota-card-quote {
        font-size: 12px;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .page-struktur .program-card {
        padding: 12px;
    }

    .page-struktur .program-card-name {
        font-size: 15px;
    }

    .page-struktur .program-card-desc {
        font-size: 13px;
    }
}

/* Struktur Organisasi - Susunan Anggota Hierarchy Ring v1 */
.page-struktur .member-hierarchy-shell {
    overflow: hidden;
}

.page-struktur .member-ring-layout {
    position: relative;
    width: 100%;
}

.page-struktur .member-ring-core {
    display: grid;
    gap: 12px;
    justify-items: center;
    position: relative;
}

.page-struktur .member-ring-core-support {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
    padding-top: 18px;
    position: relative;
}

.page-struktur .member-ring-core-support::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 16px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: repeating-linear-gradient(to bottom, rgba(31, 91, 63, 0.36) 0 5px, rgba(31, 91, 63, 0.12) 5px 10px);
}

.page-struktur .member-ring-core-support::after {
    content: "";
    position: absolute;
    top: 16px;
    left: 10%;
    right: 10%;
    height: 1px;
    border-radius: 999px;
    border-top: 1px dashed rgba(31, 91, 63, 0.28);
}

.page-struktur .member-ring-node {
    border-radius: 16px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 252, 249, 0.88) 100%);
    border: 1px solid rgba(28, 84, 56, 0.16);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    min-height: 124px;
}

.page-struktur .member-ring-node-core-primary {
    width: min(100%, 560px);
    border-color: rgba(29, 93, 62, 0.3);
    box-shadow: 0 12px 24px rgba(20, 46, 32, 0.12);
}

.page-struktur .member-ring-node-core-support {
    border-color: rgba(29, 93, 62, 0.2);
}

.page-struktur .member-ring-node-orbit {
    box-shadow: 0 6px 14px rgba(20, 46, 32, 0.08);
}

.page-struktur .member-ring-node-leadership-orbit {
    border-color: rgba(29, 93, 62, 0.24);
    box-shadow: 0 8px 16px rgba(20, 46, 32, 0.1);
}

.page-struktur .member-ring-node .anggota-card-role {
    background: rgba(236, 248, 241, 0.95);
}

.page-struktur .member-ring-connector {
    width: 2px;
    height: 30px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: repeating-linear-gradient(to bottom, rgba(31, 91, 63, 0.36) 0 6px, rgba(31, 91, 63, 0.12) 6px 12px);
}

.page-struktur .member-ring-orbit {
    position: relative;
    display: grid;

    .page-struktur .org-field-stage {
        padding: 8px 6px;
        margin-left: -4px;
        margin-right: -4px;
        border-radius: 16px;
        background: linear-gradient(175deg, rgba(244, 248, 245, 0.95) 0%, rgba(235, 242, 237, 0.94) 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 8px 18px rgba(18, 43, 30, 0.12);
    }

    .page-struktur .org-stage-label {
        gap: 3px;
        margin-bottom: 2px;
    }

    .page-struktur .org-stage-label h2 {
        font-size: 18px;
    }

    .page-struktur .org-stage-label p {
        font-size: 12px;
        color: #617066;
    }

    .page-struktur .org-node-card-field {
        border-radius: 18px;
        box-shadow: 0 8px 16px rgba(21, 45, 32, 0.09);
        border-color: rgba(28, 84, 56, 0.12);
        background: linear-gradient(165deg, #f6f8f7 0%, #eef2ef 100%);
    }

    .page-struktur .org-node-card-field .org-node-media {
        width: 62%;
        max-width: 260px;
        height: 126px;
        border-radius: 18px 0 0 0;
        background: linear-gradient(160deg, #edf2ef 0%, #e1e8e3 100%);
    }

    .page-struktur .org-node-card-field .org-node-media img {
        object-fit: cover;
        object-position: center var(--field-focus-y, 50%);
        width: 100%;
        height: 100%;
    }

    .page-struktur .org-node-card-field .org-node-media.is-portrait img {
        object-fit: cover;
        object-position: center var(--field-focus-y, 30%);
    }

    .page-struktur .org-node-card-field .org-node-media.is-portrait {
        background: linear-gradient(160deg, #f1f4f2 0%, #e6ece8 100%);
    }

    .page-struktur .org-node-card-field .org-node-media.no-image .org-node-fallback {
        width: 56px;
        height: 56px;
        font-size: 30px;
    }

    .page-struktur .org-node-card-field .org-node-content {
        padding: 12px 15px 14px;
        display: grid;
        align-content: start;
        gap: 4px;
    }

    .page-struktur .org-node-card-field .org-node-name {
        font-size: 17px;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
    }

    .page-struktur .org-node-card-field .org-node-meta {
        margin-top: 2px;
        font-size: 12.5px;
        line-height: 1.35;
        color: #55636f;
        font-weight: 640;
    }
}

@media (max-width: 340px) {
    .page-struktur .org-field-grid {
        grid-template-columns: 1fr;
    }

    .page-struktur .org-node-card-field .org-node-media {
        width: 62%;
    }
}

/* ==================== Organization Specific & Animations ==================== */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

.program-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.program-card-status {
    text-transform: uppercase;
}

.status-terlaksana {
    background: #dcfce7;
    color: #166534;
}

.status-rencana {
    background: #fef9c3;
    color: #854d0e;
}

.status-draft {
    background: #f1f5f9;
    color: #475569;
}

.btn-upvote.loading i {
    animation: fa-spin 1s infinite linear;
}

/* Custom Scrollbar for comments */
.comments-list::-webkit-scrollbar {
    width: 6px;
}
.comments-list::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.comments-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.comments-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
