:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#102c59;background:#f8fbff}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;overflow-y:auto;overflow-x:hidden;background:radial-gradient(circle at 20% 20%,#fff 0,#f7fbff 44%,#ecf5ff 100%)}
button,input{font:inherit}
.ambient{position:fixed;border-radius:999px;filter:blur(12px);pointer-events:none}
.a1{width:520px;height:520px;background:rgba(37,99,235,.06);right:-180px;top:-180px}
.a2{width:420px;height:420px;background:rgba(14,165,233,.05);left:-180px;bottom:-180px}
.landing{max-width:1440px;margin:auto;height:100vh;padding:24px 5vw;display:flex;flex-direction:column;justify-content:space-between;position:relative}
.brand{appearance:none;border:0;background:transparent;display:flex;align-items:center;gap:10px;color:#0c46a3;padding:0;cursor:default;flex-shrink:0}
.brandBadge{background:linear-gradient(135deg,#0d5be9,#0284c7);color:#fff;font-weight:900;font-size:11px;padding:3px 7px;border-radius:6px;box-shadow:0 2px 6px rgba(13,91,233,0.22);letter-spacing:.5px}
.brand strong,.brand small{display:block;text-align:left}
.brand strong{font-size:19px;letter-spacing:-.02em}
.brand small{font-size:11px;color:#7e8ea7;margin-top:1px}
.hero{flex:1;display:grid;grid-template-columns:1.15fr 0.85fr;align-items:center;gap:48px;min-height:0;max-height:calc(100vh - 100px)}
.copy{padding-right:1vw;z-index:2;display:flex;flex-direction:column;justify-content:center}
.identity{display:inline-flex;align-self:flex-start;background:#e9f8ef;color:#147b43;border:1px solid #d3f0dd;border-radius:999px;padding:6px 12px;font-size:12px;font-weight:750;margin-bottom:14px}
.hidden{display:none!important}
h1{margin:0 0 14px;font-size:clamp(26px,3.2vw,44px);line-height:1.15;letter-spacing:-.03em;color:#0644a3;font-weight:800}
.dialogBox{background:rgba(255,255,255,.9);backdrop-filter:blur(10px);border:1px solid #d4e3f5;border-radius:18px;padding:20px 24px;box-shadow:0 12px 34px rgba(12,45,92,.05);margin-bottom:20px;max-height:320px;overflow-y:auto;display:flex;flex-direction:column;gap:10px}
.dialogBox::-webkit-scrollbar{width:6px}
.dialogBox::-webkit-scrollbar-thumb{background:#c6d7ec;border-radius:999px}
.userQuery{font-size:13px;font-weight:600;color:#0b5be7;background:#eaf2ff;border-radius:10px;padding:7px 12px;align-self:flex-start;max-width:92%}
.dialogContent{font-size:16px;line-height:1.55;color:#203858;font-weight:500;word-break:break-word}
.chat-image-wrap{margin-top:10px;background:#f3f7fc;border:1px solid #dbe6f5;border-radius:14px;overflow:hidden;display:inline-flex;flex-direction:column;max-width:380px;box-shadow:0 6px 18px rgba(12,45,92,.06)}
.chat-embedded-image{width:100%;max-height:220px;object-fit:cover;display:block;cursor:pointer;transition:transform .2s,opacity .2s}
.chat-embedded-image:hover{opacity:.92;transform:scale(1.01)}
.img-caption{font-size:11.5px;color:#4c6280;padding:6px 12px;background:#e8f1fa;font-weight:600}
.actionArea{display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.btnRow{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.resetSpeechBtn{border:1px solid #cbdcee;background:#fff;color:#1c54a3;padding:10px 18px;border-radius:999px;font-size:13px;font-weight:700;cursor:pointer;transition:.2s;box-shadow:0 4px 12px rgba(12,45,92,.04)}
.resetSpeechBtn:hover{background:#f0f6ff;border-color:#0d5be9;color:#0b4bb9}
.stopAudioBtn{border:1px solid #fecaca;background:#fef2f2;color:#dc2626;padding:10px 18px;border-radius:999px;font-size:13px;font-weight:700;cursor:pointer;transition:.2s;box-shadow:0 4px 12px rgba(220,38,38,.08);animation:pulseStop 1.8s infinite}
@keyframes pulseStop{50%{box-shadow:0 0 0 4px rgba(239,68,68,.2)}}
.stopAudioBtn:hover{background:#fee2e2;border-color:#ef4444}
.newChatBtn{border:1px solid #cbdcee;background:#fff;color:#0c46a3;padding:10px 18px;border-radius:999px;font-size:13px;font-weight:700;cursor:pointer;transition:.2s;box-shadow:0 4px 12px rgba(12,45,92,.04)}
.newChatBtn:hover{background:#f0f6ff;border-color:#0d5be9}
.scanFaceBtn{border:1px solid #a7f3d0;background:#ecfdf5;color:#059669;padding:10px 18px;border-radius:999px;font-size:13px;font-weight:700;cursor:pointer;transition:.2s;box-shadow:0 4px 12px rgba(5,150,105,.08);display:inline-flex;align-items:center;gap:6px}
.scanFaceBtn:hover{background:#d1fae5;border-color:#10b981;color:#047857}
.activate{border:0;border-radius:999px;min-width:200px;height:62px;padding:0 28px;background:linear-gradient(135deg,#0d5be9,#0b73ec);color:white;font-size:20px;font-weight:800;box-shadow:0 14px 36px rgba(13,91,233,.24);cursor:pointer;display:inline-flex;gap:12px;align-items:center;justify-content:center;transition:background .2s,box-shadow .2s}
.activate:hover{box-shadow:0 16px 42px rgba(13,91,233,.32)}
.activate.active{background:linear-gradient(135deg,#0b8154,#10a56e)}
.statusDot{width:10px;height:10px;border-radius:50%;background:#b8d2ff;box-shadow:0 0 0 0 rgba(255,255,255,.5)}
.active .statusDot{background:#d9ffea;animation:pulseDot 1.5s infinite}
@keyframes pulseDot{50%{box-shadow:0 0 0 8px rgba(255,255,255,0)}}
.micro-status{font-size:12px;color:#8594a8;margin-left:4px}
.mascotWrap{height:100%;max-height:540px;display:flex;align-items:center;justify-content:center;position:relative;flex-shrink:0}
.mascot{max-height:min(500px,64vh);width:auto;max-width:100%;object-fit:contain;filter:drop-shadow(0 20px 28px rgba(34,76,130,.12));position:relative;z-index:2;user-select:none;pointer-events:auto;cursor:pointer;transition:transform .16s ease-out}
.mascot:active{transform:scale(0.95)}
.pulseRing{position:absolute;width:440px;height:440px;border-radius:50%;background:radial-gradient(circle,rgba(71,142,255,.07),rgba(71,142,255,0) 65%);top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none}
.topBar{display:flex;align-items:center;justify-content:space-between;width:100%;flex-shrink:0;z-index:3}
.langSelector{display:inline-flex;background:#e9f2fd;border:1px solid #cbe0f8;border-radius:999px;padding:3px;gap:4px}
.langBtn{border:0;background:transparent;color:#475569;font-size:12px;font-weight:700;padding:6px 14px;border-radius:999px;cursor:pointer;transition:.2s}
.langBtn:hover{color:#0d5be9}
.langBtn.active{background:#fff;color:#0d5be9;box-shadow:0 3px 10px rgba(13,91,233,.12)}
.adminBtn{border:1px solid #cbd5e1;background:#fff;color:#334155;padding:6px 14px;border-radius:999px;font-size:12px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;gap:6px;transition:.2s;box-shadow:0 2px 6px rgba(12,45,92,.04)}
.adminBtn:hover{background:#f1f5f9;border-color:#94a3b8;color:#0f172a}

.mascotInner{position:relative;display:flex;align-items:center;justify-content:center;animation:avatarBreathe 4s ease-in-out infinite;transform-origin:bottom center}
@keyframes avatarBreathe{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-6px) scale(1.008)}}

/* Mascot Talking State */
.mascotWrap.talking .mascotInner{animation:avatarTalk 0.45s ease-in-out infinite alternate}
@keyframes avatarTalk{0%{transform:translateY(0) rotate(0deg)}100%{transform:translateY(-5px) rotate(-1deg)}}

/* Energetic Soundwaves Aura when talking */
.auraWave{
  position:absolute;
  border-radius:50%;
  border:2px solid rgba(13,91,233,0.3);
  width:380px;
  height:380px;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%) scale(0.6);
  opacity:0;
  pointer-events:none;
}
.mascotWrap.talking .auraWave{
  animation:auraPulse 1.8s cubic-bezier(0.2,0.8,0.2,1) infinite;
}
.mascotWrap.talking .wave1{animation-delay:0s}
.mascotWrap.talking .wave2{animation-delay:0.6s}
.mascotWrap.talking .wave3{animation-delay:1.2s}
@keyframes auraPulse{
  0%{transform:translate(-50%,-50%) scale(0.6);opacity:0.8}
  100%{transform:translate(-50%,-50%) scale(1.35);opacity:0}
}

.mascotMoodBadge{
  position:absolute;
  bottom:10px;
  background:rgba(13,91,233,0.92);
  color:#fff;
  font-size:11px;
  font-weight:750;
  padding:5px 14px;
  border-radius:999px;
  backdrop-filter:blur(6px);
  box-shadow:0 8px 20px rgba(13,91,233,0.3);
  z-index:5;
  animation:pulseDot 1.6s infinite;
}

/* SKM Survey Styles */
.openSkmBtn{
  border:1px solid #fef08a;
  background:#fefce8;
  color:#ca8a04;
  padding:10px 16px;
  border-radius:999px;
  font-size:13px;
  font-weight:750;
  cursor:pointer;
  transition:.2s;
  box-shadow:0 4px 12px rgba(202,138,4,.08);
}
.openSkmBtn:hover{background:#fef9c3;border-color:#eab308;color:#a16207}

.skmCard{max-width:460px;padding:26px 28px}
.skmIconWrap{font-size:36px;margin-bottom:4px}
.skmStarGroup{display:flex;justify-content:center;gap:8px;margin:12px 0 6px}
.skmStar{border:0;background:transparent;font-size:36px;color:#cbd5e1;cursor:pointer;transition:transform .15s,color .15s;padding:0 2px}
.skmStar:hover{transform:scale(1.2)}
.skmStar.active{color:#f59e0b;filter:drop-shadow(0 2px 6px rgba(245,158,11,.35))}
.skmScoreLabel{font-size:13px;font-weight:750;color:#d97706;margin-bottom:12px;min-height:20px}
.skmTagsWrap{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:8px 0}
.skmTag{font-size:11.5px;font-weight:600;color:#475569;background:#f1f5f9;border:1px solid #e2e8f0;padding:5px 11px;border-radius:999px;cursor:pointer;transition:.15s}
.skmTag:hover{background:#e2e8f0}
.attachFileBtn{
  border:1px solid #cbd5e1;
  background:#fff;
  color:#334155;
  padding:10px 18px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  transition:.2s;
  box-shadow:0 4px 12px rgba(12,45,92,.04);
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.attachFileBtn:hover{
  background:#f1f5f9;
  border-color:#94a3b8;
  color:#0f172a;
}

/* File Live Preview & Verification Audit Card */
.fileAuditCard{
  margin-top:12px;
  background:#ffffff;
  border:1px solid #dbeafe;
  border-radius:14px;
  padding:14px 16px;
  box-shadow:0 6px 20px rgba(13,91,233,.06);
  display:flex;
  flex-direction:column;
  gap:10px;
  text-align:left;
}
.fileAuditHeader{
  display:flex;
  align-items:center;
  gap:10px;
  padding-bottom:10px;
  border-bottom:1px solid #f1f5f9;
  flex-wrap:wrap;
}
.fileAuditBadge{
  padding:4px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  margin-left:auto;
  letter-spacing:.02em;
}
.badge-memenuhi{background:#dcfce7;color:#15803d;border:1px solid #bbf7d0}
.badge-perlu-dilengkapi{background:#fef9c3;color:#a16207;border:1px solid #fef08a}
.badge-perlu-perbaikan{background:#fee2e2;color:#b91c1c;border:1px solid #fecaca}

.fileAuditChecklist{
  background:#f8fafc;
  border-radius:10px;
  padding:10px 14px;
  font-size:12.5px;
  line-height:1.6;
  color:#1e293b;
  border:1px solid #e2e8f0;
}
.fileAuditChecklist pre{
  margin:0;
  white-space:pre-wrap;
  font-family:inherit;
}
.btnPreviewDoc{
  background:#e0f2fe;
  color:#0369a1;
  border:1px solid #bae6fd;
  padding:6px 12px;
  border-radius:8px;
  font-size:11.5px;
  font-weight:750;
  cursor:pointer;
  transition:.15s;
  display:inline-flex;
  align-items:center;
  gap:5px;
}
.btnPreviewDoc:hover{
  background:#bae6fd;
  color:#0284c7;
}

.skmVoiceHint{
  background:#f0f9ff;
  border:1px solid #bae6fd;
  color:#0369a1;
  padding:8px 12px;
  border-radius:12px;
  font-size:11.5px;
  margin:4px 0 10px;
  display:flex;
  align-items:center;
  gap:8px;
  text-align:left;
  line-height:1.45;
}

.cameraHeaderWrap{
  display:flex;
  align-items:center;
  flex-shrink:0;
}
.cameraPip{
  position:relative;
  width:142px;
  height:94px;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(12,45,92,.12);
  border:2px solid #3b82f6;
  background:#051329;
  z-index:9;
  display:flex;
  flex-direction:column;
  cursor:grab;
  user-select:none;
  touch-action:none;
  transition:border-color .2s,box-shadow .2s;
}
.cameraPip.is-floating{
  position:fixed!important;
  bottom:24px;
  right:28px;
  z-index:99;
}
.cameraPip:hover{box-shadow:0 12px 30px rgba(12,45,92,.24);border-color:#60a5fa}
.cameraPip.dragging{cursor:grabbing;opacity:0.92;box-shadow:0 20px 45px rgba(12,45,92,.35);transition:none}
.cameraPip video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1);pointer-events:none}
.cameraStandby{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  background:radial-gradient(circle at 50% 50%, #0d2852 0%, #051329 100%);
  color:#94a3b8;
  pointer-events:none;
  transition:opacity .2s;
}
.cameraPip.active-stream .cameraStandby{
  opacity:0;
  pointer-events:none;
}
.cameraStatusBadge{position:absolute;bottom:5px;left:5px;right:5px;background:rgba(8,24,48,.82);backdrop-filter:blur(4px);border-radius:999px;padding:3px 8px;font-size:10px;font-weight:700;color:#fff;display:flex;align-items:center;gap:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.liveDot{width:6px;height:6px;border-radius:50%;background:#22c55e;box-shadow:0 0 6px #22c55e;flex-shrink:0;animation:pulseDot 1.5s infinite}
.modal{position:fixed;inset:0;background:rgba(6,24,49,.42);backdrop-filter:blur(8px);display:grid;place-items:center;z-index:10}
.modalCard{width:min(440px,92vw);background:white;border:1px solid #e3ebf5;border-radius:24px;padding:26px;box-shadow:0 30px 90px rgba(7,31,71,.22);position:relative;text-align:center}
.modalClose{position:absolute;right:14px;top:12px;border:0;background:#f3f6fa;border-radius:50%;width:34px;height:34px;font-size:22px;color:#6c7c92;cursor:pointer}
.loginMascot{width:68px;height:68px;object-fit:contain}
.modalCard h2{margin:8px 0 3px}
.modalCard p{margin:0 0 16px;color:#8592a5;font-size:13px}
.modalCard input{width:100%;margin:6px 0;border:1px solid #dbe4ee;background:#f9fbfd;border-radius:12px;padding:12px 13px;outline:0;box-sizing:border-box}
.modalCard form button{width:100%;margin-top:10px;border:0;border-radius:12px;padding:12px;background:#0b5be7;color:#fff;font-weight:800;cursor:pointer}
.formError{color:#b63232;font-size:12px;margin-top:10px;min-height:16px}

/* ================= RESPONSIVE DESIGN (PC, TABLET, HP) ================= */

/* Tablet (iPad & Medium Screens: 769px - 1024px) */
@media (max-width: 1024px) {
  .landing{height:auto;min-height:100vh;padding:20px 3vw}
  .hero{grid-template-columns:1.1fr 0.9fr;gap:28px;max-height:none}
  .mascot{max-height:min(420px,46vh)}
  .dialogBox{max-height:260px}
}

/* HP & Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  body{overflow-y:auto;height:auto}
  .landing{height:auto;min-height:100vh;padding:16px 14px;justify-content:flex-start;gap:12px}
  .topBar{flex-direction:row;justify-content:space-between;align-items:center;width:100%}
  .brand strong{font-size:17px}
  .brand small{font-size:10px}
  .langBtn{padding:5px 9px;font-size:11px}
  
  .hero{display:flex;flex-direction:column;align-items:center;gap:14px;width:100%;max-height:none;padding-top:6px}
  .mascotWrap{order:1;height:200px;max-height:210px;width:100%;margin:0}
  .mascot{max-height:190px;width:auto}
  .pulseRing{width:220px;height:220px}
  
  .copy{order:2;width:100%;padding:0;align-items:center;text-align:center}
  h1{font-size:26px;margin:0 0 10px}
  .dialogBox{width:100%;max-height:220px;padding:14px 16px;border-radius:16px;margin-bottom:14px;text-align:left}
  .dialogContent{font-size:14.5px;line-height:1.5}
  
  .actionArea{width:100%;align-items:center}
  .btnRow{justify-content:center;gap:8px;width:100%}
  .activate{min-width:160px;height:50px;font-size:16px;padding:0 22px}
  .newChatBtn, .openSkmBtn, .scanFaceBtn, .resetSpeechBtn, .stopAudioBtn{font-size:12px;padding:8px 14px}
  .micro-status{font-size:11px;text-align:center;margin:0}
  
  .cameraPip{width:115px;height:78px;border-radius:12px;border-width:1.5px}
  .cameraStatusBadge{font-size:8.5px;padding:2px 5px}
  
  .modalCard{width:94vw;padding:20px 14px;border-radius:20px}
  .skmStar{font-size:30px}
  .skmTag{font-size:11px;padding:4px 9px}
}

/* Small Mobile Screens (<= 440px) */
@media (max-width: 440px) {
  .landing{padding:12px 10px}
  .brand strong{font-size:15px}
  .brand small{font-size:9.5px}
  .brandBadge{display:none}
  .mascotWrap{height:165px;max-height:175px}
  .mascot{max-height:160px}
  .pulseRing{width:180px;height:180px}
  h1{font-size:22px}
  .dialogBox{max-height:180px;padding:12px 14px}
  .dialogContent{font-size:13.5px}
  .activate{min-width:140px;height:46px;font-size:15px;padding:0 16px}
  .cameraPip{width:100px;height:68px;border-radius:10px}
}

/* Form Input Teks Chat Cepat */
.textChatForm {
  width: 100%;
  margin-bottom: 16px;
}
.inputGroup {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid #cbe0f8;
  border-radius: 999px;
  padding: 6px 8px 6px 18px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08);
  transition: all 0.2s ease;
}
.inputGroup:focus-within {
  border-color: #0284c7;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.16);
  background: #ffffff;
}
.inputGroup input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14.5px;
  color: #0f172a;
  font-weight: 500;
}
.inputGroup input::placeholder {
  color: #94a3b8;
  font-size: 13.5px;
}
.btnSend {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s, background 0.18s;
  flex-shrink: 0;
}
.btnSend:hover {
  transform: scale(1.06);
  background: linear-gradient(135deg, #0369a1, #075985);
}
.skmTriggerBtn {
  border: 1px solid #fef08a;
  background: #fefce8;
  color: #a16207;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.08);
}
.skmTriggerBtn:hover {
  background: #fef9c3;
  border-color: #fde047;
}

