/* ====================================================
   Member List Plus - Stylesheet (SLiMS 9 Bulian)
   Modern, responsive, offline-friendly CSS
   ==================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

.mlp-member-profile-link {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: #2563eb;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.mlp-member-profile-link:hover,
.mlp-member-profile-link:focus-visible {
    color: #1d4ed8;
    text-decoration: underline;
}

.mlp-history-page {
    display: grid;
    gap: 16px;
}

.mlp-history-filters {
    display: grid;
    grid-template-columns: minmax(180px, 2fr) repeat(4, minmax(130px, 1fr)) auto;
    align-items: end;
    gap: 12px;
    padding: 16px 20px;
}

.mlp-history-filters label {
    display: grid;
    gap: 5px;
    min-width: 0;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}

.mlp-history-filter-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mlp-history-grid-wrap {
    overflow-x: auto;
}

.mlp-history-batch-link {
    display: inline-block;
    margin-left: 6px;
    font-size: 12px;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .mlp-history-filters {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }
}

@media (max-width: 640px) {
    .mlp-history-filters {
        grid-template-columns: minmax(0, 1fr);
    }
}

.menuBoxInner.memberIcon {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    background: #f8fafc !important;
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    padding: 0 !important;
    overflow: hidden;
}

/* Header Banner */
.mlp-header-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    padding: 30px 40px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.mlp-header-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}
.mlp-header-text h2 {
    font-weight: 800;
    font-size: 28px;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 10px;
}
.mlp-badge-version {
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    color: #e0e7ff;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    vertical-align: middle;
}
.mlp-header-text p {
    font-size: 14px;
    color: #c7d2fe;
    margin: 0;
    font-weight: 400;
}
.mlp-header-actions {
    display: flex;
    gap: 12px;
    z-index: 10;
}

/* Premium Buttons */
.mlp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #c7d2fe !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}
.mlp-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    transform: translateY(-2px);
}
.mlp-btn.active {
    background: #ffffff;
    color: #312e81 !important;
    border-color: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.mlp-btn-primary {
    background: #4f46e5 !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
}
.mlp-btn-primary:hover {
    background: #4338ca !important;
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.4);
}
.mlp-btn-success {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
}
.mlp-btn-success:hover {
    background: #059669 !important;
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4);
}
.mlp-btn-csv {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
}
.mlp-btn-csv:hover {
    background: #0369a1 !important;
    box-shadow: 0 6px 15px rgba(2, 132, 199, 0.4);
}
.mlp-btn-secondary {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
}
.mlp-btn-secondary:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
}

/* Main Area Layout */
.mlp-main-content {
    padding: 30px 40px;
}

/* Cards & Widgets */
.mlp-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.mlp-stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-decoration: none !important;
    color: inherit !important;
}
.mlp-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}
.mlp-stat-card.has-alert {
    border-color: #fdba74;
    background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%);
}
.mlp-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.mlp-stat-icon.indigo { background: #e0e7ff; color: #4f46e5; }
.mlp-stat-icon.emerald { background: #d1fae5; color: #059669; }
.mlp-stat-icon.amber { background: #fef3c7; color: #d97706; }
.mlp-stat-icon.rose { background: #ffe4e6; color: #e11d48; }
.mlp-stat-icon.cyan { background: #ecfeff; color: #0891b2; }
.mlp-stat-icon.violet { background: #f3e8ff; color: #7c3aed; }
.mlp-stat-icon.purple { background: #f3e8ff; color: #7c3aed; }
.mlp-stat-icon.orange { background: #ffedd5; color: #ea580c; }

.mlp-stat-info {
    display: flex;
    flex-direction: column;
}
.mlp-stat-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.mlp-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}
.mlp-stat-sub {
    font-size: 11px;
    color: #ea580c;
    font-weight: 600;
    margin-top: 4px;
}

/* Visualization Charts Layout */
.mlp-chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}
.mlp-chart-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    border: 1px solid #e2e8f0;
}
.mlp-chart-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mlp-chart-card h3 i {
    color: #4f46e5;
}

/* CSS Pure Bar Charts */
.mlp-bar-item {
    margin-bottom: 16px;
}
.mlp-bar-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}
.mlp-bar-name {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}
.mlp-bar-count {
    color: #6366f1;
}
.mlp-bar-track {
    height: 12px;
    background: #f1f5f9;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}
.mlp-bar-fill {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, #6366f1 0%, #4338ca 100%);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0; /* Animated on load via JS */
}

/* Circular/Progress Rings */
.mlp-circular-layout {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 10px 0;
}
.mlp-circular-item {
    text-align: center;
    position: relative;
}
.mlp-progress-ring-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 12px auto;
}
.mlp-progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}
.mlp-circular-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}
.mlp-circular-sub {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

/* Premium Filter Area */
.mlp-filter-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}
.mlp-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.mlp-filter-group {
    display: flex;
    flex-direction: column;
}
.mlp-filter-group label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.mlp-filter-control {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
    outline: none;
    transition: all 0.2s ease;
    height: 38px;
}
.mlp-filter-control:focus {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.mlp-filter-control.highlight-anomaly {
    border-color: #f97316;
    background: #fffaf5;
}
.mlp-filter-control.highlight-duplicate {
    border-color: #9333ea;
    background: #faf5ff;
    color: #6b21a8;
    font-weight: 700;
}

.mlp-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 8px;
    height: 38px;
}
.mlp-date-range input {
    background: transparent;
    border: none;
    font-size: 12px;
    font-weight: 500;
    outline: none;
    color: #0f172a;
    width: 85px;
    height: 100%;
}
.mlp-date-range span {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
}

/* Preset Buttons */
.mlp-presets {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.mlp-preset-btn {
    font-size: 10px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2px 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.mlp-preset-btn:hover {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
}

/* Advanced Filter Expander */
.mlp-adv-filters {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.mlp-adv-filters.open {
    max-height: 600px;
    margin-bottom: 16px;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}
.mlp-filter-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 12px;
}
.mlp-left-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.mlp-right-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

/* Dynamic Column Selector Card */
.mlp-cols-dropdown {
    position: relative;
    display: inline-block;
}
.mlp-cols-card {
    display: none;
    position: absolute;
    top: 45px;
    left: 0;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 16px;
    z-index: 100;
    width: 260px;
    max-height: 320px;
    overflow-y: auto;
}
.mlp-cols-card.open {
    display: block;
    animation: mlpFadeIn 0.2s ease;
}
.mlp-cols-title {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 4px;
}
.mlp-col-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    padding: 4px 0;
    cursor: pointer;
}
.mlp-col-checkbox input {
    cursor: pointer;
}

/* Premium Table Container */
.mlp-table-box {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 24px;
}
.mlp-table-header {
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
    flex-wrap: wrap;
    gap: 12px;
}
.mlp-table-header h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mlp-table-header h4 i {
    color: #4f46e5;
}
.mlp-table-summary {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

/* Table grid style */
.mlp-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}
.mlp-table th {
    background: #f8fafc;
    font-weight: 700;
    font-size: 12px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
    white-space: nowrap;
}
.mlp-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    vertical-align: middle;
}
.mlp-table tr:hover td {
    background: #f8fafc;
    cursor: pointer;
}
.mlp-table tr.mlp-no-hover:hover td {
    background: transparent;
    cursor: default;
}
.mlp-table tr.row-anomaly {
    background: #fffdfa;
}
.mlp-table tr.row-anomaly:hover td {
    background: #fff7ed;
}
.mlp-table tr.row-duplicate {
    background: #faf5ff;
}
.mlp-table tr.row-duplicate:hover td {
    background: #f3e8ff;
}
.mlp-table tr.row-anomaly.row-duplicate {
    background: #fff5f5;
}
.mlp-table tr.row-anomaly.row-duplicate:hover td {
    background: #fee2e2;
}

/* Avatar / Photo styles in table */
.mlp-avatar-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mlp-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.mlp-avatar-initials {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
}
.mlp-avatar-initials.color-0 { background: #4f46e5; }
.mlp-avatar-initials.color-1 { background: #10b981; }
.mlp-avatar-initials.color-2 { background: #f59e0b; }
.mlp-avatar-initials.color-3 { background: #ef4444; }
.mlp-avatar-initials.color-4 { background: #8b5cf6; }

/* Status Badges */
.mlp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.mlp-badge-active { background: #d1fae5; color: #065f46; }
.mlp-badge-expired { background: #fee2e2; color: #991b1b; }
.mlp-badge-lulus { background: #e0f2fe; color: #0369a1; }
.mlp-badge-belum { background: #f1f5f9; color: #475569; }
.mlp-badge-visit { background: #e0e7ff; color: #3730a3; }
.mlp-badge-loans { background: #fef3c7; color: #92400e; }
.mlp-badge-fines { background: #ffe4e6; color: #9f1239; }

/* Badges for Anomaly Detection */
.mlp-badge-anomaly {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
}
.mlp-badge-anomaly.space {
    background: #ffedd5;
    color: #c2410c;
    border: 1px solid #fdba74;
}
.mlp-badge-anomaly.special {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}
.mlp-badge-anomaly.short {
    background: #f3e8ff;
    color: #7e22ce;
    border: 1px solid #d8b4fe;
}
.mlp-badge-anomaly.empty {
    background: #ffe4e6;
    color: #be123c;
    border: 1px solid #fda4af;
}
.mlp-badge-anomaly.test {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

/* Anomaly Alert inside Modal */
.mlp-anomaly-alert-box {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #9a3412;
    font-size: 12px;
    font-weight: 600;
}
.mlp-anomaly-alert-box i {
    font-size: 16px;
    color: #ea580c;
}

/* Badges for Duplicate Detection */
.mlp-badge-dup {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
}
.mlp-badge-dup-sm {
    font-size: 10px;
    padding: 1px 6px;
}
.mlp-badge-dup-both, .mlp-badge-dup.dup-both {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}
.mlp-badge-dup-phone, .mlp-badge-dup.dup-phone {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}
.mlp-badge-dup-email, .mlp-badge-dup.dup-email {
    background: #f3e8ff;
    color: #6b21a8;
    border: 1px solid #d8b4fe;
}
.mlp-badge-dup-similar, .mlp-badge-dup.dup-similar-email {
    background: #ffedd5;
    color: #9a3412;
    border: 1px solid #fed7aa;
}
.mlp-pill-similar-email {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 6px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    background: #ffedd5;
    color: #c2410c;
    border: 1px solid #fed7aa;
    vertical-align: middle;
    margin-left: 4px;
}
.mlp-pill-dup {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 6px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    vertical-align: middle;
    margin-left: 4px;
}

/* ====================================================
   ENHANCED DUPLICATE DETECTION & COMPARISON MATRIX
   ==================================================== */
.mlp-modal.mlp-modal-comparison {
    width: 980px !important;
    max-width: 96vw !important;
    max-height: 90vh !important;
}

.mlp-duplicate-alert-box {
    background: #ffffff !important;
    border: 1px solid #d8b4fe !important;
    border-radius: 14px !important;
    padding: 18px 20px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.08) !important;
}

.mlp-dup-card-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 14px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid #f3e8ff !important;
    margin-bottom: 16px !important;
    flex-wrap: wrap !important;
}

.mlp-dup-header-title {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    flex: 1 !important;
}

.mlp-dup-header-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background: #f3e8ff !important;
    color: #7c3aed !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    flex-shrink: 0 !important;
}

.mlp-dup-heading {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #581c87 !important;
    letter-spacing: -0.3px !important;
}

.mlp-dup-lead {
    margin: 4px 0 0 0 !important;
    font-size: 12px !important;
    color: #6b21a8 !important;
    line-height: 1.45 !important;
}

.mlp-dup-view-toggles {
    display: inline-flex !important;
    background: #f1f5f9 !important;
    padding: 3px !important;
    border-radius: 8px !important;
    gap: 3px !important;
    border: 1px solid #e2e8f0 !important;
}

.mlp-dup-toggle-btn {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: all 0.15s ease !important;
    line-height: 1.2 !important;
}

.mlp-dup-toggle-btn:hover {
    color: #1e293b !important;
    background: rgba(255, 255, 255, 0.7) !important;
}

.mlp-dup-toggle-btn.active {
    background: #ffffff !important;
    color: #4338ca !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Candidate Selector Tabs */
.mlp-dup-candidate-bar {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
    padding: 8px 12px !important;
    background: #faf5ff !important;
    border-radius: 10px !important;
    border: 1px solid #f3e8ff !important;
    flex-wrap: wrap !important;
}

.mlp-dup-candidate-label {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #581c87 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
}

.mlp-dup-candidate-tabs {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    flex: 1 !important;
}

.mlp-dup-tab-btn {
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 5px 12px !important;
    border-radius: 9999px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.15s ease !important;
}

.mlp-dup-tab-btn:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

.mlp-dup-tab-btn.active {
    background: #7c3aed !important;
    color: #ffffff !important;
    border-color: #7c3aed !important;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3) !important;
}

/* ====================================================
   HERO PROFILES COMPARISON CARDS
   ==================================================== */
.mlp-dup-hero-wrap {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    gap: 16px !important;
    align-items: stretch !important;
    margin-bottom: 20px !important;
}

.mlp-dup-hero-card {
    border-radius: 12px !important;
    padding: 14px 16px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.mlp-dup-hero-card.current {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-top: 4px solid #4f46e5 !important;
}

.mlp-dup-hero-card.duplicate {
    background: #faf5ff !important;
    border: 1px solid #e9d5ff !important;
    border-top: 4px solid #7c3aed !important;
}

.mlp-dup-hero-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 12px !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.mlp-hero-label {
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}
.mlp-hero-label.current { color: #3730a3 !important; }
.mlp-hero-label.duplicate { color: #6b21a8 !important; }

.mlp-dup-hero-content {
    display: flex !important;
    gap: 14px !important;
    align-items: center !important;
}

.mlp-dup-hero-avatar {
    flex-shrink: 0 !important;
}

.mlp-dup-hero-photo {
    width: 76px !important;
    height: 98px !important;
    border-radius: 10px !important;
    object-fit: cover !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12) !important;
    display: block !important;
}

.mlp-dup-hero-initials {
    width: 76px !important;
    height: 98px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1) !important;
}

.mlp-dup-hero-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.mlp-dup-hero-id {
    font-size: 12px !important;
    font-weight: 800 !important;
    font-family: monospace, Consolas, sans-serif !important;
    margin-bottom: 2px !important;
    letter-spacing: 0.5px !important;
}
.mlp-dup-hero-card.current .mlp-dup-hero-id { color: #4338ca !important; }
.mlp-dup-hero-card.duplicate .mlp-dup-hero-id { color: #6d28d9 !important; }

.mlp-dup-hero-name {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 6px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.mlp-dup-hero-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    align-items: center !important;
}

/* VS Divider */
.mlp-dup-hero-divider {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 4px !important;
}

.mlp-dup-vs-circle {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35) !important;
    letter-spacing: 0.5px !important;
}

.mlp-dup-match-pill {
    white-space: nowrap !important;
    text-align: center !important;
}

/* ====================================================
   3-COLUMN SIDE-BY-SIDE DIFF MATRIX TABLE
   ==================================================== */
.mlp-diff-matrix-wrap {
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    margin-bottom: 20px !important;
}

.mlp-diff-table {
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    font-size: 13px !important;
    margin: 0 !important;
}

.mlp-diff-table thead th {
    padding: 12px 16px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    border-bottom: 2px solid #cbd5e1 !important;
    text-align: left !important;
    vertical-align: middle !important;
}

.mlp-diff-th-param {
    width: 30% !important;
    background: #f8fafc !important;
    color: #475569 !important;
    text-transform: uppercase !important;
}

.mlp-diff-th-current {
    width: 35% !important;
    background: #eff6ff !important;
    color: #1e1b4b !important;
    border-left: 1px solid #bfdbfe !important;
    border-right: 1px solid #bfdbfe !important;
}

.mlp-diff-th-dup {
    width: 35% !important;
    background: #faf5ff !important;
    color: #581c87 !important;
}

.mlp-diff-table tbody tr {
    border-bottom: 1px solid #f1f5f9 !important;
    transition: background 0.15s ease !important;
}

.mlp-diff-table tbody tr:last-child {
    border-bottom: none !important;
}

.mlp-diff-table tbody tr:hover {
    background: #fafafa !important;
}

/* Column 1: Parameter & Status Tag */
.mlp-diff-param-cell {
    width: 30% !important;
    padding: 11px 16px !important;
    background: #f8fafc !important;
    border-right: 1px solid #e2e8f0 !important;
    vertical-align: middle !important;
}

.mlp-param-title {
    font-weight: 700 !important;
    font-size: 12px !important;
    color: #334155 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 4px !important;
}
.mlp-param-title i {
    color: #6366f1 !important;
    font-size: 13px !important;
    width: 16px !important;
    text-align: center !important;
}

.mlp-param-status {
    display: inline-block !important;
}

/* Column 2 & 3: Values */
.mlp-diff-val-cell {
    width: 35% !important;
    padding: 11px 16px !important;
    vertical-align: middle !important;
    color: #1e293b !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    word-break: break-word !important;
}

.mlp-diff-val-cell.current {
    border-right: 1px solid #e2e8f0 !important;
}

/* Conflict Row Highlighting */
.mlp-diff-table tr.row-conflict td.mlp-diff-param-cell {
    background: #ffe4e6 !important;
    border-left: 4px solid #f43f5e !important;
}
.mlp-diff-table tr.row-conflict .mlp-param-title {
    color: #9f1239 !important;
}
.mlp-diff-table tr.row-conflict td.mlp-diff-val-cell {
    background: #fff1f2 !important;
    color: #991b1b !important;
    font-weight: 700 !important;
}

/* Warning & Alert Row Highlighting */
.mlp-diff-table tr.row-warn td.mlp-diff-param-cell {
    background: #fef3c7 !important;
    border-left: 4px solid #f59e0b !important;
}
.mlp-diff-table tr.row-alert td.mlp-diff-param-cell {
    background: #fff1f2 !important;
    border-left: 4px solid #e11d48 !important;
}

/* Diff Tag Badges */
.mlp-diff-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 2px 8px !important;
    border-radius: 9999px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
}

.mlp-diff-tag.same {
    background: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #bbf7d0 !important;
}

.mlp-diff-tag.conflict {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    border: 1px solid #fca5a5 !important;
}

.mlp-diff-tag.warning {
    background: #fef3c7 !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
}

.mlp-diff-tag.alert {
    background: #ffe4e6 !important;
    color: #be123c !important;
    border: 1px solid #fecdd3 !important;
}

.mlp-diff-tag.diff {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}

/* WhatsApp Mini Link in Comparison */
.mlp-btn-diff-wa {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    background: #25d366 !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    margin-left: 6px !important;
    vertical-align: middle !important;
    transition: opacity 0.15s !important;
}
.mlp-btn-diff-wa:hover {
    opacity: 0.85 !important;
    color: #ffffff !important;
}

/* Order Pills */
.mlp-pill-order {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 2px 8px !important;
    border-radius: 9999px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}
.mlp-pill-first {
    background: #fef3c7 !important;
    color: #92400e !important;
    border: 1px solid #fcd34d !important;
}
.mlp-pill-new {
    background: #e0e7ff !important;
    color: #3730a3 !important;
    border: 1px solid #c7d2fe !important;
}

/* Decision Assistant Box */
.mlp-decision-assistant {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 4px solid #6366f1 !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
}

.mlp-decision-header {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
}
.mlp-decision-header i {
    color: #eab308 !important;
    font-size: 16px !important;
}

.mlp-decision-list {
    list-style: none !important;
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}
.mlp-decision-list li {
    font-size: 12px !important;
    color: #334155 !important;
    line-height: 1.5 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
}

.mlp-decision-actions {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    padding-top: 12px !important;
    border-top: 1px dashed #cbd5e1 !important;
}

.mlp-btn-copy-diff {
    background: #4f46e5 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 7px 14px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
}
.mlp-btn-copy-diff:hover {
    background: #4338ca !important;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35) !important;
}

.mlp-btn-open-dup {
    background: #7c3aed !important;
    color: #ffffff !important;
    border: none !important;
    padding: 7px 14px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
}
.mlp-btn-open-dup:hover {
    background: #6d28d9 !important;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35) !important;
}

/* Quick Compare Button in Report Table */
.mlp-btn-compare-quick {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: #7c3aed !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
    margin-left: 4px !important;
    vertical-align: middle !important;
}
.mlp-btn-compare-quick:hover {
    background: #6d28d9 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.35) !important;
    color: #ffffff !important;
}

/* Custom Sorting Indicators */
.mlp-sort-link {
    color: inherit;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.mlp-sort-link:hover {
    color: #6366f1;
}

/* Pagination Standalone Modern CSS */
.mlp-paging-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.mlp-paging {
    display: inline-flex;
    gap: 6px;
    background: #ffffff;
    border-radius: 12px;
    padding: 6px 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    border: 1px solid #e2e8f0;
}
.mlp-paging a, .mlp-paging b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.mlp-paging a {
    color: #475569;
    border-color: #e2e8f0;
}
.mlp-paging a:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}
.mlp-paging b {
    background: #4f46e5;
    color: #ffffff;
}

/* Modal Styling */
.mlp-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    animation: mlpFadeIn 0.2s ease;
}
.mlp-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
    z-index: 10001;
    width: 650px;
    max-width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    animation: mlpSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid #cbd5e1;
}

.mlp-modal.mlp-modal-comparison {
    width: 980px !important;
    max-width: 96vw !important;
    max-height: 90vh !important;
}
.mlp-modal-header {
    padding: 20px 28px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}
.mlp-modal-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #1e1b4b;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mlp-modal-header h4 i {
    color: #4f46e5;
}
.mlp-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: all 0.2s;
}
.mlp-modal-close:hover {
    color: #ef4444;
}
.mlp-modal-body {
    padding: 28px;
}

/* Modal Inner Profil Details */
.mlp-profile-card {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}
.mlp-profile-photo-wrap {
    flex: 0 0 120px;
    text-align: center;
}
.mlp-profile-photo {
    width: 120px;
    height: 160px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 3px solid #ffffff;
    outline: 1px solid #cbd5e1;
}
.mlp-profile-avatar-placeholder {
    width: 120px;
    height: 160px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 48px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.mlp-profile-info {
    flex: 1;
}
.mlp-profile-name {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
}
.mlp-profile-id {
    font-size: 13px;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mlp-profile-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
}
.mlp-pm-item {
    display: flex;
    flex-direction: column;
}
.mlp-pm-label {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1px;
}
.mlp-pm-val {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

/* Expiry Progress Bar inside Profile */
.mlp-expiry-progress-wrap {
    margin-top: 14px;
}
.mlp-ep-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 4px;
}
.mlp-ep-track {
    height: 8px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}
.mlp-ep-fill {
    height: 100%;
    border-radius: 10px;
}

/* Tab Panels in Modal */
.mlp-modal-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}
.mlp-ms-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
}
.mlp-ms-card h5 {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mlp-ms-card h5 i {
    color: #6366f1;
}

/* Modal loading animations */
.mlp-loading-placeholder {
    padding: 40px;
    text-align: center;
}
.mlp-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f1f5f9;
    border-top-color: #6366f1;
    border-radius: 50%;
    margin: 0 auto 12px auto;
    animation: mlpSpin 0.8s linear infinite;
}
.mlp-loading-placeholder p {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
    margin: 0;
}

/* Animations Keyframes */
@keyframes mlpSpin {
    to { transform: rotate(360deg); }
}
@keyframes mlpFadeIn {
    from { opacity: 0; } to { opacity: 1; }
}
@keyframes mlpSlideIn {
    from { opacity: 0; transform: translate(-50%, -46%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

@media (max-width: 768px) {
    .mlp-header-banner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px 24px; }
    .mlp-main-content { padding: 20px 24px; }
    .mlp-filter-grid { grid-template-columns: 1fr; }
    .mlp-chart-grid { grid-template-columns: 1fr; }
    .mlp-profile-card { flex-direction: column; align-items: center; text-align: center; }
    .mlp-profile-meta-grid { grid-template-columns: 1fr; }
}

/* ====================================================
   FLOATING BULK ACTIONS TOOLBAR
   ==================================================== */
.mlp-bulk-toolbar {
    position: sticky;
    top: 15px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(30, 27, 75, 0.4), 0 8px 10px -6px rgba(30, 27, 75, 0.3);
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: mlpFadeIn 0.25s ease-out;
}

.mlp-bulk-info {
    font-size: 13px;
    font-weight: 700;
    color: #e0e7ff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mlp-bulk-info span {
    color: #38bdf8;
    font-size: 15px;
}

.mlp-bulk-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mlp-btn-sm {
    padding: 6px 12px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mlp-btn-primary {
    background: #3b82f6;
    color: #fff;
}
.mlp-btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.mlp-btn-secondary {
    background: #6366f1;
    color: #fff;
}
.mlp-btn-secondary:hover {
    background: #4f46e5;
}

.mlp-btn-outline {
    background: transparent;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.mlp-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Dropdown Menu for Bulk Extend */
.mlp-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    background: #ffffff;
    min-width: 140px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    z-index: 101;
    border: 1px solid #e2e8f0;
}

.mlp-dropdown-menu a {
    display: block;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    transition: background 0.15s;
}

.mlp-dropdown-menu a:hover {
    background: #f1f5f9;
    color: #4338ca;
}

/* 1-Click Trim Anomaly Button */
.mlp-btn-trim-id {
    background: #ffedd5;
    color: #c2410c;
    border: 1px solid #fdba74;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: all 0.15s ease;
}

.mlp-btn-trim-id:hover {
    background: #ea580c;
    color: #ffffff;
    border-color: #c2410c;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3);
}

/* Barcode & QR Code Container in Modal */
.mlp-barcode-container {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 12px;
}

.mlp-barcode-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.mlp-barcode-img {
    height: 38px;
    max-width: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

.mlp-barcode-caption {
    font-size: 11px;
    font-family: monospace;
    font-weight: 700;
    color: #475569;
    margin-top: 2px;
}

.mlp-qrcode-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 1px dashed #cbd5e1;
    padding-left: 14px;
}

.mlp-qrcode-canvas {
    width: 64px;
    height: 64px;
    background: #ffffff;
    padding: 2px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.mlp-qrcode-caption {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    margin-top: 3px;
}

/* Mini Buttons in Modal for WhatsApp */
.mlp-btn-xs {
    text-decoration: none !important;
    font-weight: 600;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.mlp-btn-xs:hover {
    opacity: 0.9;
}

.mlp-btn-warning {
    background: #f59e0b;
    color: #ffffff;
}

.mlp-btn-info {
    background: #0284c7;
    color: #ffffff;
}

.mlp-badge-na {
    background: #f1f5f9;
    color: #94a3b8;
}

/* REST API Scope Badges */
.mlp-badge-gate {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}
.mlp-badge-academic {
    background: #d1fae5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.mlp-badge-full {
    background: #ede9fe;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}

/* Code Snippet Tabs for Developer Documentation */
.mlp-code-tabs-wrap {
    background: #0f172a;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 8px;
    border: 1px solid #1e293b;
}

.mlp-code-tabs {
    display: flex;
    background: #1e293b;
    border-bottom: 1px solid #334155;
    padding: 0 12px;
}

.mlp-code-tab {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
}

.mlp-code-tab:hover {
    color: #f8fafc;
}

.mlp-code-tab.active {
    color: #38bdf8;
    border-bottom-color: #38bdf8;
}

.mlp-code-content {
    display: none;
    padding: 14px 18px;
}

.mlp-code-content.active {
    display: block;
}

.mlp-code-content pre {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.6;
    color: #e2e8f0;
    overflow-x: auto;
}

.mlp-code-content code {
    background: transparent;
    color: inherit;
    font-family: inherit;
}

/* ====================================================
   BATCH IMPORT & SSO INGESTION (v1.5.0)
   ==================================================== */
.mlp-import-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    border-radius: 12px;
    padding: 28px 32px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px -5px rgba(49, 46, 129, 0.3);
}

.mlp-import-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.mlp-import-hero h3 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
}

.mlp-import-hero p {
    color: #c7d2fe;
    font-size: 13px;
    line-height: 1.6;
    max-width: 650px;
    margin: 0 0 16px 0;
}

.mlp-import-guarantees {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    font-weight: 600;
    color: #a5f3fc;
}

.mlp-import-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.mlp-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mlp-dropzone:hover, .mlp-dropzone.dragover {
    border-color: #6366f1;
    background: #eef2ff;
}

.mlp-dropzone-icon {
    font-size: 42px;
    color: #6366f1;
    margin-bottom: 10px;
}

.mlp-dropzone-text strong {
    display: block;
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 4px;
}

.mlp-dropzone-text span {
    font-size: 12px;
    color: #64748b;
}

.mlp-selected-file-notice {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #dbeafe;
    color: #1e40af;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
}

.mlp-remove-file-btn {
    border: none;
    background: transparent;
    font-size: 16px;
    color: #1e40af;
    cursor: pointer;
    line-height: 1;
}

.mlp-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.mlp-config-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px;
}

.mlp-config-label {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    display: block;
    margin-bottom: 12px;
}

.mlp-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mlp-radio-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mlp-radio-item:hover {
    border-color: #94a3b8;
}

.mlp-radio-item input[type="radio"] {
    margin-top: 3px;
}

.mlp-radio-item small {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.mlp-tag-rec {
    background: #ecfdf5;
    color: #059669;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

.mlp-filter-chip {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mlp-filter-chip:hover {
    background: #e2e8f0;
}

.mlp-filter-chip.active {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.mlp-progress-wrap {
    background: #e2e8f0;
    border-radius: 10px;
    height: 16px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.mlp-progress-bar {
    background: linear-gradient(90deg, #0284c7, #38bdf8);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.mlp-exec-stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.mlp-exec-stat-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 12px;
    text-align: center;
}

.mlp-exec-stat-item .val {
    display: block;
    font-size: 24px;
    font-weight: 800;
}

.mlp-exec-stat-item .lbl {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
}

.mlp-exec-stat-item.green .val { color: #059669; }
.mlp-exec-stat-item.blue .val { color: #0284c7; }
.mlp-exec-stat-item.gray .val { color: #64748b; }
.mlp-exec-stat-item.red .val { color: #dc2626; }

.mlp-badge-sync {
    background: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}

.mlp-badge-insert {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.mlp-badge-update {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.mlp-badge-skip {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.mlp-badge-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.mlp-badge-warning {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

/* ====================================================
   BATCH MONITOR & EMAIL DISPATCHER STYLES (v1.6.0)
   ==================================================== */
.mlp-monitor-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.mlp-monitor-hero-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

@media (max-width: 900px) {
    .mlp-monitor-hero-grid {
        grid-template-columns: 1fr;
    }
}

.mlp-monitor-counts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mlp-count-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    text-align: center;
    min-width: 80px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.mlp-count-box .val {
    display: block;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.mlp-count-box .lbl {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-top: 2px;
}

.mlp-count-box.total .val { color: #0f172a; }
.mlp-count-box.green .val { color: #059669; }
.mlp-count-box.blue .val { color: #0284c7; }
.mlp-count-box.gray .val { color: #64748b; }
.mlp-count-box.red .val { color: #dc2626; }
.mlp-count-box.purple .val { color: #7c3aed; }

/* Email Control Panel */
.mlp-email-control-panel {
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.05);
}

/* Status Badges */
.mlp-badge-status-completed {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
    font-weight: 700;
}

.mlp-badge-status-partial {
    background: #fffbeb !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
    font-weight: 700;
}

.mlp-badge-status-failed {
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
    font-weight: 700;
}

.mlp-badge-status-processing {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
    font-weight: 700;
}

.mlp-badge-status-pending {
    background: #f8fafc !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    font-weight: 700;
}

/* Email Status Badges */
.mlp-badge-email-sent {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #6ee7b7;
    font-size: 11px;
    font-weight: 700;
}

.mlp-badge-email-pending {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
    font-size: 11px;
    font-weight: 600;
}

.mlp-badge-email-failed {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    font-size: 11px;
    font-weight: 700;
}

/* Source Badges */
.mlp-badge-source {
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.mlp-badge-source.web_upload {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}
.mlp-badge-source.rest_api {
    background: #faf5ff;
    color: #6b21a8;
    border: 1px solid #e9d5ff;
}

/* Row Count Pills */
.mlp-row-counts-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
}

.mlp-row-counts-pill span {
    padding: 2px 6px;
    border-radius: 4px;
}

.mlp-row-counts-pill .pill-total { background: #f1f5f9; color: #334155; }
.mlp-row-counts-pill .pill-new { background: #ecfdf5; color: #047857; }
.mlp-row-counts-pill .pill-update { background: #eff6ff; color: #1d4ed8; }
.mlp-row-counts-pill .pill-skip { background: #f8fafc; color: #64748b; }
.mlp-row-counts-pill .pill-fail { background: #fef2f2; color: #b91c1c; }

/* Small Inputs & Buttons for Logs/Monitor */
.mlp-select-sm, .mlp-input-sm {
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s;
}

.mlp-select-sm:focus, .mlp-input-sm:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
}

.mlp-btn-sm {
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.mlp-btn-sm:hover {
    opacity: 0.9;
}

/* ====================================================
   TAB 6: PERSISTENT SETTINGS STYLES
   ==================================================== */
.mlp-settings-container {
    padding: 0 4px 30px 4px;
}

.mlp-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .mlp-settings-grid {
        grid-template-columns: 1fr;
    }
}

.mlp-settings-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.mlp-settings-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.mlp-settings-card-header {
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mlp-settings-card-header i {
    font-size: 18px;
}

.mlp-settings-card-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.mlp-settings-card-body {
    padding: 20px;
    flex: 1;
}

.mlp-form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.mlp-form-group:last-child {
    margin-bottom: 0;
}

.mlp-form-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.mlp-form-control {
    width: 100%;
    padding: 9px 12px;
    font-size: 13px;
    color: #1e293b;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.mlp-form-control:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.mlp-form-hint {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
    line-height: 1.4;
}

.mlp-form-row {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
}

.mlp-radio-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mlp-radio-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.mlp-radio-row:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.mlp-radio-row input[type="radio"] {
    margin-top: 3px;
    cursor: pointer;
}

.mlp-radio-row strong {
    font-size: 13px;
    color: #1e293b;
    display: block;
}

.mlp-radio-row small {
    font-size: 11px;
    color: #64748b;
    display: block;
    margin-top: 2px;
}

.mlp-radio-inline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mlp-radio-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #334155;
    transition: all 0.15s;
}

.mlp-radio-pill:hover {
    background: #e2e8f0;
}

.mlp-radio-pill input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.mlp-settings-footer {
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   FITUR AKTIVASI MANDIRI PEMUSTAKA (v1.8.0)
   ========================================================================== */

.mlp-activate-container {
    max-width: 620px;
    margin: 40px auto;
    padding: 0 16px 40px 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
}

.mlp-activate-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    padding: 36px 32px;
}

.mlp-activate-header {
    text-align: center;
    margin-bottom: 28px;
}

.mlp-activate-icon-circle {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px auto;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #bfdbfe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #2563eb;
}

.mlp-activate-title {
    margin: 0 0 6px 0;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.mlp-activate-subtitle {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

/* State Views (Success, Expired, Already Completed, Error) */
.mlp-activate-state {
    text-align: center;
    padding: 20px 12px;
}

.mlp-state-icon {
    font-size: 54px;
    margin-bottom: 16px;
}

.mlp-activate-state h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.mlp-activate-state p {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 12px 0;
}

.mlp-member-mini-badge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    margin: 16px auto;
    max-width: 320px;
}

.mlp-state-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Member Identity Card */
.mlp-activate-member-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.mlp-activate-avatar {
    width: 48px;
    height: 48px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #64748b;
    flex-shrink: 0;
}

.mlp-activate-member-details {
    flex: 1;
    min-width: 0;
}

.mlp-member-name {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mlp-member-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
}

.mlp-member-meta code {
    background: #e2e8f0;
    padding: 1px 5px;
    border-radius: 4px;
    color: #0f172a;
    font-weight: 600;
}

/* Form Styles */
.mlp-activate-form .mlp-form-group {
    margin-bottom: 20px;
}

.mlp-act-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.mlp-input-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.mlp-act-input {
    width: 100%;
    padding: 11px 40px 11px 14px;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    transition: all 0.15s ease-in-out;
    background: #ffffff;
    box-sizing: border-box;
}

.mlp-act-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.mlp-toggle-pwd {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px 8px;
    font-size: 15px;
}

.mlp-toggle-pwd:hover {
    color: #475569;
}

/* Strength Meter */
.mlp-strength-meter {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.mlp-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mlp-strength-text {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
}

.mlp-input-hint {
    font-size: 11px;
    margin-top: 4px;
    font-weight: 500;
}

/* Photo Dropzone */
.mlp-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    background: #f8fafc;
    transition: all 0.15s;
}

.mlp-dropzone:hover, .mlp-dropzone.mlp-dropzone-dragover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.mlp-dropzone-icon {
    font-size: 28px;
    color: #3b82f6;
    margin-bottom: 8px;
}

.mlp-dropzone-text {
    font-size: 13px;
    color: #334155;
}

.mlp-dropzone-sub {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.mlp-photo-preview-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mlp-btn-remove-photo {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.mlp-btn-remove-photo:hover {
    background: #fee2e2;
}

/* Buttons */
.mlp-btn-act {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    border: none;
}

.mlp-btn-primary {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.mlp-btn-primary:hover {
    background: #1d4ed8;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
}

.mlp-btn-secondary {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.mlp-btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
    text-decoration: none;
}

.mlp-btn-block {
    width: 100%;
}

.mlp-form-footer-tip {
    text-align: center;
    font-size: 12px;
    color: #64748b;
    margin-top: 16px;
}

/* Activation Status Badges (Admin Monitor) */
.mlp-badge-act {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    vertical-align: middle;
}

.mlp-badge-not-sent {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

.mlp-badge-sent {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.mlp-badge-opened {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fcd34d;
    animation: mlpPulseSubtle 2s infinite;
}

.mlp-badge-completed {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.mlp-badge-expired {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

.mlp-badge-revoked {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

@keyframes mlpPulseSubtle {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* ==========================================================================
   SELF-REGISTRATION & MASTER PRODI STYLES (v1.9.0)
   ========================================================================== */

/* Active state for modals */
.mlp-modal-overlay.active {
    display: block !important;
}

.mlp-modal-sm {
    width: 480px !important;
    max-width: 95vw !important;
}

.mlp-modal-footer {
    padding: 16px 28px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f8fafc;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.mlp-zoomed-img {
    max-width: 100%;
    max-height: 420px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    object-fit: contain;
}

/* Subnav Navigation */
.mlp-subnav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f1f5f9;
}

.mlp-subnav-links {
    display: flex;
    gap: 10px;
}

.mlp-subnav-link {
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 13.5px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mlp-subnav-link:hover {
    color: #1e40af;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.mlp-subnav-link.active {
    background: #2563eb;
    color: #ffffff !important;
    border-color: #2563eb;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

/* KPI Stat Cards */
.mlp-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.mlp-kpi-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mlp-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.mlp-kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.mlp-kpi-primary .mlp-kpi-icon { background: #eff6ff; color: #2563eb; }
.mlp-kpi-warning .mlp-kpi-icon { background: #fffbeb; color: #d97706; }
.mlp-kpi-info .mlp-kpi-icon    { background: #f0f9ff; color: #0284c7; }
.mlp-kpi-success .mlp-kpi-icon { background: #ecfdf5; color: #059669; }
.mlp-kpi-danger .mlp-kpi-icon  { background: #fef2f2; color: #dc2626; }

.mlp-kpi-info {
    display: flex;
    flex-direction: column;
}

.mlp-kpi-val {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.mlp-kpi-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-top: 2px;
}

/* Filter Grid */
.mlp-filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
}

.mlp-filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mlp-filter-label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

.mlp-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.mlp-search-icon {
    position: absolute;
    left: 12px;
    color: #94a3b8;
    pointer-events: none;
}

.mlp-input-search {
    padding-left: 36px !important;
}

/* Table Avatars & Details */
.mlp-table-avatar {
    width: 44px;
    height: 58px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mlp-table-avatar:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    z-index: 10;
    position: relative;
}

.mlp-table-avatar-placeholder {
    width: 44px;
    height: 58px;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 20px;
}

/* ==========================================================================
   PUBLIC REGISTRATION STYLES (Self-Service Portal)
   ========================================================================== */

.mlp-public-wrapper,
.mlp-public-container {
    max-width: 980px;
    margin: 24px auto;
    padding: 0 16px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    line-height: 1.5;
}

.mlp-reg-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 36px -8px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(226, 232, 240, 0.9);
    border: none;
    overflow: hidden;
}

/* Compact Card Header Bar (Tidak Besar) */
.mlp-reg-compact-header {
    background: linear-gradient(135deg, #1e293b 0%, #273449 100%);
    color: #ffffff;
    padding: 13px 28px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mlp-reg-compact-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.15px;
    line-height: 1.35;
}

.mlp-reg-compact-title i {
    color: #cbd5e1;
    font-size: 16px;
}

/* Header Banner */
.mlp-reg-header,
.mlp-reg-hero {
    background: linear-gradient(135deg, #1e293b 0%, #273449 50%, #334155 100%);
    color: #ffffff;
    padding: 34px 36px 28px;
    position: relative;
}

.mlp-header-badge,
.mlp-reg-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.mlp-reg-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -0.4px;
    color: #ffffff;
    line-height: 1.25;
}

.mlp-reg-subtitle {
    font-size: 14px;
    opacity: 0.92;
    margin: 0;
    line-height: 1.5;
    color: #e0e7ff;
    max-width: 640px;
}

/* Form Alert Wrapper */
.mlp-form-alert-wrapper {
    padding: 20px 36px 0;
}

/* Streamlined Direct Form Body */
.mlp-reg-body {
    padding: 34px 36px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mlp-reg-body .mlp-agreement-card {
    margin-bottom: 0;
}

/* Form Sections - Clean, modern, unnumbered dividers */
.mlp-form-section {
    padding: 26px 36px;
    border-bottom: 1px solid #f1f5f9;
}

.mlp-form-section:last-of-type {
    border-bottom: none;
}

.mlp-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f8fafc;
}

.mlp-section-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    border: 1px solid #cbd5e1;
}

.mlp-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.mlp-section-desc {
    font-size: 13px;
    color: #64748b;
    margin: 2px 0 0;
    line-height: 1.4;
}

/* Grids and Controls */
.mlp-form-grid {
    display: grid;
    gap: 18px;
}

.mlp-grid-1 {
    grid-template-columns: 1fr;
}

.mlp-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.mlp-public-container .mlp-form-grid {
    gap: 18px 24px;
}

/* Radio Group & Cards */
.mlp-radio-group {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.mlp-radio-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    min-height: 46px;
    box-sizing: border-box;
    position: relative;
}

.mlp-radio-card:hover {
    border-color: #93c5fd;
    background: #f8fafc;
}

.mlp-radio-card.active,
.mlp-radio-card:has(input[type="radio"]:checked) {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.mlp-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mlp-radio-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.mlp-radio-card.active .mlp-radio-dot,
.mlp-radio-card:has(input[type="radio"]:checked) .mlp-radio-dot {
    border-color: #2563eb;
    background: #2563eb;
}

.mlp-radio-card.active .mlp-radio-dot::after,
.mlp-radio-card:has(input[type="radio"]:checked) .mlp-radio-dot::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
}

.mlp-radio-label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mlp-radio-card.active .mlp-radio-label,
.mlp-radio-card:has(input[type="radio"]:checked) .mlp-radio-label {
    color: #1e40af;
}

/* Email with Inline Quick-Action Button */
.mlp-input-with-action {
    position: relative;
    display: flex;
    align-items: center;
}

.mlp-input-with-action .mlp-input {
    padding-right: 92px;
}

.mlp-btn-inline-helper {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.mlp-btn-inline-helper:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.mlp-col-span-2 {
    grid-column: span 2;
}

.mlp-form-subgroup {
    display: flex;
    flex-direction: column;
}

/* Inputs & Form Elements */
.mlp-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.mlp-public-container .mlp-label {
    font-size: 14px;
    margin-bottom: 8px;
}

.mlp-required {
    color: #ef4444;
    font-weight: 700;
}

.mlp-optional {
    color: #94a3b8;
    font-weight: 400;
    font-size: 11.5px;
}

.mlp-input,
.mlp-select,
.mlp-textarea {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.mlp-public-container .mlp-input,
.mlp-public-container .mlp-select,
.mlp-public-container .mlp-textarea {
    min-height: 48px;
    font-size: 15px;
}

.mlp-input:focus,
.mlp-select:focus,
.mlp-textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.mlp-public-container .mlp-input:focus,
.mlp-public-container .mlp-select:focus,
.mlp-public-container .mlp-textarea:focus {
    border-color: #334155;
    box-shadow: 0 0 0 3px rgba(51, 65, 85, 0.15);
}

.mlp-input.is-invalid,
.mlp-select.is-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.mlp-input.is-valid {
    border-color: #10b981 !important;
}

.mlp-input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.mlp-toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 15px;
    padding: 4px;
    transition: color 0.15s ease;
}

.mlp-toggle-password:hover {
    color: #334155;
}

.mlp-field-feedback {
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

.mlp-field-feedback.is-invalid {
    color: #ef4444;
}

.mlp-field-feedback.is-valid {
    color: #10b981;
}

/* Real-time Password Strength Meter */
.mlp-password-strength-container {
    margin-top: 8px;
}

.mlp-strength-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.mlp-strength-progress {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.mlp-strength-progress.weak   { width: 25%; background: #ef4444; }
.mlp-strength-progress.fair   { width: 50%; background: #f59e0b; }
.mlp-strength-progress.good   { width: 75%; background: #3b82f6; }
.mlp-strength-progress.strong { width: 100%; background: #10b981; }

.mlp-strength-label {
    font-size: 11.5px;
    font-weight: 600;
    margin-top: 4px;
    display: block;
}

.mlp-strength-label.weak   { color: #ef4444; }
.mlp-strength-label.fair   { color: #f59e0b; }
.mlp-strength-label.good   { color: #3b82f6; }
.mlp-strength-label.strong { color: #10b981; }

/* Photo Dropzone & Live Preview */
.mlp-photo-upload-wrapper {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.mlp-photo-dropzone {
    border: 2px dashed #93c5fd;
    border-radius: 14px;
    padding: 28px 16px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.mlp-photo-dropzone:hover,
.mlp-photo-dropzone.dragover {
    border-color: #2563eb;
    background: #eff6ff;
}

.mlp-file-input {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.mlp-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.mlp-upload-icon {
    font-size: 32px;
    color: #3b82f6;
}

.mlp-upload-text {
    font-size: 13.5px;
    color: #334155;
}

.mlp-upload-subtext {
    font-size: 11.5px;
    color: #94a3b8;
}

/* 2. Interactive Photo Editor Card */
.mlp-photo-editor-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.mlp-photo-stage-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.mlp-photo-stage {
    position: relative;
    width: 165px;
    max-width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid #2563eb;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.2);
    background: #ffffff;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
}

.mlp-photo-stage.is-dragging {
    cursor: grabbing;
}

.mlp-photo-preview-img {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Translucent Face Guide Silhouette */
.mlp-photo-face-guide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 6px;
    transition: opacity 0.2s ease;
}

.mlp-photo-face-guide.is-hidden {
    display: none !important;
}

.mlp-guide-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.65;
}

.mlp-guide-head {
    fill: none;
    stroke: #2563eb;
    stroke-width: 1.5;
    stroke-dasharray: 4, 3;
}

.mlp-guide-shoulders {
    fill: none;
    stroke: #2563eb;
    stroke-width: 1.5;
    stroke-dasharray: 4, 3;
}

.mlp-guide-eyes {
    stroke: #3b82f6;
    stroke-width: 1;
    stroke-dasharray: 2, 2;
    opacity: 0.8;
}

.mlp-guide-label {
    background: rgba(15, 23, 42, 0.7);
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    backdrop-filter: blur(2px);
    z-index: 2;
}

.mlp-photo-drag-hint {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
}

.mlp-photo-remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ef4444;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease;
}

.mlp-photo-remove-btn:hover {
    transform: scale(1.15);
}

/* Integrity Agreement Card */
.mlp-agreement-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 22px;
}

.mlp-agreement-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mlp-agreement-title i {
    color: #2563eb;
}

.mlp-agreement-content {
    max-height: 120px;
    overflow-y: auto;
    font-size: 12.5px;
    color: #475569;
    line-height: 1.6;
    padding-right: 8px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.mlp-checkbox-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    color: #1e293b;
    user-select: none;
}

.mlp-checkbox-card input[type="checkbox"] {
    margin-top: 3px;
    width: 17px;
    height: 17px;
    cursor: pointer;
}

/* Captcha Anti-Bot Card */
.mlp-captcha-card {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    background: #f1f5f9;
    padding: 18px 22px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.mlp-captcha-image-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mlp-captcha-img {
    height: 52px;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.mlp-btn-captcha-reload {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    cursor: pointer;
    color: #475569;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.mlp-btn-captcha-reload svg {
    display: block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mlp-btn-captcha-reload:hover {
    background: #334155;
    color: #ffffff;
    border-color: #334155;
    box-shadow: 0 4px 10px rgba(30, 41, 59, 0.25);
}

.mlp-btn-captcha-reload:hover svg {
    transform: rotate(90deg);
}

.mlp-btn-captcha-reload.is-spinning svg,
.mlp-btn-captcha-reload.is-spinning i {
    animation: mlpSpinReload 0.6s linear infinite;
}

@keyframes mlpSpinReload {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.mlp-input-captcha {
    letter-spacing: 0;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    max-width: 220px;
}

/* Submit Actions */
.mlp-form-actions {
    padding: 32px 36px;
    background: #f8fafc;
    text-align: center;
}

.mlp-btn-submit {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #ffffff !important;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(30, 41, 59, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.mlp-btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 41, 59, 0.35);
}

.mlp-public-container #btnSubmitSelfReg:hover:not(:disabled),
.mlp-public-container #btnSubmitSelfReg:active,
.mlp-public-container #btnSubmitSelfReg.active,
.mlp-public-container #btnSubmitSelfReg:focus-visible {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    border-color: #334155 !important;
    color: #ffffff !important;
}

.mlp-btn-submit:disabled {
    opacity: 1;
    color: #ffffff !important;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    cursor: wait;
}

.mlp-public-container .mlp-btn-primary {
    background: #1e293b !important;
    border-color: #1e293b !important;
    color: #ffffff !important;
}

.mlp-public-container .mlp-btn-primary:hover {
    background: #334155 !important;
    border-color: #334155 !important;
}

.mlp-privacy-note {
    font-size: 12px;
    color: #94a3b8;
    margin: 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Ticket & Verification Views */
.mlp-ticket-card {
    max-width: 600px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.mlp-ticket-header {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    padding: 36px 30px;
    text-align: center;
}

.mlp-ticket-cut {
    height: 20px;
    background: #ffffff;
    border-bottom: 2px dashed #cbd5e1;
}

.mlp-ticket-body {
    padding: 30px;
}

.mlp-ticket-code-val {
    font-family: monospace;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #0f172a;
    background: #f1f5f9;
    padding: 12px 20px;
    border-radius: 12px;
    display: inline-block;
    border: 1.5px dashed #94a3b8;
}

.mlp-verify-card {
    max-width: 560px;
    margin: 50px auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    padding: 42px 32px;
    text-align: center;
}

.mlp-status-icon-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}

.mlp-status-success { background: #ecfdf5; color: #059669; }
.mlp-status-warning { background: #fffbeb; color: #d97706; }
.mlp-status-danger  { background: #fef2f2; color: #dc2626; }
.mlp-status-info    { background: #eff6ff; color: #2563eb; }

@media print {
    body * { visibility: hidden; }
    .mlp-ticket-card, .mlp-ticket-card * { visibility: visible; }
    .mlp-ticket-card {
        position: absolute;
        top: 0; left: 0; width: 100%;
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    .mlp-ticket-footer button, .mlp-ticket-footer a { display: none !important; }
}

/* --------------------------------------------------------------------------
   Interactive Validation & Compression Alerts (Self-Registration)
   -------------------------------------------------------------------------- */
.mlp-domain-alert,
.mlp-pwd-alert,
.mlp-compress-status {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.45;
    margin-top: 8px;
    transition: all 0.2s ease-in-out;
    animation: mlpFadeSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mlp-domain-alert i,
.mlp-pwd-alert i,
.mlp-compress-status i {
    font-size: 15px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Invalid State */
.mlp-domain-alert.is-invalid,
.mlp-pwd-alert.is-invalid,
.mlp-compress-status.is-invalid {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.mlp-domain-alert.is-invalid i,
.mlp-pwd-alert.is-invalid i,
.mlp-compress-status.is-invalid i {
    color: #dc2626;
}

/* Valid State */
.mlp-domain-alert.is-valid,
.mlp-pwd-alert.is-valid,
.mlp-compress-status.is-valid,
.mlp-compress-status.is-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}
.mlp-domain-alert.is-valid i,
.mlp-pwd-alert.is-valid i,
.mlp-compress-status.is-valid i,
.mlp-compress-status.is-success i {
    color: #059669;
}

/* Loading State (Photo compressor) */
.mlp-compress-status.is-loading {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}
.mlp-compress-status.is-loading i {
    color: #2563eb;
}

/* Input validation highlights */
.mlp-input.is-invalid,
.mlp-select.is-invalid {
    border-color: #ef4444 !important;
    background-color: #fffafa !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.mlp-input.is-valid,
.mlp-select.is-valid {
    border-color: #10b981 !important;
    background-color: #f6fef9 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12) !important;
}

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

/* --------------------------------------------------------------------------
   Public State Views (Success, Pending Approval, Disabled Screens)
   -------------------------------------------------------------------------- */
.mlp-state-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 36px -8px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(226, 232, 240, 0.9);
    padding: 38px 28px;
    text-align: center;
    max-width: 580px;
    margin: 28px auto;
}

.mlp-state-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 18px;
}

.mlp-icon-success { background: #ecfdf5; color: #059669; }
.mlp-icon-warning { background: #fffbeb; color: #d97706; }
.mlp-icon-danger  { background: #fef2f2; color: #dc2626; }
.mlp-icon-info    { background: #eff6ff; color: #2563eb; }

.mlp-state-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
}

.mlp-state-subtitle {
    font-size: 14.5px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 20px;
}

.mlp-verified-details-card,
.mlp-instruction-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    text-align: left;
    margin: 20px 0;
}

.mlp-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #edf2f7;
    font-size: 13.5px;
}

.mlp-detail-row:last-child {
    border-bottom: none;
}

.mlp-detail-label {
    color: #64748b;
}

.mlp-detail-value {
    color: #0f172a;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Mobile Responsive Optimizations (Mobile-Friendly Form Layout)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .mlp-public-container {
        max-width: 760px;
    }

    .mlp-public-container .mlp-reg-body {
        padding: 26px 26px 18px;
    }

    .mlp-public-container .mlp-grid-2 {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .mlp-public-container .mlp-col-span-2 {
        grid-column: span 1 !important;
    }
}

@media (max-width: 768px) {
    .mlp-public-wrapper,
    .mlp-public-container {
        margin: 12px auto !important;
        padding: 0 10px !important;
    }

    .mlp-reg-card {
        border-radius: 14px;
        box-shadow: 0 6px 20px -4px rgba(15, 23, 42, 0.08);
    }

    .mlp-reg-header,
    .mlp-reg-hero {
        padding: 22px 18px 18px !important;
    }

    .mlp-header-badge,
    .mlp-reg-hero-badge {
        font-size: 11px;
        padding: 4px 10px;
    }

    .mlp-reg-title {
        font-size: 20px !important;
        line-height: 1.3;
    }

    .mlp-reg-subtitle {
        font-size: 13px !important;
        line-height: 1.45;
    }

    .mlp-reg-compact-header {
        padding: 11px 16px !important;
    }

    .mlp-reg-compact-title {
        font-size: 13.5px !important;
        gap: 7px !important;
    }

    .mlp-form-alert-wrapper {
        padding: 14px 14px 0 !important;
    }

    .mlp-reg-body {
        padding: 20px 16px 12px !important;
        gap: 16px !important;
    }

    .mlp-form-section {
        padding: 18px 14px !important;
    }

    .mlp-section-header {
        gap: 10px;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }

    .mlp-section-icon {
        width: 32px;
        height: 32px;
        font-size: 15px;
        border-radius: 8px;
    }

    .mlp-section-title {
        font-size: 16px;
    }

    .mlp-section-desc {
        font-size: 12.5px;
    }

    .mlp-grid-2 {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    .mlp-col-span-2 {
        grid-column: span 1 !important;
    }

    .mlp-input,
    .mlp-select,
    .mlp-textarea {
        font-size: 16px !important; /* Prevents auto-zoom in iOS Safari */
        min-height: 46px;
        padding: 10px 12px;
    }

    .mlp-radio-group {
        flex-direction: column;
        gap: 8px;
    }

    .mlp-radio-card {
        width: 100%;
        min-height: 46px;
        padding: 10px 14px;
    }

    .mlp-public-container .mlp-radio-group {
        flex-direction: row;
        gap: 8px;
    }

    .mlp-public-container .mlp-radio-card {
        width: auto;
        min-width: 0;
        justify-content: center;
        padding: 10px 8px;
    }

    .mlp-public-container .mlp-radio-label {
        gap: 5px;
        font-size: 13px;
    }

    .mlp-form-actions {
        padding: 20px 14px 26px !important;
    }

    .mlp-btn-submit {
        width: 100% !important;
        justify-content: center;
        padding: 14px 18px !important;
        font-size: 15.5px !important;
        min-height: 48px;
    }

    .mlp-captcha-card {
        padding: 16px 14px !important;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .mlp-captcha-image-wrapper {
        justify-content: center;
    }

    .mlp-input-captcha {
        max-width: 100% !important;
        width: 100% !important;
    }

    .mlp-state-card {
        padding: 28px 18px;
        margin: 16px auto;
        border-radius: 14px;
    }

    .mlp-state-icon {
        width: 58px;
        height: 58px;
        font-size: 26px;
        margin-bottom: 14px;
    }

    .mlp-state-title {
        font-size: 18px;
    }

    .mlp-state-subtitle {
        font-size: 13.5px;
    }
}

@media (max-width: 480px) {
    .mlp-btn-inline-helper {
        padding: 4px 8px;
        font-size: 11px;
    }
    .mlp-input-with-action .mlp-input {
        padding-right: 80px;
    }
}

/* Zoom Slider Control Bar */
.mlp-zoom-control-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 290px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 4px 10px;
    box-sizing: border-box;
}

.mlp-zoom-btn {
    border: none;
    background: transparent;
    color: #475569;
    font-size: 11px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.mlp-zoom-btn:hover {
    color: #1e293b;
    background: #e2e8f0;
}

.mlp-slider-track-wrap {
    flex: 1;
    display: flex;
    align-items: center;
}

.mlp-zoom-slider {
    width: 100%;
    cursor: pointer;
    accent-color: #2563eb;
    height: 6px;
    margin: 0;
}

.mlp-zoom-badge {
    font-size: 11px;
    font-weight: 700;
    color: #1e40af;
    background: #dbeafe;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 42px;
    text-align: center;
}

/* 3 Preset Pill Buttons */
.mlp-photo-pill-group {
    display: inline-flex;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
}

.mlp-photo-pill-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 6px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    border-radius: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.mlp-photo-pill-btn:hover {
    color: #1e293b;
}

.mlp-photo-pill-btn.active {
    background: #ffffff;
    color: #2563eb;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

/* Secondary Tools Row (Rotate, Flip, Guide, Reset) */
.mlp-photo-tools-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

.mlp-photo-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    touch-action: manipulation;
}

.mlp-photo-tool-btn:hover {
    background: #f1f5f9;
    color: #1d4ed8;
    border-color: #93c5fd;
    transform: translateY(-1px);
}

.mlp-photo-tool-btn.active {
    background: #eff6ff;
    color: #2563eb;
    border-color: #93c5fd;
}

.mlp-photo-tool-btn.mlp-tool-reset {
    color: #dc2626;
    border-color: #fecaca;
    background: #fff5f5;
}

.mlp-photo-tool-btn.mlp-tool-reset:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

/* Footer Actions (Ganti Foto & Hapus) */
.mlp-photo-footer-actions {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 2px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    gap: 8px;
    box-sizing: border-box;
}

.mlp-photo-footer-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.mlp-photo-footer-btn.mlp-btn-change {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.mlp-photo-footer-btn.mlp-btn-change:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.mlp-photo-footer-btn.mlp-btn-remove {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.mlp-photo-footer-btn.mlp-btn-remove:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

/* WhatsApp Direct Link & Action Chips */
.mlp-wa-link {
    color: #059669;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease;
}

.mlp-wa-link:hover {
    color: #047857;
    text-decoration: underline;
}

.mlp-wa-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mlp-wa-chip:hover {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
    text-decoration: none;
}

/* ==========================================================================
   FontAwesome 4 / 5 / 6 Cross-Template Compatibility Aliases
   (Ensures icons render correctly whether template loads FA4, FA5, or FA6)
   ========================================================================== */
.fa-refresh:before { content: "\f021"; }
.fa-repeat:before { content: "\f01e"; }
.fa-exchange:before { content: "\f362"; }
.fa-arrows:before { content: "\f0b2"; }
.fa-circle-o-notch:before { content: "\f1ce"; }




