/* =====================================================================
   AMANHATI BK — SMK Al Aitaam
   Tema: Dark Pop (ungu neon) • Animasi halus & elegan
   ===================================================================== */

:root {
  --bg: #0a0614;
  --bg-2: #130a26;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f2ecff;
  --muted: #9d93b8;
  --violet: #8b5cf6;
  --violet-2: #a78bfa;
  --fuchsia: #d946ef;
  --pink: #f472b6;
  --cyan: #22d3ee;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #fb7185;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
  --grad-2: linear-gradient(135deg, #22d3ee 0%, #8b5cf6 100%);
  --radius: 18px;
  --shadow-glow: 0 10px 40px rgba(139, 92, 246, 0.28);
  --shadow-card: 0 12px 34px rgba(3, 0, 12, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sidebar-w: 258px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Latar animasi (blob aurora) ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.5;
  animation: float 18s ease-in-out infinite;
}
.aurora span:nth-child(1) { width: 480px; height: 480px; background: #4c1d95; top: -160px; left: -120px; }
.aurora span:nth-child(2) { width: 420px; height: 420px; background: #831843; top: 40%; right: -140px; animation-delay: -6s; }
.aurora span:nth-child(3) { width: 360px; height: 360px; background: #164e63; bottom: -140px; left: 30%; animation-delay: -11s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.08); }
  66%      { transform: translate(-30px, 25px) scale(0.95); }
}

/* ---------- Animasi dasar ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(0.82); } 60% { transform: scale(1.03); } 100% { opacity: 1; transform: scale(1); } }
@keyframes slideRight { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 0 rgba(244, 114, 182, 0.55); } 55% { box-shadow: 0 0 0 7px rgba(244, 114, 182, 0); } }
@keyframes glowPulse { 0%, 100% { box-shadow: 0 0 22px rgba(139, 92, 246, 0.35); } 50% { box-shadow: 0 0 34px rgba(217, 70, 239, 0.6); } }
@keyframes shimmer { 0% { background-position: -450px 0; } 100% { background-position: 450px 0; } }
@keyframes bounceSoft { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.anim { animation: fadeUp 0.65s var(--ease) both; animation-delay: var(--d, 0s); }
.anim-pop { animation: popIn 0.5s var(--ease) both; animation-delay: var(--d, 0s); }

/* ---------- Layout shell ---------- */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w); position: fixed; inset-block: 0; left: 0; z-index: 60;
  background: rgba(16, 9, 34, 0.82); backdrop-filter: blur(18px);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 22px 14px;
  transition: transform 0.4s var(--ease);
}

.brand { display: flex; align-items: center; gap: 12px; padding: 6px 10px 20px; }
.brand-logo {
  width: 44px; height: 44px; border-radius: 14px; background: var(--grad);
  display: grid; place-items: center; font-size: 20px; font-weight: 800; color: #fff;
  box-shadow: var(--shadow-glow); animation: glowPulse 4s ease-in-out infinite;
  font-family: 'Segoe UI', sans-serif;
}
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: 0.3px; }
.brand-name small { display: block; color: var(--muted); font-size: 10.5px; font-weight: 500; letter-spacing: 1.4px; text-transform: uppercase; margin-top: 2px; }

.menu-label { font-size: 10px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--muted); padding: 16px 14px 8px; font-weight: 700; }

.menu { list-style: none; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; flex: 1; }
.menu a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 13px;
  color: var(--muted); text-decoration: none; font-size: 14.2px; font-weight: 600;
  position: relative; transition: all 0.3s var(--ease);
}
.menu a svg { width: 19px; height: 19px; flex: none; opacity: 0.85; transition: transform 0.3s var(--ease); }
.menu a:hover { color: var(--text); background: var(--surface); transform: translateX(4px); }
.menu a:hover svg { transform: scale(1.12); }
.menu a.active {
  color: #fff; background: var(--grad); box-shadow: var(--shadow-glow);
}
.menu a.active svg { opacity: 1; }
.menu a .badge-dot {
  margin-left: auto; background: var(--pink); color: #fff; font-size: 10.5px; font-weight: 800;
  border-radius: 999px; padding: 2px 8px; animation: pulseDot 2.2s infinite;
}

.sidebar-user {
  margin-top: 14px; padding: 13px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--border); display: flex; align-items: center; gap: 11px;
}
.avatar {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff;
  background: var(--grad-2); box-shadow: 0 6px 16px rgba(34, 211, 238, 0.25);
}
.sidebar-user b { font-size: 13.5px; display: block; line-height: 1.25; }
.sidebar-user span { font-size: 11px; color: var(--muted); }

.main { flex: 1; margin-left: var(--sidebar-w); padding: 24px 30px 60px; min-width: 0; }

/* ---------- Topbar ---------- */
.topbar {
  display: flex; align-items: center; gap: 16px; margin-bottom: 26px;
  animation: fadeUp 0.5s var(--ease) both;
}
.topbar h1 { font-size: 22px; font-weight: 800; letter-spacing: 0.2px; }
.topbar h1 small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; margin-top: 3px; }
.topbar .spacer { flex: 1; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); display: grid; place-items: center;
  cursor: pointer; position: relative; transition: all 0.3s var(--ease); text-decoration: none;
}
.icon-btn:hover { background: var(--surface-2); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .dot {
  position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--pink); animation: pulseDot 2s infinite;
}

.btn-burger { display: none; }

/* ---------- Kartu ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.card.hoverable:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, 0.45); box-shadow: var(--shadow-glow); }
.card h2 { font-size: 16.5px; font-weight: 800; margin-bottom: 4px; }
.card .sub { color: var(--muted); font-size: 12.8px; margin-bottom: 16px; }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-21 { grid-template-columns: 2fr 1fr; }
.grid-12 { grid-template-columns: 1fr 2fr; }
@media (max-width: 1080px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid-2, .grid-21, .grid-12 { grid-template-columns: 1fr; } }

/* Kartu statistik */
.stat { position: relative; overflow: hidden; }
.stat::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad); opacity: 0.9;
}
.stat .stat-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-size: 21px; margin-bottom: 12px; background: rgba(139, 92, 246, 0.16);
  color: var(--violet-2);
}
.stat .stat-num { font-size: 30px; font-weight: 800; letter-spacing: 0.5px; line-height: 1; }
.stat .stat-label { color: var(--muted); font-size: 12.6px; margin-top: 7px; font-weight: 600; }
.stat.cyan .stat-icon { background: rgba(34, 211, 238, 0.14); color: var(--cyan); }
.stat.pink .stat-icon { background: rgba(244, 114, 182, 0.14); color: var(--pink); }
.stat.green .stat-icon { background: rgba(52, 211, 153, 0.14); color: var(--green); }
.stat.amber .stat-icon { background: rgba(251, 191, 36, 0.14); color: var(--amber); }

/* ---------- Badge status ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  font-size: 11.3px; font-weight: 700; letter-spacing: 0.2px;
  background: rgba(255, 255, 255, 0.08); color: var(--text); border: 1px solid var(--border);
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.menunggu { color: var(--amber); background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.3); }
.badge.diterima { color: var(--cyan); background: rgba(34, 211, 238, 0.12); border-color: rgba(34, 211, 238, 0.3); }
.badge.selesai, .badge.dibalas, .badge.tertutup, .badge.aktif { color: var(--green); background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.3); }
.badge.ditolak, .badge.dibatalkan, .badge.nonaktif { color: var(--red); background: rgba(251, 113, 133, 0.12); border-color: rgba(251, 113, 133, 0.3); }
.badge.terbuka { color: var(--pink); background: rgba(244, 114, 182, 0.12); border-color: rgba(244, 114, 182, 0.3); }
.badge.pemantauan { color: var(--violet-2); background: rgba(167, 139, 250, 0.12); border-color: rgba(167, 139, 250, 0.3); }
.badge.rahasia { color: var(--amber); }
.badge.baru { color: var(--pink); background: rgba(244, 114, 182, 0.12); border-color: rgba(244, 114, 182, 0.3); }
.badge.dibaca { color: var(--cyan); }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 13px; font-size: 13.6px; font-weight: 700;
  border: none; cursor: pointer; text-decoration: none; color: #fff; position: relative; overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background 0.28s;
}
.btn svg { width: 16px; height: 16px; }
.btn-grad { background: var(--grad); box-shadow: var(--shadow-glow); background-size: 150% 150%; }
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(217, 70, 239, 0.45); animation: gradientShift 1.6s ease infinite; }
.btn-ghost { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn-danger { background: linear-gradient(135deg, #e11d48, #f43f5e); box-shadow: 0 8px 26px rgba(244, 63, 94, 0.3); }
.btn-danger:hover { transform: translateY(-2px); }
.btn-cyan { background: var(--grad-2); box-shadow: 0 8px 26px rgba(34, 211, 238, 0.28); }
.btn-cyan:hover { transform: translateY(-2px); }
.btn-sm { padding: 8px 14px; font-size: 12.4px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* Efek ripple */
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.35); transform: scale(0); animation: rippleGo 0.6s ease-out forwards; pointer-events: none; }
@keyframes rippleGo { to { transform: scale(3.4); opacity: 0; } }

/* ---------- Form ---------- */
label.field-label { display: block; font-size: 12.6px; font-weight: 700; color: var(--muted); margin: 14px 0 7px; letter-spacing: 0.3px; }
label.field-label:first-child { margin-top: 0; }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 15px; border-radius: 13px; font-size: 14px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--text);
  font-family: inherit; outline: none; transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.16); background: rgba(255, 255, 255, 0.07); }
.input::placeholder { color: #6f6689; }
textarea.input { resize: vertical; min-height: 110px; line-height: 1.55; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239d93b8' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
select.input option { background: #1a1030; color: var(--text); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.hint { font-size: 11.8px; color: var(--muted); margin-top: 6px; }
.check-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; cursor: pointer; user-select: none; }
.check-row input { width: 18px; height: 18px; accent-color: var(--violet); cursor: pointer; }

/* ---------- Tabel ---------- */
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--border); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.6px; min-width: 640px; }
.tbl thead th {
  text-align: left; padding: 13px 16px; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--muted); background: rgba(255, 255, 255, 0.045); font-weight: 700; white-space: nowrap;
}
.tbl td { padding: 13px 16px; border-top: 1px solid rgba(255, 255, 255, 0.055); vertical-align: middle; }
.tbl tbody tr { transition: background 0.25s; }
.tbl tbody tr:hover { background: rgba(139, 92, 246, 0.07); }
.tbl b { font-weight: 700; }
.tbl .dim { color: var(--muted); font-size: 12px; }

/* ---------- Timeline & list ---------- */
.timeline { list-style: none; position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--violet), var(--fuchsia), transparent); border-radius: 2px; }
.timeline li { position: relative; padding: 10px 0 14px; animation: fadeUp 0.6s var(--ease) both; }
.timeline li::before {
  content: ''; position: absolute; left: -22px; top: 16px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18);
}
.timeline .tl-date { font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: 0.4px; }

.item-list { display: flex; flex-direction: column; gap: 12px; }
.item-row {
  display: flex; align-items: center; gap: 13px; padding: 13px 15px; border-radius: 15px;
  background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text);
  transition: all 0.3s var(--ease); animation: fadeUp 0.55s var(--ease) both; animation-delay: var(--d, 0s);
}
.item-row:hover { transform: translateX(6px); border-color: rgba(139, 92, 246, 0.5); background: rgba(139, 92, 246, 0.09); }
.item-row .ic { width: 42px; height: 42px; border-radius: 13px; flex: none; display: grid; place-items: center; font-size: 19px; background: rgba(139, 92, 246, 0.15); }
.item-row b { font-size: 13.8px; display: block; }
.item-row .dim { color: var(--muted); font-size: 12px; margin-top: 2px; }
.item-row .right { margin-left: auto; text-align: right; flex: none; }

/* ---------- Toast ---------- */
.toasts { position: fixed; top: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.toast {
  padding: 14px 18px; border-radius: 15px; font-size: 13.6px; font-weight: 600; color: #fff;
  background: rgba(26, 16, 48, 0.92); backdrop-filter: blur(14px); border: 1px solid var(--border);
  box-shadow: var(--shadow-card); display: flex; gap: 11px; align-items: flex-start;
  animation: slideInToast 0.5s var(--ease) both;
}
.toast.leaving { animation: fadeOutToast 0.4s var(--ease) both; }
.toast.success { border-color: rgba(52, 211, 153, 0.5); }
.toast.error { border-color: rgba(251, 113, 133, 0.5); }
.toast .t-ic { font-size: 17px; }
@keyframes slideInToast { from { opacity: 0; transform: translateX(60px) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes fadeOutToast { to { opacity: 0; transform: translateX(60px); } }

/* ---------- Modal ---------- */
.modal-back {
  position: fixed; inset: 0; z-index: 150; background: rgba(5, 2, 14, 0.72); backdrop-filter: blur(6px);
  display: none; place-items: center; padding: 20px;
}
.modal-back.show { display: grid; animation: fadeIn 0.3s both; }
.modal {
  width: 100%; max-width: 460px; background: rgba(22, 13, 42, 0.97); border: 1px solid var(--border);
  border-radius: 22px; padding: 26px; box-shadow: var(--shadow-glow);
  animation: popIn 0.42s var(--ease) both;
}
.modal h3 { font-size: 17px; margin-bottom: 8px; }
.modal p { color: var(--muted); font-size: 13.6px; line-height: 1.6; }
.modal .modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ---------- Halaman login & publik ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 26px; position: relative; }
.auth-card {
  width: 100%; max-width: 430px; background: rgba(19, 11, 38, 0.86); backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: 26px; padding: 36px 32px;
  box-shadow: var(--shadow-glow); animation: popIn 0.65s var(--ease) both;
}
.auth-card .brand { justify-content: center; padding-bottom: 18px; }
.auth-card h1 { font-size: 21px; text-align: center; font-weight: 800; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 13px; margin: 6px 0 22px; }
.demo-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 20px; }
.demo-chip {
  padding: 10px 12px; border-radius: 12px; border: 1px dashed rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.07); cursor: pointer; text-align: left; color: var(--text);
  font-family: inherit; transition: all 0.25s var(--ease); font-size: 12px;
}
.demo-chip:hover { background: rgba(139, 92, 246, 0.16); transform: translateY(-2px); border-style: solid; }
.demo-chip b { display: block; font-size: 12.4px; }
.demo-chip span { color: var(--muted); font-size: 11px; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 42px 20px; color: var(--muted); }
.empty .empty-ic { font-size: 44px; margin-bottom: 14px; display: inline-block; animation: bounceSoft 3s ease-in-out infinite; }
.empty b { color: var(--text); display: block; font-size: 15px; margin-bottom: 5px; }
.empty p { font-size: 13px; }

/* ---------- Progress & chart ---------- */
.bar { height: 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--grad); width: 0; transition: width 1.3s var(--ease); box-shadow: 0 0 12px rgba(139, 92, 246, 0.6); }
.bar.cyan > i { background: linear-gradient(90deg, #22d3ee, #3b82f6); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 12.3px; color: var(--muted); font-weight: 600; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ---------- Quiz RIASEC ---------- */
.quiz-card { max-width: 720px; margin: 0 auto; }
.quiz-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.quiz-progress .bar { flex: 1; }
.quiz-num { font-size: 12.6px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.quiz-q {
  font-size: 19px; font-weight: 700; line-height: 1.5; min-height: 86px; display: grid; place-items: center;
  text-align: center; animation: fadeUp 0.45s var(--ease) both;
}
.scale-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 24px 0 18px; }
.scale-opt {
  padding: 15px 6px 13px; border-radius: 15px; border: 1.5px solid var(--border); background: var(--surface);
  color: var(--muted); text-align: center; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 12px;
  transition: all 0.25s var(--ease); position: relative; overflow: hidden;
}
.scale-opt small { display: block; font-size: 15px; margin-bottom: 5px; font-weight: 800; color: var(--text); }
.scale-opt:hover { transform: translateY(-3px); border-color: rgba(139, 92, 246, 0.6); }
.scale-opt.sel { border-color: var(--violet); background: rgba(139, 92, 246, 0.18); color: var(--violet-2); box-shadow: 0 0 18px rgba(139, 92, 246, 0.3); }
.scale-opt.sel small { color: #fff; }
.quiz-nav { display: flex; gap: 12px; justify-content: space-between; }

/* ---------- Kode anonim ---------- */
.kode-box {
  font-family: 'Consolas', monospace; font-size: 26px; letter-spacing: 5px; font-weight: 800;
  background: rgba(139, 92, 246, 0.14); border: 1px dashed rgba(139, 92, 246, 0.6);
  border-radius: 16px; padding: 18px; text-align: center; color: var(--violet-2);
  margin: 16px 0; text-shadow: 0 0 18px rgba(139, 92, 246, 0.7);
}

/* ---------- Misc ---------- */
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 12.6px; font-weight: 600; color: var(--muted); }
.chip b { color: var(--text); }
.kategori-ic { font-size: 17px; }
.divider { height: 1px; background: var(--border); margin: 18px 0; border: none; }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.text-muted { color: var(--muted); }
.fs-13 { font-size: 13.2px; line-height: 1.65; }
.mt-8 { margin-top: 8px; } .mt-14 { margin-top: 14px; } .mt-20 { margin-top: 20px; } .mt-26 { margin-top: 26px; }
.mb-8 { margin-bottom: 8px; } .mb-14 { margin-bottom: 14px; } .mb-20 { margin-bottom: 20px; }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.right-align { text-align: right; }
.wrap { flex-wrap: wrap; }

/* Highlight heading gradient */
.grad-text {
  background: linear-gradient(90deg, #a78bfa, #f472b6, #22d3ee);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; animation: gradientShift 5s ease infinite;
}

/* ---------- Responsif ---------- */
.overlay-mobile { display: none; }
@media (max-width: 900px) {
  .sidebar { transform: translateX(-105%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; padding: 18px 16px 50px; }
  .btn-burger { display: grid; }
  .overlay-mobile { position: fixed; inset: 0; background: rgba(5, 2, 14, 0.6); z-index: 55; }
  .overlay-mobile.show { display: block; animation: fadeIn 0.3s both; }
  .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; }
  .topbar h1 { font-size: 18px; }
  .scale-row { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .scale-opt { padding: 10px 3px; font-size: 10.5px; }
}

@media (max-width: 560px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 22px; }
  .demo-chips { grid-template-columns: 1fr; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.35); border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

/* Reduksi gerak untuk aksesibilitas */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}
