
        /* ===== BACKGROUND ===== */
        .bg-grid {
            position: fixed; inset: 0;
            background-image:
                linear-gradient(rgba(139,92,246,0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(139,92,246,0.03) 1px, transparent 1px);
            background-size: 60px 60px;
            z-index: 0; pointer-events: none;
        }

        .bg-glow {
            position: fixed; top: -30%; left: 50%; transform: translateX(-50%);
            width: 900px; height: 600px;
            background: radial-gradient(ellipse, rgba(139,92,246,0.06) 0%, transparent 60%);
            filter: blur(80px); z-index: 0; pointer-events: none;
        }

        /* ===== MODAL WRAPPER ===== */
        .modal-wrapper {
            width: 100%;
            max-width: 860px;
            position: relative;
            z-index: 1;
            animation: modalIn 0.4s ease forwards;
        }

        @keyframes modalIn {
            from { opacity: 0; transform: translateY(30px) scale(0.97); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        .modal-container {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            overflow: hidden;
        }

        /* ===== HEADER ===== */
        .detail-header {
            background: linear-gradient(135deg, #1a1a2e, #12121c);
            border-bottom: 1px solid var(--border-color);
            padding: 1.4rem 2rem;
        }

        .header-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .back-btn {
            background: rgba(139,92,246,0.08);
            border: 1px solid rgba(139,92,246,0.15);
            border-radius: 8px;
            color: var(--purple);
            font-size: 0.78rem;
            font-weight: 500;
            padding: 0.35rem 0.85rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .back-btn:hover {
            background: var(--purple);
            color: #fff;
            border-color: var(--purple);
        }

        .close-btn {
            width: 32px; height: 32px;
            border-radius: 8px;
            border: 1px solid var(--border-color);
            background: transparent;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .close-btn:hover {
            background: rgba(239,68,68,0.1);
            border-color: rgba(239,68,68,0.3);
            color: var(--red);
        }

        .header-title {
            margin-top: 0.8rem;
        }

        .header-title h5 {
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 0.15rem;
        }

        .header-title small {
            font-size: 0.78rem;
            color: var(--text-muted);
            font-family: 'JetBrains Mono', 'Fira Code', monospace;
        }

        /* ===== BODY ===== */
        .detail-body {
            padding: 2rem;
        }

        /* Status Badge */
        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 0.45rem 1.1rem;
            border-radius: 10px;
            font-size: 0.82rem;
            font-weight: 700;
            letter-spacing: 0.3px;
            margin-bottom: 1.5rem;
        }

        .status-badge.berlaku {
            background: rgba(16,185,129,0.1);
            color: var(--green);
            border: 1px solid rgba(16,185,129,0.15);
        }

        .status-badge.dicabut {
            background: rgba(239,68,68,0.1);
            color: var(--red);
            border: 1px solid rgba(239,68,68,0.15);
        }

        .status-badge.diubah {
            background: rgba(245,158,11,0.1);
            color: var(--amber);
            border: 1px solid rgba(245,158,11,0.15);
        }

        .status-badge .status-dot {
            width: 7px; height: 7px; border-radius: 50%;
        }

        .status-badge.berlaku .status-dot { background: var(--green); }
        .status-badge.dicabut .status-dot { background: var(--red); }
        .status-badge.diubah .status-dot { background: var(--amber); }

        /* Fields */
        .field-group {
            margin-bottom: 1.2rem;
        }

        .field-label {
            font-size: 0.65rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: var(--text-muted);
            margin-bottom: 0.3rem;
        }

        .field-value {
            font-size: 0.9rem;
            color: var(--text-primary);
            font-weight: 500;
            line-height: 1.5;
        }

        .field-value.highlight {
            color: var(--purple);
            font-weight: 600;
            font-family: 'JetBrains Mono', 'Fira Code', monospace;
            font-size: 0.88rem;
        }

        /* PDF Card */
        .pdf-card {
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            border-radius: 14px;
            padding: 1.5rem;
            text-align: center;
        }

        .pdf-icon-wrap {
            width: 64px;
            height: 80px;
            background: rgba(239,68,68,0.06);
            border: 1px solid rgba(239,68,68,0.1);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
        }

        .pdf-icon-wrap i {
            font-size: 2rem;
            color: #EF4444;
        }

        .pdf-filename {
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 0.2rem;
            word-break: break-all;
        }

        .pdf-filesize {
            font-size: 0.72rem;
            color: var(--text-muted);
            margin-bottom: 1rem;
        }

        .btn-unduh-pdf {
            background: linear-gradient(135deg, var(--purple-dim), var(--purple));
            color: #fff;
            border: none;
            border-radius: 10px;
            padding: 0.55rem 1.5rem;
            font-weight: 600;
            font-size: 0.82rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            width: 100%;
            justify-content: center;
        }

        .btn-unduh-pdf:hover {
            background: linear-gradient(135deg, var(--purple), #A78BFA);
            box-shadow: 0 0 25px var(--purple-glow-strong);
        }

        /* Timeline */
        .timeline-card {
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            border-radius: 14px;
            padding: 1.2rem;
            margin-top: 12px;
        }

        .timeline-title {
            font-size: 0.65rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: var(--text-muted);
            margin-bottom: 0.8rem;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .timeline-item {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            position: relative;
            padding-bottom: 12px;
        }

        .timeline-item:last-child {
            padding-bottom: 0;
        }

        .timeline-item:not(:last-child)::after {
            content: '';
            position: absolute;
            left: 3.5px;
            top: 14px;
            bottom: 0;
            width: 1px;
            background: var(--border-color);
        }

        .timeline-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            margin-top: 4px;
            flex-shrink: 0;
        }

        .timeline-dot.green { background: var(--green); }
        .timeline-dot.amber { background: var(--amber); }
        .timeline-dot.red { background: var(--red); }

        .timeline-text {
            font-size: 0.8rem;
            font-weight: 500;
            color: var(--text-primary);
        }

        .timeline-date {
            font-size: 0.7rem;
            color: var(--text-muted);
        }

        /* Divider */
        .detail-divider {
            border: none;
            border-top: 1px solid var(--border-color);
            margin: 1.5rem 0;
        }

        /* Action Buttons */
        .action-buttons {
            display: flex;
            gap: 10px;
            padding-top: 0.5rem;
        }

        .btn-action {
            border-radius: 10px;
            font-size: 0.82rem;
            font-weight: 600;
            padding: 0.6rem 1.4rem;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .btn-action-primary {
            background: linear-gradient(135deg, var(--purple-dim), var(--purple));
            color: #fff;
            border: none;
        }

        .btn-action-primary:hover {
            background: linear-gradient(135deg, var(--purple), #A78BFA);
            box-shadow: 0 0 25px var(--purple-glow-strong);
            color: #fff;
        }

        .btn-action-outline {
            background: transparent;
            color: var(--text-secondary);
            border: 1px solid var(--border-color);
        }

        .btn-action-outline:hover {
            color: var(--green);
            border-color: rgba(16,185,129,0.3);
            background: rgba(16,185,129,0.05);
        }

        .btn-action-share {
            background: transparent;
            color: var(--text-secondary);
            border: 1px solid var(--border-color);
        }

        .btn-action-share:hover {
            color: var(--blue);
            border-color: rgba(59,130,246,0.3);
            background: rgba(59,130,246,0.05);
        }

        /* ===== DEMO TOGGLE BUTTONS ===== */
        .demo-bar {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 8px;
            z-index: 100;
        }

        .demo-btn {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            color: var(--text-secondary);
            padding: 0.5rem 1.2rem;
            font-size: 0.78rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .demo-btn:hover {
            border-color: var(--purple);
            color: var(--purple);
            background: rgba(139,92,246,0.05);
        }

        .demo-btn.active {
            background: var(--purple);
            border-color: var(--purple);
            color: #fff;
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 768px) {
            .detail-body { padding: 1.5rem; }
            .detail-header { padding: 1.2rem 1.5rem; }
            .action-buttons { flex-direction: column; }
            .btn-action { width: 100%; justify-content: center; }
        }

        /* Scrollbar */
        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: var(--bg-primary); }
        ::-webkit-scrollbar-thumb { background: var(--purple-dim); border-radius: 3px; }