*{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Segoe UI',Arial,sans-serif;background:#F0F4F8;color:#1a1a2e;font-size:14px;line-height:1.5}

/* === LOGIN PAGE WITH BACKGROUND === */
.login-container{
  min-height:100vh;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  position:relative;
  overflow:hidden;
  background:#0C3B6E;
}

/* Gambar background — fixed, cover penuh, tidak terpotong */
.login-bg-img{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center bottom;
  z-index:0;
  display:block;
  pointer-events:none;
  user-select:none;
}

/* Overlay gradient tipis di atas gambar */
.login-overlay{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:linear-gradient(135deg,rgba(12,59,110,0.72) 0%,rgba(24,95,165,0.62) 100%);
  z-index:1;
  pointer-events:none;
}

.login-box{
  background:transparent;
  border-radius:0;
  box-shadow:none;
  max-width:100%;
  width:100%;
  overflow:visible;
  position:relative;
  z-index:2;
}

.login-header{
  background:transparent;
  color:#fff;
  padding:32px 36px 24px;
  text-align:center;
}


.login-logos{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:14px;
  margin-bottom:24px;
  padding:0;
}

.login-logo-img{
  height:70px;
  width:auto;
  max-width:140px;
  object-fit:contain;
}

.login-header h1{
  font-size:22px;
  font-weight:700;
  margin-bottom:4px;
  letter-spacing:.4px;
  color:#0C3B6E;
}

.login-header .subtitle{
  font-size:13px;
  color:#64748B;
  letter-spacing:.3px;
  text-transform:uppercase;
  margin-bottom:16px;
}

.organizer-badge{
  display:inline-block;
  background:#E8F4F8;
  color:#0C3B6E;
  padding:8px 20px;
  border-radius:20px;
  font-size:12px;
  border:1.5px solid #B5D4F4;
  font-weight:600;
  letter-spacing:.3px;
}

.login-body{padding:36px 36px 32px}

.login-error{
  background:#FDEDED;
  color:#791F1F;
  padding:14px 18px;
  border-radius:10px;
  font-size:13px;
  margin-bottom:24px;
  display:none;
  border-left:4px solid #E24B4A;
  font-weight:600;
}
.login-error.show{display:block}

.login-field{margin-bottom:22px}
.login-field label{
  display:block;
  font-size:12px;
  font-weight:700;
  color:#334155;
  margin-bottom:8px;
  letter-spacing:.3px;
  text-transform:uppercase;
}

.login-field input{
  width:100%;
  padding:14px 18px;
  border:2px solid #E2E8F0;
  border-radius:10px;
  font-size:15px;
  font-family:inherit;
  transition:all .2s;
  background:#F8FAFC;
}
.login-field input:focus{
  outline:none;
  border-color:#1A5EA8;
  background:#fff;
  box-shadow:0 0 0 4px rgba(26,94,168,0.1);
}

.login-btn{
  width:100%;
  padding:16px;
  background:#0C3B6E;
  color:#fff;
  border:none;
  border-radius:10px;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  transition:all .2s;
  letter-spacing:.8px;
  text-transform:uppercase;
  margin-top:8px;
}
.login-btn:hover{
  background:#185FA5;
  transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(12,59,110,0.4);
}
.login-btn:active{transform:translateY(0)}

.login-footer{
  padding:24px 36px;
  background:transparent;
  text-align:center;
  font-size:12px;
  color:#94A3B8;
  border-top:none;
}
.login-footer strong{color:#334155;font-weight:700}

.login-hint{
  background:#EBF3FB;
  border:1px solid #B5D4F4;
  border-radius:10px;
  padding:18px;
  margin-top:22px;
}
.login-hint-title{
  font-size:11px;
  font-weight:700;
  color:#0C447C;
  text-transform:uppercase;
  letter-spacing:.6px;
  margin-bottom:12px;
}
.login-hint-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 0;
  border-bottom:1px solid #D6E4F5;
  font-size:13px;
}
.login-hint-item:last-child{border-bottom:none}
.login-hint-role{
  min-width:85px;
  padding:5px 12px;
  border-radius:6px;
  font-size:11px;
  font-weight:700;
  text-align:center;
}
.hint-admin{background:#EBF3FB;color:#0C3B6E;border:1px solid #85B7EB}
.hint-trainer{background:#E1F5EE;color:#085041;border:1px solid #5DCAA5}
.hint-peserta{background:#FEF3E2;color:#633806;border:1px solid #FAC775}
.login-hint-un{font-family:monospace;font-weight:700;color:#334155;flex:1}
.login-hint-pw{font-family:monospace;color:#94A3B8;font-size:12px}

/* MAIN APP */
#main-app{display:none}
#main-app.show{display:block}
.app-container{max-width:1210px;margin:0 auto;padding:24px 24px}

/* Session Bar */
.session-bar{
  background:#fff;
  border:1px solid #E2E8F0;
  border-radius:12px;
  padding:14px 24px;
  margin-bottom:24px;
  display:flex;
  align-items:center;
  gap:14px;
  box-shadow:0 2px 8px rgba(0,0,0,0.04);
}
.sb-avatar{
  width:44px;
  height:44px;
  background:linear-gradient(135deg,#0C3B6E,#185FA5);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:16px;
  font-weight:700;
  flex-shrink:0;
  border:2px solid #BDD7F5;
}
.sb-info{flex:1}
.sb-name{font-size:16px;font-weight:700;color:#0C3B6E}
.sb-role{
  font-size:12px;
  color:#64748B;
  margin-top:2px;
  display:inline-block;
  padding:2px 10px;
  border-radius:12px;
  background:#F8FAFC;
  border:1px solid #E2E8F0;
}
.sb-logout{
  padding:10px 20px;
  background:#FDEDED;
  color:#791F1F;
  border:1.5px solid #E24B4A;
  border-radius:8px;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  font-family:inherit;
  transition:all .2s;
}
.sb-logout:hover{background:#E24B4A;color:#fff}
.sb-print-btn{
  padding:10px 20px;
  background:#0C3B6E;
  color:#fff;
  border:1.5px solid #185FA5;
  border-radius:8px;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  font-family:inherit;
  transition:all .2s;
  margin-left:8px;
}
.sb-print-btn:hover{background:#185FA5;color:#fff;transform:translateY(-1px);box-shadow:0 4px 14px rgba(12,59,110,0.3)}

/* ===== PDF PRINT WINDOW STYLES ===== */
#pdf-preview-overlay{
  display:none;
  position:fixed;top:0;left:0;width:100%;height:100%;
  background:rgba(0,0,0,0.75);
  z-index:9999;
  align-items:center;
  justify-content:center;
  flex-direction:column;
}
#pdf-preview-overlay.open{display:flex}
#pdf-print-frame{
  background:#fff;
  width:794px;
  max-height:90vh;
  overflow-y:auto;
  border-radius:12px;
  box-shadow:0 32px 80px rgba(0,0,0,0.6);
}
.pdf-ctrl-bar{
  position:fixed;
  top:20px;right:20px;
  display:flex;gap:10px;
  z-index:10001;
}
.pdf-ctrl-bar button{
  padding:10px 22px;
  border:none;border-radius:8px;
  font-size:14px;font-weight:700;
  cursor:pointer;font-family:inherit;
  transition:all .2s;
}
.pdf-btn-print{background:#0C3B6E;color:#fff}
.pdf-btn-print:hover{background:#185FA5}
.pdf-btn-close{background:#fff;color:#334155;border:2px solid #E2E8F0}
.pdf-btn-close:hover{background:#F1F5F9}

@media print {
  /* Sembunyikan semua elemen kecuali area cetak */
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }
  body > * { display: none !important; }
  #pdf-preview-overlay {
    display: block !important;
    position: static !important;
    background: transparent !important;
    width: 100% !important;
    height: auto !important;
  }
  #pdf-print-frame {
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  #pdf-print-area {
    display: block !important;
    position: static !important;
    width: 100% !important;
    background: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }
  #pdf-print-area * { overflow: visible !important; }
  /* Cegah section terpotong / jeda kosong antar bagian */
  #pdf-print-area table { page-break-inside: auto !important; }
  #pdf-print-area thead { display: table-header-group !important; }
  #pdf-print-area tbody tr { page-break-inside: avoid !important; break-inside: avoid !important; }
  #pdf-print-area [style*="page-break-inside:avoid"] { page-break-inside: avoid !important; break-inside: avoid !important; }
  #pdf-print-area [style*="break-inside:avoid"] { page-break-inside: avoid !important; break-inside: avoid !important; }
  #pdf-print-area [style*="page-break-before:avoid"] { page-break-before: avoid !important; break-before: avoid !important; }
  #pdf-print-area [style*="break-before:avoid"] { page-break-before: avoid !important; break-before: avoid !important; }
  /* Pastikan header tidak memicu page break setelahnya */
  #pdf-print-area > div > div:first-child { page-break-after: avoid !important; break-after: avoid !important; }
  .pdf-ctrl-bar { display: none !important; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}

/* Header */
.main-header{
  background:#0C3B6E;
  color:#fff;
  border-radius:12px;
  padding:24px 32px;
  margin-bottom:24px;
  box-shadow:0 4px 12px rgba(12,59,110,0.2);
  display:flex;
  align-items:center;
  gap:24px;
}
.main-header-logos{
  display:flex;
  align-items:center;
  gap:14px;
  flex-shrink:0;
  padding-right:24px;
  border-right:1px solid rgba(255,255,255,0.2);
}
.main-header-logo{
  height:52px;
  width:auto;
  max-width:160px;
  object-fit:contain;
  border-radius:6px;
  background:#fff;
  padding:4px 6px;
}
.main-header-logo.deekai{
  height:52px;
  max-width:52px;
  border-radius:50%;
  padding:2px;
}
.main-header-text{flex:1}
.main-header h1{font-size:22px;font-weight:700;margin-bottom:6px;letter-spacing:.5px}
.main-header p{font-size:13px;color:#BDD7F5;letter-spacing:.3px}

/* Cards */
.card{
  background:#fff;
  border:1px solid #E2E8F0;
  border-radius:12px;
  margin-bottom:24px;
  overflow:hidden;
  box-shadow:0 2px 8px rgba(0,0,0,0.04);
}
.card-header{
  padding:16px 24px;
  display:flex;
  align-items:center;
  gap:12px;
  border-bottom:1px solid #E2E8F0;
  background:#F8FAFC;
}
.card-header h3{font-size:16px;font-weight:700;color:#0C3B6E;flex:1}
.card-body{padding:28px;overflow-x:auto}

/* Tab Navigation */
.tab-nav{
  background:#fff;
  border:1px solid #E2E8F0;
  border-radius:12px;
  margin-bottom:24px;
  overflow:hidden;
  display:flex;
  box-shadow:0 2px 8px rgba(0,0,0,0.04);
}
.tab-btn{
  flex:1;
  padding:16px 20px;
  background:none;
  border:none;
  font-size:13px;
  font-weight:700;
  color:#64748B;
  cursor:pointer;
  transition:all .2s;
  border-bottom:3px solid transparent;
  text-transform:uppercase;
  letter-spacing:.5px;
  font-family:inherit;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.tab-btn:hover{background:#F8FAFC;color:#0C3B6E}
.tab-btn.active{color:#0C3B6E;background:#F8FAFC;border-bottom:3px solid #0C3B6E}
.tab-btn svg{width:18px;height:18px}
.tab-content{display:none}
.tab-content.active{display:block}

/* Stats */
.admin-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:24px}
.stat-card{background:#F8FAFC;border:1px solid #E2E8F0;border-radius:10px;padding:20px;text-align:center}
.stat-num{font-size:36px;font-weight:700;color:#0C3B6E;line-height:1}
.stat-label{font-size:12px;color:#64748B;text-transform:uppercase;letter-spacing:.5px;margin-top:8px}

/* Ranking Table */
.rank-table{width:100%;border-collapse:collapse;table-layout:fixed}
.rank-table th{
  padding:12px 16px;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.6px;
  color:#fff;
  background:#0C3B6E;
  text-align:left;
}
.rank-table td{padding:14px 16px;font-size:14px;border-bottom:1px solid #F1F5F9;vertical-align:middle;white-space:nowrap}
.rank-table tbody tr:hover td{background:#F8FAFC}
.rank-num{
  width:36px;
  height:36px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  font-weight:700;
}
.rn1{background:#FEF3E2;color:#633806;border:2px solid #EF9F27}
.rn2{background:#F1F5F8;color:#444441;border:2px solid #B4B2A9}
.rn3{background:#FAECE7;color:#712B13;border:2px solid #D85A30}
.rno{background:#F8FAFC;color:#64748B;border:1.5px solid #E2E8F0}
.perf-bar{flex:1;height:8px;background:#E2E8F0;border-radius:4px;overflow:hidden;max-width:200px}
.perf-fill{height:100%;border-radius:4px}
.perf-val{font-size:14px;font-weight:700;min-width:45px;text-align:right}

/* Status Badge */
.status-badge{display:inline-block;padding:4px 12px;border-radius:14px;font-size:12px;font-weight:700;white-space:normal;word-break:break-word;text-align:left;max-width:160px}
.sb-g{background:#EAF3DE;color:#27500A;border:1px solid #A3D566}
.sb-b{background:#EBF3FB;color:#0C447C;border:1px solid #85B7EB}
.sb-y{background:#FEF3E2;color:#633806;border:1px solid #FAC775}
.sb-r{background:#FDEDED;color:#791F1F;border:1px solid #E24B4A}

/* Forms */
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
.form-group{margin-bottom:16px}
.form-group label{
  display:block;
  font-size:12px;
  font-weight:700;
  color:#334155;
  margin-bottom:8px;
  text-transform:uppercase;
  letter-spacing:.3px;
}
.form-group input,.form-group select,.form-group textarea{
  width:100%;
  padding:10px 14px;
  border:1.5px solid #E2E8F0;
  border-radius:8px;
  font-size:14px;
  font-family:inherit;
  background:#F8FAFC;
}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{
  outline:none;
  border-color:#1A5EA8;
  background:#fff;
}
.btn{
  padding:10px 20px;
  border:none;
  border-radius:8px;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  transition:all .2s;
  font-family:inherit;
  text-transform:uppercase;
  letter-spacing:.5px;
}
.btn-primary{background:#0C3B6E;color:#fff}
.btn-primary:hover{background:#185FA5;transform:translateY(-1px)}
.btn-success{background:#0F6E56;color:#fff}
.btn-success:hover{background:#085041}

/* Data Table */
.data-table{width:100%;border-collapse:collapse;margin-top:16px;table-layout:auto}
.data-table th,.data-table td{vertical-align:middle}
.data-table th{
  padding:12px 16px;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.6px;
  color:#fff;
  background:#0C3B6E;
  text-align:left;
  border-bottom:2px solid #185FA5;
}
.data-table td{padding:12px 16px;font-size:13px;border-bottom:1px solid #E2E8F0}
.data-table tbody tr:hover{background:#F8FAFC}
.data-table tbody tr:nth-child(even){background:#FAFBFC}
.data-table tbody tr:nth-child(even):hover{background:#F1F5F9}

/* Action Buttons */
.action-btns{display:flex;gap:6px}
.btn-sm{padding:6px 12px;font-size:11px;border-radius:6px}
.btn-edit{background:#EBF3FB;color:#0C3B6E;border:1px solid #85B7EB}
.btn-edit:hover{background:#0C3B6E;color:#fff}
.btn-delete{background:#FDEDED;color:#791F1F;border:1px solid #E24B4A}
.btn-delete:hover{background:#E24B4A;color:#fff}

/* ===== MODAL DETAIL PESERTA ===== */
.modal-overlay{
  position:fixed;top:0;left:0;width:100%;height:100%;
  background:rgba(12,59,110,0.55);
  z-index:1000;
  display:flex;align-items:center;justify-content:center;
  padding:20px;
  opacity:0;pointer-events:none;
  transition:opacity .25s;
}
.modal-overlay.open{opacity:1;pointer-events:all}
.modal-box{
  background:#fff;
  border-radius:16px;
  max-width:780px;width:100%;
  max-height:88vh;
  overflow-y:auto;
  box-shadow:0 24px 72px rgba(0,0,0,0.35);
  transform:translateY(24px);
  transition:transform .25s;
}
.modal-overlay.open .modal-box{transform:translateY(0)}
.modal-head{
  background:#0C3B6E;
  color:#fff;
  padding:24px 28px;
  border-radius:16px 16px 0 0;
  position:sticky;top:0;z-index:2;
  display:flex;align-items:flex-start;gap:16px;
}
.modal-head-info{flex:1}
.modal-head h2{font-size:20px;font-weight:700;margin-bottom:4px}
.modal-head p{font-size:13px;color:#BDD7F5}
.modal-close{
  background:rgba(255,255,255,0.15);
  border:none;color:#fff;
  width:36px;height:36px;
  border-radius:50%;font-size:18px;
  cursor:pointer;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  transition:background .2s;
}
.modal-close:hover{background:rgba(255,255,255,0.3)}
.modal-print-btn{
  background:rgba(255,255,255,0.18);
  border:1.5px solid rgba(255,255,255,0.4);
  color:#fff;
  padding:8px 16px;
  border-radius:8px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  font-family:inherit;
  display:flex;align-items:center;
  transition:all .2s;
  flex-shrink:0;
  letter-spacing:.3px;
}
.modal-print-btn:hover{background:rgba(255,255,255,0.32);border-color:rgba(255,255,255,0.7);transform:translateY(-1px)}
.modal-excel-btn{
  background:#1a7344;
  border:1.5px solid rgba(255,255,255,0.4);
  color:#fff;
  padding:8px 16px;
  border-radius:8px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  font-family:inherit;
  display:flex;align-items:center;
  transition:all .2s;
  flex-shrink:0;
  letter-spacing:.3px;
}
.modal-excel-btn:hover{background:#145c36;border-color:rgba(255,255,255,0.7);transform:translateY(-1px)}

/* Penilaian form inside modal */
.modal-penilaian-wrap{
  border-top:2px solid #E2E8F0;
  margin-top:24px;
  padding-top:20px;
}
.mpw-toggle{
  width:100%;padding:14px 20px;
  background:#0C3B6E;color:#fff;
  border:none;border-radius:10px;
  font-size:14px;font-weight:700;
  cursor:pointer;font-family:inherit;
  letter-spacing:.4px;
  display:flex;align-items:center;justify-content:center;gap:10px;
  transition:background .2s;
}
.mpw-toggle:hover{background:#185FA5}
.mpw-form{display:none;margin-top:20px}
.mpw-form.open{display:block}
.mpw-section-bar{
  background:#0C3B6E;color:#fff;
  padding:10px 18px;border-radius:8px;
  margin:20px 0 14px;font-weight:700;
  font-size:13px;letter-spacing:.4px;
}
.mpw-section-bar.green{background:#085041}
.mpw-section-bar.dark{background:#1E293B}
.mpw-aspek-table{width:100%;border-collapse:collapse;font-size:13px}
.mpw-aspek-table th{
  padding:10px 14px;font-size:11px;font-weight:700;
  text-transform:uppercase;letter-spacing:.5px;
  color:#fff;background:#0C3B6E;text-align:left;
}
.mpw-aspek-table th.green{background:#085041}
.mpw-aspek-table td{padding:12px 14px;border-bottom:1px solid #F1F5F9;vertical-align:middle}
.mpw-radio-group{display:flex;gap:8px;justify-content:center}
.mpw-radio-group label{
  display:flex;flex-direction:column;align-items:center;gap:3px;cursor:pointer;
}
.mpw-radio-group input{accent-color:#0C3B6E;width:15px;height:15px}
.mpw-radio-group span{font-size:11px;font-weight:700;color:#334155}
.mpw-score-cell{font-weight:700;font-size:14px;color:#0C3B6E;text-align:center}
.mpw-total-row td{background:#0C3B6E;color:#fff;font-weight:700;padding:12px 14px}
.mpw-total-row.green td{background:#085041}
.mpw-total-val{text-align:center;color:#FFD700;font-size:16px}
.mpw-total-val.green{color:#A3D566}
.mpw-akhir-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0}
.mpw-akhir-box{background:#F8FAFC;border:2px solid #0C3B6E;border-radius:10px;padding:18px;text-align:center}
.mpw-akhir-box label{font-size:11px;font-weight:700;color:#64748B;text-transform:uppercase;letter-spacing:.4px;display:block;margin-bottom:6px}
.mpw-akhir-val{font-size:42px;font-weight:700;color:#0C3B6E;line-height:1}
.mpw-akhir-cat{border-color:#E2E8F0}
.mpw-cat-label{font-size:17px;font-weight:700;color:#94A3B8}
.mpw-cat-range{font-size:12px;color:#94A3B8;margin-top:4px}
.mpw-status-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin:14px 0 20px}
.mpw-status-chip{
  padding:14px 10px;border-radius:10px;
  border:2px solid #E2E8F0;text-align:center;
  cursor:pointer;transition:all .2s;
}
.mpw-textarea-group{margin-bottom:14px}
.mpw-textarea-group label{display:block;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.3px;color:#334155;margin-bottom:6px}
.mpw-textarea-group textarea{width:100%;padding:10px 14px;border:1.5px solid #E2E8F0;border-radius:8px;font-size:13px;font-family:inherit;background:#F8FAFC;resize:vertical}
.mpw-textarea-group textarea:focus{outline:none;border-color:#1A5EA8;background:#fff}
.mpw-action-row{display:flex;gap:12px;margin-top:20px}
.mpw-save-btn{
  flex:1;padding:14px;background:#0F6E56;color:#fff;
  border:none;border-radius:8px;font-size:14px;font-weight:700;
  cursor:pointer;font-family:inherit;transition:all .2s;letter-spacing:.4px;
}
.mpw-save-btn:hover{background:#085041}
.mpw-reset-btn{
  padding:14px 24px;background:#F1F5F9;color:#64748B;
  border:1.5px solid #E2E8F0;border-radius:8px;font-size:13px;
  font-weight:700;cursor:pointer;font-family:inherit;
}
.mpw-notif{
  padding:12px 18px;border-radius:8px;font-size:13px;font-weight:600;
  margin-top:14px;display:none;
}
.mpw-notif.success{background:#EAF3DE;color:#27500A;border:1px solid #A3D566;display:block}
.mpw-notif.error{background:#FDEDED;color:#791F1F;border:1px solid #E24B4A;display:block}
.modal-body{padding:28px}
.modal-score-hero{
  display:grid;grid-template-columns:auto 1fr;gap:24px;
  background:#F8FAFC;border:1px solid #E2E8F0;
  border-radius:12px;padding:24px;margin-bottom:24px;
  align-items:center;
}
.modal-score-circle{
  width:90px;height:90px;border-radius:50%;
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  font-size:26px;font-weight:700;
  border:4px solid;
  flex-shrink:0;
}
.modal-score-details{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.modal-score-item label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:#94A3B8;display:block;margin-bottom:3px}
.modal-score-item span{font-size:14px;font-weight:600;color:#334155}
.modal-section-title{
  font-size:13px;font-weight:700;text-transform:uppercase;
  letter-spacing:.5px;color:#0C3B6E;
  margin:22px 0 12px;
  padding-bottom:8px;
  border-bottom:2px solid #E2E8F0;
}
.aspek-grid{display:grid;gap:10px}
.aspek-row{
  display:grid;grid-template-columns:1fr auto auto;
  gap:12px;align-items:center;
  background:#F8FAFC;border-radius:8px;padding:12px 16px;
  border:1px solid #E2E8F0;
}
.aspek-name{font-size:13px;font-weight:600;color:#334155}
.aspek-sub{font-size:11px;color:#94A3B8;margin-top:2px}
.aspek-bar-wrap{display:flex;align-items:center;gap:10px}
.aspek-bar-bg{width:120px;height:8px;background:#E2E8F0;border-radius:4px;overflow:hidden}
.aspek-bar-fill{height:100%;border-radius:4px;transition:width .5s}
.aspek-score-val{font-size:13px;font-weight:700;min-width:36px;text-align:right}
.feedback-box{
  background:#EBF3FB;border:1px solid #B5D4F4;
  border-radius:10px;padding:20px;margin-bottom:14px;
}
.feedback-box h4{font-size:13px;font-weight:700;color:#0C3B6E;margin-bottom:10px;display:flex;align-items:center;gap:8px}
.feedback-box p{font-size:13px;color:#334155;line-height:1.7}
.feedback-green{background:#E1F5EE;border-color:#5DCAA5}
.feedback-green h4{color:#085041}
.feedback-orange{background:#FEF3E2;border-color:#FAC775}
.feedback-orange h4{color:#633806}
.rank-row-clickable{cursor:pointer;transition:background .15s}
.rank-row-clickable:hover td{background:#EBF3FB !important}
.rank-row-clickable td:first-child::after{
  content:'';
}

/* Access Denied */
.access-denied{
  background:#FDEDED;
  border:2px solid #E24B4A;
  border-radius:12px;
  padding:32px;
  text-align:center;
  margin:40px auto;
  max-width:600px;
}
.access-denied svg{width:64px;height:64px;margin-bottom:20px;stroke:#E24B4A}
.access-denied h2{font-size:22px;color:#791F1F;margin-bottom:12px;font-weight:700}
.access-denied p{font-size:14px;color:#A32D2D;margin-bottom:24px}


/* ===== LANDING PAGE ===== */
#landing-page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #0C3B6E;
}
.landing-bg-img {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.landing-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    160deg,
    rgba(5,20,50,0.82) 0%,
    rgba(12,59,110,0.70) 50%,
    rgba(8,35,75,0.85) 100%
  );
  z-index: 1;
}
.landing-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  max-width: 760px;
  width: 100%;
  animation: landingFadeIn 1.2s ease both;
}
@keyframes landingFadeIn {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.landing-logos {
  display: none;
}
.landing-logo-topleft {
  position: absolute;
  top: 24px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
  animation: landingFadeIn 1s ease 0.2s both;
}
.landing-logo-img {
  height: 72px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.5));
}
.landing-divider-vert {
  width: 2px;
  height: 56px;
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
}
.landing-tag {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  color: #BDD7F5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 8px 22px;
  border-radius: 50px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  animation: landingFadeIn 1s ease 0.35s both;
}
.landing-title {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(28px, 5vw, 50px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.18;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
  animation: landingFadeIn 1s ease 0.45s both;
}
.landing-title .title-highlight {
  color: #FFD166;
}
.landing-subtitle {
  font-size: clamp(14px, 2.2vw, 18px);
  color: rgba(255,255,255,0.78);
  margin-bottom: 52px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.3px;
  max-width: 580px;
  animation: landingFadeIn 1s ease 0.6s both;
}
.landing-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #FFD166;
  color: #0C3B6E;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 18px 52px;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(255,209,102,0.4), 0 2px 8px rgba(0,0,0,0.3);
  transition: all 0.28s cubic-bezier(.4,0,.2,1);
  font-family: inherit;
  animation: landingFadeIn 1s ease 0.75s both;
  position: relative;
  overflow: hidden;
}
.landing-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 52px rgba(255,209,102,0.55), 0 4px 16px rgba(0,0,0,0.3);
  background: #ffe08a;
}
.landing-btn:active { transform: translateY(0) scale(0.98); }
.landing-footer-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5,15,40,0.55);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.5px;
  gap: 6px;
}
.landing-footer-bar strong { color: rgba(255,255,255,0.7); font-weight: 700; }
.landing-rail-accent {
  position: absolute;
  bottom: 52px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #FFD166 30%, #FFD166 70%, transparent 100%);
  z-index: 2;
  opacity: 0.5;
  animation: railSlide 3s ease-in-out infinite alternate;
}
@keyframes railSlide {
  from { opacity: 0.3; transform: scaleX(0.8); }
  to   { opacity: 0.65; transform: scaleX(1); }
}
.page-out {
  animation: pageOut 0.5s ease forwards;
}
@keyframes pageOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-18px); }
}
