        :root {
            --c-forest: #004d40;
            --c-forest-dark: #002d25;
            --c-forest-deep: #001a15;
            --c-jade: #00695c;
            --c-jade-light: #00897b;
            --c-gold: #c5a560;
            --c-gold-light: #d9bc84;
            --c-gold-pale: #fcf9f2;
            --c-bg: #0d1614;
            --c-card-bg: #14221f;
            --c-card-border: rgba(197, 165, 96, 0.15);
            --c-card-hover: rgba(197, 165, 96, 0.25);
            --c-input-bg: #0a1311;
            --c-input-border: #1d332d;
            --c-text-main: #f0f5f3;
            --c-text-muted: #8fa59e;
            --c-danger: #e53935;
            --c-success: #2e7d32;
            --c-warning: #f57f17;
            --r-sm: 6px;
            --r-md: 10px;
            --r-lg: 16px;
            --r-pill: 9999px;
            --s-1: 0 4px 12px rgba(0, 0, 0, 0.2);
            --s-2: 0 8px 24px rgba(0, 0, 0, 0.35);
            --s-glow: 0 0 20px rgba(197, 165, 96, 0.2);
            --f-sans: 'Inter', system-ui, sans-serif;
            --f-serif: 'Playfair Display', Georgia, serif;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: var(--f-sans);
            background-color: var(--c-bg);
            color: var(--c-text-main);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
        }

        /* ─── TOAST NOTIFICATIONS ─── */
        #toastContainer {
            position: fixed;
            top: 24px;
            right: 24px;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            gap: 10px;
            pointer-events: none;
        }

        .toast {
            pointer-events: auto;
            min-width: 280px;
            max-width: 420px;
            background: #192b27;
            color: #fff;
            padding: 14px 20px;
            border-radius: var(--r-md);
            border-left: 4px solid var(--c-gold);
            box-shadow: var(--s-2);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            font-size: 0.9rem;
        }

        .toast.success {
            border-left-color: #2ecc71;
        }

        .toast.error {
            border-left-color: var(--c-danger);
        }

        .toast.info {
            border-left-color: var(--c-gold);
        }

        @keyframes slideInRight {
            from {
                transform: translateX(100%);
                opacity: 0;
            }

            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        /* ─── LOGIN OVERLAY ─── */
        #loginOverlay {
            position: fixed;
            inset: 0;
            background: rgba(4, 10, 8, 0.92);
            backdrop-filter: blur(16px);
            z-index: 9000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .login-card {
            background: #13221e;
            border: 1px solid rgba(197, 165, 96, 0.3);
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--s-glow);
            width: 100%;
            max-width: 420px;
            border-radius: var(--r-lg);
            padding: 40px 32px;
            text-align: center;
            animation: popIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @keyframes popIn {
            from {
                transform: scale(0.92);
                opacity: 0;
            }

            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        .login-logo {
            width: 68px;
            height: 68px;
            background: linear-gradient(135deg, var(--c-forest), var(--c-jade));
            border: 2px solid var(--c-gold);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 16px;
            color: var(--c-gold);
            font-size: 26px;
        }

        .login-card h2 {
            font-size: 1.45rem;
            color: #fff;
            margin-bottom: 6px;
            font-weight: 700;
        }

        .login-card p {
            color: var(--c-text-muted);
            font-size: 0.85rem;
            margin-bottom: 24px;
        }

        /* ─── APP LAYOUT ─── */
        .app-container {
            display: flex;
            min-height: 100vh;
        }

        /* Sidebar */
        .sidebar {
            width: 270px;
            background: #0f1c18;
            border-right: 1px solid rgba(255, 255, 255, 0.07);
            display: flex;
            flex-direction: column;
            flex-shrink: 0;
            transition: all 0.3s ease;
        }

        .sidebar-brand {
            padding: 24px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.07);
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .brand-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--c-forest), var(--c-jade));
            border: 1.5px solid var(--c-gold);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--c-gold);
            font-weight: 800;
            font-size: 1.1rem;
        }

        .brand-text h1 {
            font-size: 0.95rem;
            font-weight: 800;
            letter-spacing: 0.04em;
            color: #fff;
            line-height: 1.2;
        }

        .brand-text span {
            font-size: 0.7rem;
            color: var(--c-gold);
            letter-spacing: 0.08em;
            text-transform: uppercase;
            font-weight: 600;
        }

        .nav-menu {
            padding: 20px 12px;
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 6px;
            flex: 1;
        }

        .nav-category {
            font-size: 0.68rem;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: rgba(255, 255, 255, 0.35);
            padding: 12px 14px 4px;
            font-weight: 700;
        }

        .nav-item button {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            border-radius: var(--r-md);
            background: transparent;
            border: none;
            color: var(--c-text-muted);
            font-size: 0.88rem;
            font-weight: 500;
            cursor: pointer;
            text-align: left;
            transition: all 0.2s ease;
            font-family: inherit;
        }

        .nav-item button:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.05);
        }

        .nav-item.active button {
            background: linear-gradient(90deg, rgba(0, 77, 64, 0.6), rgba(0, 105, 92, 0.3));
            color: #fff;
            border-left: 3px solid var(--c-gold);
            font-weight: 600;
        }

        .nav-item button svg {
            width: 18px;
            height: 18px;
            opacity: 0.8;
        }

        .sidebar-footer {
            padding: 16px;
            border-top: 1px solid rgba(255, 255, 255, 0.07);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }

        .user-pill {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .user-avatar {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background: var(--c-jade);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.8rem;
            color: #fff;
            border: 1px solid var(--c-gold);
        }

        .user-info {
            line-height: 1.2;
        }

        .user-name {
            font-size: 0.82rem;
            font-weight: 600;
            color: #fff;
        }

        .user-role {
            font-size: 0.68rem;
            color: var(--c-gold);
        }

        /* Main Content */
        .main-wrapper {
            flex: 1;
            display: flex;
            flex-direction: column;
            min-width: 0;
            background: #0b1412;
        }

        /* Topbar */
        .topbar {
            height: 70px;
            background: #0f1c18;
            border-bottom: 1px solid rgba(255, 255, 255, 0.07);
            padding: 0 32px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .topbar-title h2 {
            font-size: 1.2rem;
            font-weight: 700;
            color: #fff;
        }

        .topbar-title p {
            font-size: 0.78rem;
            color: var(--c-text-muted);
        }

        .topbar-actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            border-radius: var(--r-md);
            font-size: 0.84rem;
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
            transition: all 0.2s ease;
            text-decoration: none;
            border: none;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--c-forest), var(--c-jade));
            color: #fff;
            border: 1px solid var(--c-gold);
            box-shadow: 0 4px 14px rgba(0, 77, 64, 0.4);
        }

        .btn-primary:hover {
            filter: brightness(1.12);
            transform: translateY(-1px);
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.07);
            color: var(--c-text-main);
            border: 1px solid rgba(255, 255, 255, 0.12);
        }

        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.12);
            color: #fff;
        }

        .btn-gold {
            background: var(--c-gold);
            color: #0b1412;
            font-weight: 700;
        }

        .btn-gold:hover {
            background: var(--c-gold-light);
            transform: translateY(-1px);
        }

        .btn-danger {
            background: rgba(229, 57, 53, 0.15);
            color: #ff7675;
            border: 1px solid rgba(229, 57, 53, 0.3);
        }

        .btn-danger:hover {
            background: var(--c-danger);
            color: #fff;
        }

        .btn-sm {
            padding: 6px 12px;
            font-size: 0.78rem;
            border-radius: var(--r-sm);
        }

        /* Content Area */
        .content-body {
            padding: 32px;
            flex: 1;
            overflow-y: auto;
        }

        .tab-pane {
            display: none;
            animation: fadeIn 0.25s ease;
        }

        .tab-pane.active {
            display: block;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(6px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ─── CARD CONTAINERS ─── */
        .card {
            background: var(--c-card-bg);
            border: 1px solid var(--c-card-border);
            border-radius: var(--r-lg);
            padding: 26px;
            margin-bottom: 24px;
            box-shadow: var(--s-1);
        }

        .card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
            padding-bottom: 14px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }

        .card-header h3 {
            font-size: 1.05rem;
            font-weight: 700;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .card-header p {
            font-size: 0.8rem;
            color: var(--c-text-muted);
            margin-top: 2px;
        }

        /* ─── FORMS & INPUTS ─── */
        .form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 20px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 6px;
            margin-bottom: 16px;
        }

        .form-group label {
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--c-gold-light);
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

        .form-group .form-hint {
            font-size: 0.72rem;
            color: var(--c-text-muted);
        }

        .form-control {
            background: var(--c-input-bg);
            border: 1px solid var(--c-input-border);
            border-radius: var(--r-md);
            padding: 12px 14px;
            color: #fff;
            font-size: 0.9rem;
            font-family: inherit;
            outline: none;
            transition: all 0.2s ease;
        }

        .form-control:focus {
            border-color: var(--c-gold);
            box-shadow: 0 0 0 3px rgba(197, 165, 96, 0.15);
            background: #0e1916;
        }

        textarea.form-control {
            min-height: 110px;
            resize: vertical;
            line-height: 1.6;
        }

        /* ─── IMAGE UPLOAD BOX ─── */
        .image-uploader-box {
            display: flex;
            gap: 20px;
            align-items: center;
            background: rgba(0, 0, 0, 0.25);
            border: 1px dashed var(--c-card-border);
            padding: 16px;
            border-radius: var(--r-md);
        }

        .image-preview {
            width: 90px;
            height: 90px;
            border-radius: var(--r-md);
            object-fit: cover;
            border: 2px solid var(--c-gold);
            background: #0a1311;
            flex-shrink: 0;
        }

        .image-preview.circle {
            border-radius: 50%;
        }

        .image-upload-btn-wrap {
            flex: 1;
        }

        input[type="file"] {
            display: none;
        }

        .file-label-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            padding: 8px 16px;
            border-radius: var(--r-sm);
            color: #fff;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .file-label-btn:hover {
            background: rgba(255, 255, 255, 0.15);
        }

        /* ─── STATS LIVE PREVIEW ─── */
        .stats-preview-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
            background: rgba(0, 0, 0, 0.35);
            border: 1px solid rgba(197, 165, 96, 0.2);
            padding: 24px;
            border-radius: var(--r-lg);
            margin-top: 20px;
        }

        .stat-preview-item {
            text-align: center;
            padding: 16px;
            border-right: 1px solid rgba(255, 255, 255, 0.08);
        }

        .stat-preview-item:last-child {
            border-right: none;
        }

        .stat-preview-val {
            font-size: 2rem;
            font-weight: 900;
            color: #fff;
            font-family: var(--f-sans);
        }

        .stat-preview-val span {
            color: var(--c-gold);
        }

        .stat-preview-lbl {
            font-size: 0.72rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: rgba(255, 255, 255, 0.6);
            margin-top: 4px;
        }

        /* ─── DYNAMIC LIST ITEMS (MISI) ─── */
        .dynamic-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 10px;
        }

        .dynamic-list-item {
            display: flex;
            align-items: center;
            gap: 10px;
            background: var(--c-input-bg);
            border: 1px solid var(--c-input-border);
            padding: 10px 14px;
            border-radius: var(--r-md);
        }

        .dynamic-list-item input {
            flex: 1;
            background: transparent;
            border: none;
            color: #fff;
            font-size: 0.88rem;
            font-family: inherit;
            outline: none;
        }

        .item-num {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: var(--c-forest);
            color: var(--c-gold);
            font-size: 0.72rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        /* ─── TABLE / CRUD LIST ─── */
        .data-table-wrap {
            overflow-x: auto;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: var(--r-md);
            background: #0e1816;
        }

        .data-table {
            width: 100%;
            border-collapse: collapse;
            text-align: left;
            font-size: 0.86rem;
        }

        .data-table th {
            background: #152521;
            color: var(--c-gold);
            font-weight: 600;
            padding: 14px 16px;
            text-transform: uppercase;
            font-size: 0.72rem;
            letter-spacing: 0.08em;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .data-table td {
            padding: 14px 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            color: var(--c-text-main);
            vertical-align: middle;
        }

        .data-table tr:hover td {
            background: rgba(255, 255, 255, 0.02);
        }

        .avatar-cell {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .avatar-thumb {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            object-fit: cover;
            border: 1.5px solid var(--c-gold);
            background: #1b2f2a;
        }

        .avatar-thumb.rect {
            border-radius: var(--r-sm);
            width: 54px;
            height: 40px;
        }

        .badge {
            display: inline-block;
            padding: 3px 10px;
            border-radius: var(--r-pill);
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .badge-gold {
            background: rgba(197, 165, 96, 0.15);
            color: var(--c-gold-light);
            border: 1px solid rgba(197, 165, 96, 0.3);
        }

        .badge-green {
            background: rgba(0, 105, 92, 0.25);
            color: #4db6ac;
            border: 1px solid rgba(0, 105, 92, 0.4);
        }

        /* ─── MODAL DIALOG ─── */
        .modal-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(4, 10, 8, 0.85);
            backdrop-filter: blur(10px);
            z-index: 8000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .modal-backdrop.active {
            display: flex;
        }

        .modal-box {
            background: #142420;
            border: 1px solid rgba(197, 165, 96, 0.3);
            border-radius: var(--r-lg);
            width: 100%;
            max-width: 580px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: var(--s-2);
            padding: 28px 32px;
            animation: popIn 0.25s ease;
        }

        .modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
            padding-bottom: 14px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .modal-header h3 {
            font-size: 1.15rem;
            color: #fff;
            font-weight: 700;
        }

        .close-modal-btn {
            background: none;
            border: none;
            color: var(--c-text-muted);
            font-size: 1.5rem;
            cursor: pointer;
            line-height: 1;
        }

        .close-modal-btn:hover {
            color: #fff;
        }

        .modal-footer {
            display: flex;
            justify-content: flex-end;
            gap: 12px;
            margin-top: 24px;
            padding-top: 16px;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
        }

        /* ─── QUICK STATS OVERVIEW CARDS ─── */
        .dash-summary-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 20px;
            margin-bottom: 28px;
        }

        .summary-card {
            background: linear-gradient(135deg, #13221e, #182c27);
            border: 1px solid rgba(197, 165, 96, 0.15);
            border-radius: var(--r-lg);
            padding: 22px;
            position: relative;
            overflow: hidden;
            box-shadow: var(--s-1);
        }

        .summary-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: var(--c-gold);
        }

        .summary-title {
            font-size: 0.78rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--c-text-muted);
            font-weight: 600;
        }

        .summary-val {
            font-size: 2.2rem;
            font-weight: 900;
            color: #fff;
            margin: 8px 0 4px;
        }

        .summary-desc {
            font-size: 0.74rem;
            color: var(--c-gold-light);
        }

        /* Responsive */
        @media (max-width: 900px) {
            .app-container {
                flex-direction: column;
            }

            .sidebar {
                width: 100%;
            }

            .stats-preview-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }