:root {
    --color-primary: #1d4ed8;
    --color-secondary: #0284c7;
    --color-accent: #eff6ff;
    --color-gold: #f59e0b;

    --bg-main: #f1f5f9;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --input-bg: #f8fafc;
    --summary-bg: #f1f5f9;
    --shadow-brutal: 0 4px 14px -2px rgba(15, 23, 42, 0.07), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
    --shadow-brutal-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
}

body.dark-mode {
    --color-primary: #3b82f6;
    --color-secondary: #38bdf8;
    --color-accent: #1e293b;
    --color-gold: #fbbf24;

    --bg-main: #090e1a;
    --card-bg: #111827;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #1f2937;
    --input-bg: #0f172a;
    --summary-bg: #1e293b;
    --shadow-brutal: 0 6px 18px rgba(0, 0, 0, 0.45);
    --shadow-brutal-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    max-width: 100%;
    overflow-x: clip;
}

body {
    background-color: var(--bg-main);
    background-image: radial-gradient(circle at 50% 0%, rgba(29, 78, 216, 0.07), transparent 60%);
    position: relative;
    color: var(--text-main);
    line-height: 1.5;
    padding-bottom: 5.5rem;
    transition: background-color 0.25s ease, color 0.25s ease;
}

header {
    background: linear-gradient(135deg, #071126 0%, #172554 55%, #1d4ed8 100%);
    color: #ffffff;
    padding: 11px 14px;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 900;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 6px 24px rgba(7, 17, 38, 0.25);
}

.header-container-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 680px;
    margin: 0 auto;
    gap: 8px;
}

.brand-freeze-box {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    flex-shrink: 0;
}

.header-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    pointer-events: none;
    display: block;
}

.header-logo-fallback {
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.4px;
    pointer-events: none;
}

.header-tagline {
    font-size: 10px;
    font-weight: 600;
    color: #93c5fd;
    letter-spacing: 0.2px;
    margin-top: 2px;
    line-height: 1.1;
    pointer-events: none;
}

.header-right-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-nav-icon {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.header-nav-icon:active {
    transform: scale(0.94);
    background: rgba(255, 255, 255, 0.25);
}

/* GRID STATISTIK BERANDA (3 KOLOM) */
.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0 0 14px 0;
}

.home-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 11px 6px;
    text-align: center;
    box-shadow: var(--shadow-brutal-sm);
}

.home-stat-num {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
}

.home-stat-lbl {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

.hero-banner-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 65%, #1d4ed8 100%);
    color: #ffffff;
    border-radius: 18px;
    padding: 18px 16px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(29, 78, 216, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-banner-card::after {
    content: "";
    position: absolute;
    right: -14px;
    bottom: -10px;
    width: 130px;
    height: 110px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 200' fill='rgba(255,255,255,0.11)'%3E%3Crect x='118' y='10' width='4' height='40'/%3E%3Ccircle cx='120' cy='18' r='5'/%3E%3Ccircle cx='120' cy='29' r='5'/%3E%3Ccircle cx='120' cy='40' r='5'/%3E%3Cpath d='M90 50 L150 50 L160 66 L80 66 Z M84 70 L156 70 L170 90 L70 90 Z M80 90 L160 90 L160 150 L80 150 Z'/%3E%3Cpath d='M10 125 L76 125 L76 190 L10 190 Z M164 125 L230 125 L230 190 L164 190 Z M0 190 L240 190 L240 200 L0 200 Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

.hero-title {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 12px;
    color: #dbeafe;
    line-height: 1.45;
    position: relative;
    z-index: 1;
    max-width: 90%;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 14, 26, 0.65);
    backdrop-filter: blur(4px);
    z-index: 950;
    display: flex;
    justify-content: flex-end;
}

.drawer-panel {
    background: var(--card-bg);
    color: var(--text-main);
    width: 285px;
    height: 100%;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.drawer-close-btn {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 16px;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-body {
    padding: 12px 10px;
    overflow-y: auto;
    flex: 1;
}

.drawer-item {
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    border-radius: 12px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.15s ease;
}

.drawer-item:hover {
    background: var(--summary-bg);
}

.drawer-wa-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 4px;
}

.drawer-wa-row .drawer-item {
    flex: 1;
    margin-bottom: 0;
    min-width: 0;
}

.btn-hapus-grup-wa {
    background: #ef4444;
    color: #ffffff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
}

.search-section { padding: 15px; margin-bottom: 12px; }
.search-box-boss { display: flex; gap: 8px; margin-bottom: 12px; }
.search-input-wrapper { position: relative; flex: 1; }
.search-input {
    width: 100%;
    padding: 11px 12px 11px 36px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-size: 13px;
    outline: none;
    background: var(--input-bg);
    color: var(--text-main);
    font-weight: 500;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
}
.search-icon { position: absolute; left: 12px; top: 13px; color: var(--text-muted); }
.search-btn-boss {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    padding: 0 18px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    box-shadow: var(--shadow-brutal-sm);
    transition: opacity 0.15s ease;
}
.search-btn-boss:active { opacity: 0.9; }

.filter-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}
.btn-trigger-filter {
    background: var(--input-bg);
    border: 1.5px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-clear-filter { font-size: 12px; font-weight: 700; color: #ef4444; cursor: pointer; }

.filter-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 14, 26, 0.65);
    backdrop-filter: blur(4px);
    z-index: 960;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.filter-modal-content {
    background: var(--card-bg);
    color: var(--text-main);
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}
.filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}
.filter-modal-body { padding: 18px 20px; overflow-y: auto; flex: 1; }
.filter-group-title { font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; margin: 14px 0 10px 0; }
.filter-group-title:first-child { margin-top: 0; }
.filter-chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
    background: var(--input-bg);
    border: 1.5px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}
.filter-chip.active { background: var(--color-primary); color: #ffffff; border-color: var(--color-primary); }
.filter-modal-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--border-color); }
.btn-reset-filter, .btn-apply-filter {
    padding: 12px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    border: 1.5px solid var(--border-color);
}
.btn-reset-filter { background: var(--input-bg); color: var(--text-main); }
.btn-apply-filter { background: var(--color-primary); color: #ffffff; border-color: var(--color-primary); }

.container { max-width: 680px; margin: 0 auto; padding: 12px; }
.brutal-card, .sub-header-desc, .loker-card, .empty-state, .rekomendasi-card, .footer-card-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-brutal);
}
.sub-header-desc { padding: 16px; margin-bottom: 12px; }
.sub-title { font-size: 16px; font-weight: 800; color: var(--text-main); margin-bottom: 4px; letter-spacing: -0.2px; }
.sub-header-desc p { font-size: 12px; color: var(--text-muted); }
.section-group-title { font-size: 12px; font-weight: 800; color: var(--text-muted); letter-spacing: 0.4px; margin: 18px 0 10px 0; text-transform: uppercase; }
.rekomendasi-slider { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 14px; scrollbar-width: none; }
.rekomendasi-slider::-webkit-scrollbar { display: none; }
.rekomendasi-card { min-width: 225px; max-width: 225px; padding: 14px; cursor: pointer; flex-shrink: 0; border-top: 3px solid var(--color-primary); transition: transform 0.15s ease; }
.rekomendasi-card:active { transform: scale(0.98); }

.loker-container { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.loker-card { padding: 16px; cursor: pointer; transition: transform 0.15s ease, border-color 0.15s ease; }
.loker-card:hover { border-color: var(--color-primary); }
.loker-card:active { transform: scale(0.99); }
.loker-card.closed { opacity: 0.68; background: var(--summary-bg); }

.card-top-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.card-main-info { flex: 1; min-width: 0; }
.company-logo-box {
    width: 46px; height: 46px;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 15px; flex-shrink: 0;
    overflow: hidden;
}
.company-logo-box img { width: 100%; height: 100%; object-fit: cover; }
.card-top-info { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-muted); margin-bottom: 4px; gap: 6px; }
.loker-title { font-size: 15px; font-weight: 800; color: var(--text-main); line-height: 1.35; margin-bottom: 4px; }
.card-company-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-bottom: 10px; gap: 8px; }
.company-name { font-weight: 700; color: var(--text-main); display: inline-flex; align-items: center; gap: 5px; }
.verified-badge { color: #2563eb; font-size: 12px; }
.card-spec-grid { display: flex; gap: 8px; border-top: 1px solid var(--border-color); padding-top: 10px; font-size: 11px; color: var(--text-muted); justify-content: space-between; flex-wrap: wrap; }
.spec-item { font-weight: 600; background: var(--summary-bg); padding: 3px 8px; border-radius: 6px; }
.job-type-tag { background: var(--color-accent); color: var(--color-primary); padding: 2px 7px; border-radius: 6px; font-size: 10px; font-weight: 700; }
.badge-new, .badge-applied, .badge-closed { color: #ffffff; padding: 2px 7px; border-radius: 6px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px; }
.badge-new { background: #ef4444; }
.badge-applied { background: #10b981; }
.badge-closed { background: #64748b; }

.pagination-container { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 16px 0; }
.page-btn { background: var(--card-bg); border: 1.5px solid var(--border-color); color: var(--text-main); padding: 7px 13px; border-radius: 10px; font-size: 12px; font-weight: 700; cursor: pointer; }
.page-btn.active { background: var(--color-primary); color: #ffffff; border-color: var(--color-primary); }

.footer-card-section { padding: 20px 16px; text-align: center; margin: 16px 0 12px 0; }
.footer-socmed-btn { display: inline-flex; align-items: center; gap: 6px; color: #fff; padding: 8px 14px; border-radius: 10px; font-size: 11px; font-weight: 700; text-decoration: none; }
.footer-links-row { display: flex; justify-content: center; gap: 12px; font-size: 11px; font-weight: 600; color: var(--text-muted); margin-top: 10px; flex-wrap: wrap; }
.footer-links-row span { cursor: pointer; }
.footer-copyright { font-size: 11px; color: var(--text-muted); text-align: center; margin-bottom: 1.5rem; font-weight: 500; }

.form-group-custom { margin-bottom: 12px; }
.form-group-custom label { font-size: 11px; font-weight: 700; color: var(--text-muted); display: block; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.3px; }
.btn-simpan-profil {
    width: 100%; background: var(--color-primary); color: #ffffff;
    border: none; padding: 12px; border-radius: 12px;
    font-size: 13px; font-weight: 800; cursor: pointer; margin-top: 6px; box-shadow: var(--shadow-brutal-sm);
}
.btn-bookmark-action {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: #fef9c3; color: #854d0e; border: 1.5px solid #fde047;
    padding: 11px; border-radius: 12px; font-size: 13px; font-weight: 800; cursor: pointer;
}
.btn-bookmark-action.saved { background: #f59e0b; color: #ffffff; border-color: #f59e0b; }

#detailModal { position: fixed; inset: 0; background: rgba(9, 14, 26, 0.7); backdrop-filter: blur(4px); z-index: 950; display: flex; justify-content: center; align-items: flex-end; }
.modal-content {
    background: var(--card-bg); color: var(--text-main); width: 100%; max-width: 680px; max-height: 90vh;
    border-top-left-radius: 24px; border-top-right-radius: 24px; border: 1px solid var(--border-color);
    padding: 22px 18px; overflow-y: auto; box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
}
.detail-header { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--border-color); padding-bottom: 14px; margin-bottom: 16px; gap: 12px; }
.detail-logo-box {
    width: 50px; height: 50px; background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    color: #ffffff; border: 1px solid var(--border-color); border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; flex-shrink: 0; overflow: hidden;
}
.detail-logo-box img { width: 100%; height: 100%; object-fit: cover; }
.detail-company { font-size: 13px; font-weight: 700; color: var(--color-primary); margin-bottom: 2px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.detail-job-title { font-size: 18px; font-weight: 800; color: var(--text-main); margin-bottom: 4px; }
.section-box-title { font-size: 11px; font-weight: 800; color: var(--text-muted); letter-spacing: 0.4px; margin: 16px 0 8px 0; text-transform: uppercase; }
.modal-close-btn { background: var(--input-bg); border: 1px solid var(--border-color); width: 32px; height: 32px; border-radius: 50%; font-weight: 800; color: var(--text-main); cursor: pointer; display: flex; align-items: center; justify-content: center; }

.summary-table { background: var(--summary-bg); border: 1px solid var(--border-color); border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; }
.summary-row { display: flex; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--border-color); }
.summary-row:last-child { border-bottom: none; }
.summary-label { width: 125px; color: var(--text-muted); font-weight: 600; flex-shrink: 0; }
.summary-value { flex: 1; color: var(--text-main); font-weight: 700; }
.syarat-list { padding-left: 18px; font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.syarat-list li { margin-bottom: 6px; font-weight: 500; }

.apply-box { background: var(--color-accent); border: 1px solid var(--border-color); border-radius: 14px; padding: 12px 16px; margin-bottom: 12px; }
body.dark-mode .apply-box { background: #1e293b; }
.apply-row { display: flex; font-size: 13px; margin-bottom: 6px; }
.apply-label { width: 75px; color: var(--color-primary); font-weight: 700; flex-shrink: 0; }
body.dark-mode .apply-label { color: #93c5fd; }
.apply-val { flex: 1; color: var(--text-main); font-weight: 600; word-break: break-all; }

.safety-banner-box { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 12px; padding: 10px 12px; font-size: 11px; font-weight: 600; line-height: 1.45; margin-bottom: 14px; }
body.dark-mode .safety-banner-box { background: #272009; border-color: #854d0e; color: #fef08a; }

.hidden { display: none !important; }
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--text-muted); font-size: 13px; font-weight: 600; }

#infoModalOverlay { position: fixed; inset: 0; background: rgba(9, 14, 26, 0.65); backdrop-filter: blur(4px); z-index: 970; display: flex; justify-content: center; align-items: center; padding: 16px; }
.info-modal-card { background: var(--card-bg); color: var(--text-main); width: 100%; max-width: 440px; border: 1px solid var(--border-color); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-brutal); }
.info-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.info-modal-title { font-size: 16px; font-weight: 800; color: var(--color-primary); }
.info-modal-close { background: var(--input-bg); border: 1px solid var(--border-color); width: 30px; height: 30px; border-radius: 50%; font-size: 16px; font-weight: 800; color: var(--text-main); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.info-modal-body { font-size: 13px; color: var(--text-muted); line-height: 1.6; font-weight: 500; }

.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color); display: flex; justify-content: space-around; align-items: center;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); z-index: 850; max-width: 680px; margin: 0 auto;
}
body.dark-mode .bottom-nav {
    background: rgba(17, 24, 39, 0.94);
}
.bottom-nav-item {
    background: transparent; border: none; color: var(--text-muted);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 6px 12px; border-radius: 12px; font-size: 10px; font-weight: 700; cursor: pointer; flex: 1;
    transition: all 0.15s ease;
}
.bottom-nav-item.active { background: var(--color-accent); color: var(--color-primary); font-weight: 800; }
body.dark-mode .bottom-nav-item.active { background: #1e293b; color: #60a5fa; }

.admin-quick-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-color); }
.btn-mini-admin { border: none; padding: 6px 10px; border-radius: 8px; font-size: 10px; font-weight: 700; color: #fff; cursor: pointer; }

.custom-popup-overlay { position: fixed; inset: 0; background: rgba(9, 13, 22, 0.72); backdrop-filter: blur(4px); z-index: 980; display: flex; justify-content: center; align-items: center; padding: 16px; }
.custom-popup-card { background: var(--card-bg); color: var(--text-main); width: 100%; max-width: 420px; border: 1px solid var(--border-color); border-radius: 20px; padding: 20px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25); }
.custom-popup-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding: 0 36px 12px 36px;
    margin-bottom: 14px;
}
.custom-popup-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.custom-popup-title.danger { color: #ef4444; }
.custom-popup-close {
    position: absolute;
    right: 0;
    top: 0;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.custom-popup-body { font-size: 13px; color: var(--text-muted); line-height: 1.55; font-weight: 500; margin-bottom: 16px; }
.custom-popup-info-box { background: var(--summary-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-size: 12px; color: var(--text-main); }
.custom-popup-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.popup-reason-chip { background: var(--input-bg); border: 1px solid var(--border-color); color: var(--text-main); padding: 6px 10px; border-radius: 8px; font-size: 11px; font-weight: 700; cursor: pointer; }
.popup-reason-chip.selected { background: var(--color-primary); color: #ffffff; border-color: var(--color-primary); }
.custom-popup-input, .custom-popup-textarea { width: 100%; padding: 11px 12px; border: 1.5px solid var(--border-color); border-radius: 12px; font-size: 13px; font-weight: 500; background: var(--input-bg); color: var(--text-main); outline: none; margin-top: 6px; }
.custom-popup-textarea { min-height: 82px; resize: vertical; }
.custom-popup-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.custom-popup-footer.single-btn { grid-template-columns: 1fr; }
.btn-popup-cancel, .btn-popup-confirm, .btn-popup-danger, .btn-popup-success { padding: 11px 14px; border-radius: 12px; border: none; font-size: 12px; font-weight: 700; cursor: pointer; text-align: center; }
.btn-popup-cancel { background: var(--input-bg); color: var(--text-main); border: 1px solid var(--border-color); }
.btn-popup-confirm { background: var(--color-primary); color: #ffffff; }
.btn-popup-danger { background: #ef4444; color: #ffffff; }
.btn-popup-success { background: #16a34a; color: #ffffff; }

/* =========================================
   WELCOME POPUP & KOTAK WARNING TRANSPARAN
   ========================================= */
.welcome-popup-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.welcome-popup-lead {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    text-align: center;
    color: var(--text-main);
}

.welcome-warning-box {
    width: 100%;
    text-align: center;
    background: rgba(239, 68, 68, 0.14);
    border: 1.5px solid rgba(239, 68, 68, 0.38);
    border-radius: 12px;
    padding: 10px 12px;
}

body.dark-mode .welcome-warning-box {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(248, 113, 113, 0.42);
}

.welcome-warning-title {
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    color: #b91c1c;
    margin-bottom: 3px;
}

body.dark-mode .welcome-warning-title {
    color: #fca5a5;
}

.welcome-warning-text {
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
    color: #991b1b;
}

body.dark-mode .welcome-warning-text {
    color: #fecaca;
}

.welcome-wa-btn {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    background: #16a34a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 9px 12px;
    border-radius: 10px;
}

.welcome-dont-show-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    text-align: center;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    margin-top: 2px;
}

.welcome-dont-show-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--color-primary, #1d4ed8);
}

.detail-info-card {
    background: var(--summary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.6;
    font-weight: 500;
    margin-bottom: 14px;
}

.detail-benefit-card {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    color: #065f46;
    line-height: 1.6;
    font-weight: 700;
    margin-bottom: 14px;
}

body.dark-mode .detail-benefit-card {
    background: #064e3b;
    border-color: #047857;
    color: #a7f3d0;
}

.detail-kualifikasi-card {
    background: var(--summary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

/* CEKLIS HIJAU (DESKRIPSI, BENEFIT & KUALIFIKASI) */
.loker-check-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.loker-check-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 12.5px;
    line-height: 1.45;
    font-weight: 600;
}

.loker-check-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 999px;
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #86efac;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    margin-top: 1px;
}

body.dark-mode .loker-check-icon {
    background: rgba(22, 163, 74, 0.22);
    color: #86efac;
    border-color: #22c55e;
}

.loker-check-text {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.loker-check-empty {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
}

.modal-action-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.primary-apply-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-apply-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
    padding: 13px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    box-shadow: var(--shadow-brutal-sm);
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-apply-primary:active {
    transform: scale(0.98);
    opacity: 0.92;
}

.btn-wa-main { background: #16a34a; }
.btn-email-main { background: var(--color-primary); }
.btn-web-main { background: #0284c7; }

.secondary-tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-tool-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--input-bg);
    border: 1.5px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 12px;
    border-radius: 11px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-tool-outline:hover {
    border-color: var(--color-primary);
    background: var(--color-accent);
    color: var(--color-primary);
}

.btn-report-subtle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #ef4444;
    padding: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 2px;
}

/* =========================================
   POPUP KONFIRMASI HAPUS & PEMBERSIHAN MASSAL
   ========================================= */
@keyframes popupShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.confirm-delete-box {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 14px;
    text-align: center;
    animation: popupShake 0.38s ease;
}

body.dark-mode .confirm-delete-box {
    background: rgba(127, 29, 29, 0.25);
    border-color: #991b1b;
}

.confirm-delete-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 8px auto;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #fca5a5;
}

body.dark-mode .confirm-delete-icon {
    background: #7f1d1d;
    color: #fca5a5;
    border-color: #b91c1c;
}

.confirm-delete-count {
    font-size: 16px;
    font-weight: 900;
    color: #b91c1c;
    margin-bottom: 4px;
}

body.dark-mode .confirm-delete-count {
    color: #fca5a5;
}

.confirm-delete-desc {
    font-size: 12px;
    color: #7f1d1d;
    line-height: 1.45;
    font-weight: 600;
}

body.dark-mode .confirm-delete-desc {
    color: #fecaca;
}

.expired-preview-list {
    max-height: 155px;
    overflow-y: auto;
    background: var(--summary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px 10px;
    margin-top: 10px;
    text-align: left;
}

.expired-preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 11px;
}

.expired-preview-item:last-child {
    border-bottom: none;
}

.expired-preview-title {
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.expired-preview-sub {
    font-size: 10px;
    color: var(--text-muted);
}

.btn-bulk-cleanup {
    width: 100%;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    border: none;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-bulk-cleanup:active {
    transform: scale(0.98);
    opacity: 0.92;
}

/* =========================================
   PANEL ADMIN COMPACT (LOKER & KELOLA PT)
   ========================================= */
.admin-compact-list {
    gap: 8px;
}

.admin-stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}

.admin-stat-pill {
    padding: 7px 6px;
    border-radius: 11px;
    text-align: center;
}

.admin-stat-val {
    font-size: 15px;
    font-weight: 900;
    line-height: 1.15;
}

.admin-stat-lbl {
    font-size: 9px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.admin-compact-search {
    padding: 8px 11px;
    font-size: 12px;
    border-radius: 10px;
}

.admin-loker-card {
    padding: 11px 12px;
    border-radius: 13px;
}

.admin-loker-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.admin-loker-main {
    flex: 1;
    min-width: 0;
}

.admin-loker-tags {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    font-size: 10px;
    margin-bottom: 3px;
}

.admin-loker-pref {
    font-weight: 800;
    color: var(--color-primary);
}

.admin-loker-loc {
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.admin-loker-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
    margin-bottom: 0;
}

.admin-loker-top-btns {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.admin-loker-subrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 11px;
}

.admin-loker-pt {
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-loker-exp {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.admin-loker-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.22);
    border-radius: 8px;
    padding: 4px 8px;
    margin-bottom: 6px;
    font-size: 10px;
    flex-wrap: wrap;
}

.admin-loker-stats-total {
    font-weight: 900;
    color: #6d28d9;
}

body.dark-mode .admin-loker-stats-total {
    color: #c4b5fd;
}

.admin-loker-stats-detail {
    font-weight: 700;
    color: var(--text-muted);
}

.admin-loker-actions {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
}

.admin-btn-compact {
    padding: 5px 6px;
    font-size: 10px;
    border-radius: 7px;
    white-space: nowrap;
}

.admin-loker-actions .admin-btn-compact {
    padding: 5px 2px;
    text-align: center;
}

.admin-pt-toolbar {
    margin-bottom: 8px;
}

.admin-pt-card {
    padding: 9px 11px;
    border-radius: 12px;
}

.admin-pt-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.admin-pt-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.admin-pt-logo {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    font-size: 12px;
}

.admin-pt-meta {
    min-width: 0;
    flex: 1;
}

.admin-pt-name {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-pt-sub {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-pt-actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}
