/* =====================================================================
   SAKAWARTA — Tema Glassmorphism
   Palet: #A7F432 (lime) · #0F1F16 (hutan gelap) · #EAF3E7 (embun) · #3B8F7B (toska)
   ===================================================================== */
:root {
  --lime: #A7F432;
  --lime-2: #C8FF6B;
  --forest: #0F1F16;
  --forest-2: #13281D;
  --mist: #EAF3E7;
  --teal: #3B8F7B;
  --teal-2: #5FC2A6;
  --text: #EAF3E7;
  --text-soft: rgba(234, 243, 231, .62);
  --text-faint: rgba(234, 243, 231, .38);
  --glass: rgba(234, 243, 231, .055);
  --glass-2: rgba(234, 243, 231, .09);
  --glass-strong: rgba(19, 40, 29, .72);
  --line: rgba(234, 243, 231, .12);
  --line-2: rgba(234, 243, 231, .2);
  --danger: #FF7A7A;
  --warn: #FFD166;
  --info: #7FD8F5;
  --radius: 22px;
  --radius-sm: 14px;
  --blur: blur(20px) saturate(150%);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .06);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --side-w: 270px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--text);
  background: var(--forest);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--lime); text-decoration: none; }
a:hover { color: var(--lime-2); }
::selection { background: var(--lime); color: var(--forest); }
.text-soft { color: var(--text-soft) !important; }
.text-faint { color: var(--text-faint) !important; }
.text-lime { color: var(--lime) !important; }
.text-teal { color: var(--teal-2) !important; }
.text-danger-soft { color: var(--danger) !important; }
.fw-800 { font-weight: 800; }
h1, h2, h3, h4, h5, h6 { color: var(--text); font-weight: 700; letter-spacing: -.01em; }

/* ---------- Latar bergerak ---------- */
.bg-scene { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(59, 143, 123, .35), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(167, 244, 50, .14), transparent 60%),
    linear-gradient(160deg, #0B1710 0%, var(--forest) 45%, #0C1B13 100%); }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: melayang 22s var(--ease) infinite alternate; }
.o1 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(167, 244, 50, .45), transparent 65%); top: -120px; left: 30%; }
.o2 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(59, 143, 123, .55), transparent 65%); bottom: -200px; right: -120px; animation-duration: 28s; }
.o3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(95, 194, 166, .35), transparent 65%); top: 45%; left: -80px; animation-duration: 18s; }
.grain { position: absolute; inset: 0; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes melayang {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.12); }
  100% { transform: translate(-40px, 70px) scale(.95); }
}

/* ---------- Kaca ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.card-glass {
  position: relative;
  background: linear-gradient(155deg, rgba(234, 243, 231, .085), rgba(234, 243, 231, .03));
  border: 1px solid var(--line);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease);
}
.card-glass.hover:hover { transform: translateY(-4px); border-color: rgba(167, 244, 50, .35); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .7), 0 0 0 1px rgba(167, 244, 50, .1), 0 0 40px -10px rgba(167, 244, 50, .25); }
.card-glass::before { /* kilau tepi atas */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 30%);
}
.card-title { font-size: 1rem; font-weight: 700; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.card-sub { color: var(--text-soft); font-size: .85rem; margin: 0 0 16px; }
.section-label { letter-spacing: .32em; text-transform: uppercase; font-size: .72rem; color: var(--text-soft); font-weight: 600; }

/* ---------- Tata letak (sidebar ada di sidebar.css) ---------- */
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand b { display: block; font-size: 1.15rem; letter-spacing: .06em; }
.brand small { display: block; font-size: .7rem; color: var(--text-soft); line-height: 1.2; }
.brand img { filter: drop-shadow(0 0 14px rgba(167, 244, 50, .45)); animation: denyut 4s ease-in-out infinite; }
@keyframes denyut { 50% { filter: drop-shadow(0 0 22px rgba(167, 244, 50, .7)); } }
@keyframes getar { 0%, 90%, 100% { transform: none; } 93% { transform: rotate(-10deg); } 96% { transform: rotate(10deg); } }
.topbar { position: sticky; top: 16px; z-index: 1030; display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 22px; border-radius: 22px;
  background: rgba(15, 31, 22, .55); animation: turun .7s var(--ease); }
.topbar-title { flex: 1; min-width: 0; }
.topbar-title h1 { font-size: 1.25rem; margin: 0; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-title p { margin: 0; font-size: .8rem; color: var(--text-soft); }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.content { flex: 1; padding: 22px 0 10px; }
.foot { text-align: center; color: var(--text-faint); font-size: .78rem; padding: 14px; }

.btn-icon { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); color: var(--text);
  font-size: 1.15rem; transition: all .3s var(--ease); backdrop-filter: var(--blur); }
.btn-icon:hover { background: var(--glass-2); color: var(--lime); border-color: rgba(167, 244, 50, .4); transform: translateY(-2px); }
.ping { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--danger); }
.ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--danger); animation: ping 1.6s infinite; }
@keyframes ping { to { transform: scale(2.8); opacity: 0; } }
.user-btn { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--text); font-weight: 600; font-size: .88rem; transition: .3s; }
.user-btn:hover { border-color: rgba(167, 244, 50, .4); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: var(--forest); background: linear-gradient(135deg, var(--lime), var(--teal-2)); }
.wa-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; border: 1px solid var(--line); background: var(--glass); color: var(--text-soft); }
.wa-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(167, 244, 50, .7); animation: nadi 2s infinite; }
.wa-chip.wa-simulasi .dot { background: var(--warn); animation-name: nadiKuning; }
.wa-chip.wa-simulasi { color: var(--warn); border-color: rgba(255, 209, 102, .3); }
@keyframes nadi { 70% { box-shadow: 0 0 0 9px rgba(167, 244, 50, 0); } 100% { box-shadow: 0 0 0 0 rgba(167, 244, 50, 0); } }
@keyframes nadiKuning { 0% { box-shadow: 0 0 0 0 rgba(255, 209, 102, .6); } 70% { box-shadow: 0 0 0 9px rgba(255, 209, 102, 0); } 100% { box-shadow: none; } }

.glass-menu { background: rgba(19, 40, 29, .92); backdrop-filter: var(--blur); border: 1px solid var(--line); border-radius: 16px; padding: 6px; box-shadow: var(--shadow); }
.glass-menu .dropdown-item { color: var(--text); border-radius: 10px; padding: 8px 12px; font-size: .9rem; display: flex; gap: 10px; }
.glass-menu .dropdown-item:hover { background: var(--glass-2); color: var(--lime); }
.dropdown-divider { border-color: var(--line); }

@media (max-width: 991.98px) {
  .topbar { top: 12px; padding: 10px 12px; }
  .topbar-title h1 { font-size: 1rem; white-space: normal; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: clip; }
  .topbar-right { gap: 6px; }
  .user-btn { padding: 3px 8px 3px 3px; }
  .wa-chip { display: none; }
  .topbar-title p { display: none; }
}
@media (max-width: 575.98px) {
  .content form .input-group[style], .content form .form-select[style], .content form input[style] { width: 100% !important; }
  .card-glass { padding: 16px; }
  .hero { padding: 22px; }
  .login-stats > div { padding: 0 14px; }
}

/* ---------- Tombol kaca ---------- */
.btn { --bs-btn-font-weight: 600; border-radius: 999px; padding: .62rem 1.3rem; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, border-color .3s, color .3s; font-size: .9rem; }
.btn i { transition: transform .35s var(--ease); }
.btn:hover i.bi-arrow-right, .btn:hover i.bi-send, .btn:hover i.bi-chevron-right { transform: translateX(4px); }
.btn:active { transform: scale(.96); }
.btn::after { /* kilau menyapu */
  content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; z-index: -1;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); transition: left .7s var(--ease);
}
.btn:hover::after { left: 130%; }
.btn-sm { padding: .4rem .95rem; font-size: .8rem; }
.btn-lg { padding: .85rem 1.8rem; font-size: 1rem; }
.btn-lime { color: var(--forest); border: 1px solid rgba(255, 255, 255, .35);
  background: linear-gradient(135deg, rgba(200, 255, 107, .95), rgba(167, 244, 50, .9) 50%, rgba(130, 214, 30, .9));
  box-shadow: 0 10px 30px -10px rgba(167, 244, 50, .75), inset 0 1px 0 rgba(255, 255, 255, .55); backdrop-filter: var(--blur); }
.btn-lime:hover, .btn-lime:focus { color: var(--forest); transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(167, 244, 50, .95), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-glass { color: var(--text); background: rgba(234, 243, 231, .07); border: 1px solid var(--line-2); backdrop-filter: var(--blur); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.btn-glass:hover, .btn-glass:focus { color: var(--lime); background: rgba(234, 243, 231, .12); border-color: rgba(167, 244, 50, .5); transform: translateY(-2px); }
.btn-teal { color: #fff; background: linear-gradient(135deg, rgba(95, 194, 166, .85), rgba(59, 143, 123, .85)); border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 10px 25px -12px rgba(59, 143, 123, .9), inset 0 1px 0 rgba(255, 255, 255, .25); backdrop-filter: var(--blur); }
.btn-teal:hover, .btn-teal:focus { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 35px -12px rgba(95, 194, 166, 1); }
.btn-danger-glass { color: var(--danger); background: rgba(255, 122, 122, .08); border: 1px solid rgba(255, 122, 122, .3); backdrop-filter: var(--blur); }
.btn-danger-glass:hover, .btn-danger-glass:focus { color: #fff; background: rgba(255, 122, 122, .75); transform: translateY(-2px); }
.btn:disabled, .btn.disabled { opacity: .45; transform: none !important; }
.btn-circle { width: 36px; height: 36px; padding: 0; display: inline-grid; place-items: center; }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, .45); animation: riak .65s ease-out; pointer-events: none; z-index: -1; }
@keyframes riak { to { transform: scale(4); opacity: 0; } }

/* ---------- Formulir ---------- */
.form-label { font-size: .82rem; font-weight: 600; color: var(--text-soft); margin-bottom: 6px; }
.form-control, .form-select {
  background-color: rgba(0, 0, 0, .22); border: 1px solid var(--line); color: var(--text); border-radius: 14px; padding: .65rem .95rem;
  transition: border-color .3s, box-shadow .3s, background-color .3s; }
.form-control::placeholder { color: var(--text-faint); }
.form-control:focus, .form-select:focus { background-color: rgba(0, 0, 0, .3); color: var(--text); border-color: var(--lime); box-shadow: 0 0 0 4px rgba(167, 244, 50, .12); }
.form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23EAF3E7' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.form-select option { background: var(--forest-2); color: var(--text); }
.form-control:disabled, .form-control[readonly] { background-color: rgba(0, 0, 0, .12); color: var(--text-soft); }
.form-check-input { background-color: rgba(0, 0, 0, .3); border-color: var(--line-2); }
.form-check-input:checked { background-color: var(--lime); border-color: var(--lime); }
.form-check-input:checked[type=checkbox] { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%230F1F16' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e"); }
.form-switch .form-check-input:checked { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%230F1F16'/%3e%3c/svg%3e"); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(167, 244, 50, .15); border-color: var(--lime); }
.input-group-text { background: rgba(0, 0, 0, .3); border: 1px solid var(--line); color: var(--text-soft); border-radius: 14px; }
.form-text { color: var(--text-faint); }
textarea.form-control { min-height: 120px; }
.dropzone { border: 2px dashed var(--line-2); border-radius: 18px; padding: 26px; text-align: center; cursor: pointer; transition: .3s var(--ease); background: rgba(0, 0, 0, .15); position: relative; }
.dropzone:hover, .dropzone.over { border-color: var(--lime); background: rgba(167, 244, 50, .06); }
.dropzone i { font-size: 2rem; color: var(--lime); display: block; margin-bottom: 6px; transition: transform .4s var(--ease); }
.dropzone:hover i { transform: translateY(-5px); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .nama-berkas { color: var(--lime); font-weight: 600; margin-top: 6px; }

/* ---------- Tabel ---------- */
.table-glass { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-hover-bg: rgba(167, 244, 50, .05); --bs-table-hover-color: var(--text); --bs-table-border-color: var(--line); margin: 0; font-size: .88rem; }
.table-glass thead th { color: var(--text-soft); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--line-2); padding: 12px 12px; white-space: nowrap; background: transparent; }
.table-glass td { padding: 12px; vertical-align: middle; border-color: var(--line); }
.table-glass tbody tr { transition: background .25s; animation: naik .5s var(--ease) both; }
.table-glass tbody tr:nth-child(1) { animation-delay: .02s } .table-glass tbody tr:nth-child(2) { animation-delay: .04s } .table-glass tbody tr:nth-child(3) { animation-delay: .06s }
.table-glass tbody tr:nth-child(4) { animation-delay: .08s } .table-glass tbody tr:nth-child(5) { animation-delay: .1s } .table-glass tbody tr:nth-child(6) { animation-delay: .12s }
.table-glass tbody tr:nth-child(n+7) { animation-delay: .14s }
.table-responsive { border-radius: 16px; }
.empty { text-align: center; padding: 50px 20px; color: var(--text-soft); }
.empty i { font-size: 2.6rem; display: block; margin-bottom: 10px; color: var(--teal-2); opacity: .8; animation: apung 3s ease-in-out infinite; }
@keyframes apung { 50% { transform: translateY(-8px); } }

/* ---------- Pil status ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: .74rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.pill-success { color: var(--lime); background: rgba(167, 244, 50, .12); border-color: rgba(167, 244, 50, .3); }
.pill-warning { color: var(--warn); background: rgba(255, 209, 102, .1); border-color: rgba(255, 209, 102, .3); }
.pill-danger { color: var(--danger); background: rgba(255, 122, 122, .1); border-color: rgba(255, 122, 122, .3); }
.pill-info { color: var(--info); background: rgba(127, 216, 245, .1); border-color: rgba(127, 216, 245, .3); }
.pill-primary { color: var(--teal-2); background: rgba(95, 194, 166, .12); border-color: rgba(95, 194, 166, .35); }
.pill-secondary, .pill-muted { color: var(--text-soft); background: rgba(234, 243, 231, .06); border-color: var(--line); }
.pill-cold { color: #B8C7FF; background: rgba(184, 199, 255, .1); border-color: rgba(184, 199, 255, .3); }

/* ---------- Kartu statistik ---------- */
.stat { display: flex; gap: 16px; align-items: center; height: 100%; }
.stat .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; flex: none;
  background: linear-gradient(135deg, rgba(167, 244, 50, .2), rgba(59, 143, 123, .25)); color: var(--lime); border: 1px solid rgba(167, 244, 50, .25); }
.stat .ic.teal { color: var(--teal-2); background: rgba(95, 194, 166, .14); border-color: rgba(95, 194, 166, .3); }
.stat .ic.warn { color: var(--warn); background: rgba(255, 209, 102, .1); border-color: rgba(255, 209, 102, .3); }
.stat .ic.danger { color: var(--danger); background: rgba(255, 122, 122, .1); border-color: rgba(255, 122, 122, .3); }
.stat .num { font-size: 1.75rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.stat .lbl { font-size: .8rem; color: var(--text-soft); }
.card-glass.hover:hover .stat .ic { animation: goyang .6s var(--ease); }
@keyframes goyang { 30% { transform: rotate(-10deg) scale(1.1); } 60% { transform: rotate(6deg) scale(1.05); } }

.hero { position: relative; overflow: hidden; padding: 30px; }
.hero h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.1; margin: 10px 0 10px; }
.hero h2 .hl { background: linear-gradient(90deg, var(--lime), var(--teal-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .deco { position: absolute; right: -40px; top: -40px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(167, 244, 50, .45), rgba(59, 143, 123, .2) 50%, transparent 70%); filter: blur(10px); animation: melayang 14s infinite alternate; }
.ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--lime) calc(var(--p) * 1%), rgba(255, 255, 255, .08) 0); transition: --p 1.2s; }
.ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--forest-2); }
.ring > div { position: relative; text-align: center; }
.ring b { font-size: 1.5rem; display: block; line-height: 1; }
.ring small { color: var(--text-soft); font-size: .7rem; }

/* ---------- Tab pil ---------- */
.tabs-glass { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); }
.tabs-glass a, .tabs-glass button { border: 0; background: transparent; color: var(--text-soft); padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .85rem; transition: .35s var(--ease); display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; flex: none; }
.tabs-glass a:hover, .tabs-glass button:hover { color: var(--text); }
.tabs-glass .active { background: var(--lime); color: var(--forest); box-shadow: 0 8px 20px -8px rgba(167, 244, 50, .8); }
.tabs-glass .cnt { font-size: .7rem; padding: 0 7px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.tabs-glass .active .cnt { background: rgba(15, 31, 22, .2); }
.filter-scroll { overflow-x: auto; padding-bottom: 4px; max-width: 100%; scrollbar-width: thin; }
.filter-scroll .tabs-glass { display: flex; width: max-content; }
.filter-scroll .tabs-glass { flex-wrap: nowrap; }

/* ---------- Modal ---------- */
.modal-content { background: rgba(19, 40, 29, .9); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--line); border-radius: 24px; color: var(--text); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.modal-header, .modal-footer { border-color: var(--line); }
.modal-backdrop.show { opacity: .6; }
.modal.fade .modal-dialog { transform: translateY(30px) scale(.96); transition: transform .45s var(--ease); }
.modal.show .modal-dialog { transform: none; }
.btn-close { filter: invert(1) grayscale(1); }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: 90px; right: 22px; z-index: 2000; display: grid; gap: 10px; width: min(380px, calc(100vw - 30px)); }
.toast-glass { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 16px; background: rgba(19, 40, 29, .92); border: 1px solid var(--line); backdrop-filter: var(--blur);
  box-shadow: var(--shadow); animation: toastMasuk .55s var(--ease); font-size: .9rem; }
.toast-glass i { font-size: 1.15rem; }
.toast-glass span { flex: 1; }
.toast-glass .x { background: none; border: 0; color: var(--text-soft); font-size: 1.2rem; line-height: 1; }
.toast-glass.t-success { border-left: 4px solid var(--lime); } .toast-glass.t-success i { color: var(--lime); }
.toast-glass.t-danger { border-left: 4px solid var(--danger); } .toast-glass.t-danger i { color: var(--danger); }
.toast-glass.t-warning { border-left: 4px solid var(--warn); } .toast-glass.t-warning i { color: var(--warn); }
.toast-glass.t-info { border-left: 4px solid var(--info); } .toast-glass.t-info i { color: var(--info); }
.toast-glass.keluar { animation: toastKeluar .4s var(--ease) forwards; }
@keyframes toastMasuk { from { opacity: 0; transform: translateX(40px) scale(.95); } }
@keyframes toastKeluar { to { opacity: 0; transform: translateX(40px); } }

/* ---------- Animasi masuk ---------- */
[data-anim] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
[data-anim].in { opacity: 1; transform: none; }
@keyframes naik { from { opacity: 0; transform: translateY(10px); } }
@keyframes turun { from { opacity: 0; transform: translateY(-16px); } }
@keyframes masukKiri { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
.loader-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 3000; background: linear-gradient(90deg, var(--teal), var(--lime)); box-shadow: 0 0 12px var(--lime); transition: width .4s var(--ease), opacity .4s; }
.loader-bar.jalan { width: 80%; transition: width 6s cubic-bezier(.1, .7, .2, 1); }
.loader-bar.selesai { width: 100%; opacity: 0; }
.spin { animation: putar 1s linear infinite; display: inline-block; }
@keyframes putar { to { transform: rotate(360deg); } }

/* ---------- Komponen kecil ---------- */
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.chip-av { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; flex: none; font-size: .85rem; background: rgba(95, 194, 166, .15); color: var(--teal-2); }
.svc-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; padding: 0; }
.svc-card .img { aspect-ratio: 16/10; background: rgba(0, 0, 0, .25) center/cover no-repeat; position: relative; overflow: hidden; }
.svc-card .img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(15, 31, 22, .85)); }
.svc-card:hover .img { transform: none; }
.svc-card .img .zoom { position: absolute; inset: 0; background: inherit; transition: transform .8s var(--ease); }
.svc-card:hover .img .zoom { transform: scale(1.08); }
.svc-card .img .noimg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.5rem; color: var(--text-faint); }
.svc-card .body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.svc-card .tag { position: absolute; z-index: 2; left: 14px; top: 14px; }
.svc-card .msg { font-size: .82rem; color: var(--text-soft); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wa-preview { background: #0B141A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23ffffff10'/%3E%3C/svg%3E"); border-radius: 18px; padding: 18px; min-height: 220px; border: 1px solid var(--line); }
.wa-bubble { background: #005C4B; color: #E9EDEF; border-radius: 12px 4px 12px 12px; padding: 6px; max-width: 92%; margin-left: auto; box-shadow: 0 2px 4px rgba(0, 0, 0, .3); animation: naik .4s var(--ease); }
.wa-bubble img { width: 100%; border-radius: 8px; display: block; margin-bottom: 4px; }
.wa-bubble .t { padding: 2px 6px 0; white-space: pre-wrap; font-size: .86rem; word-break: break-word; }
.wa-bubble .w { text-align: right; font-size: .66rem; color: rgba(233, 237, 239, .6); padding: 0 6px 2px; }
.kbd-tag { display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: .75rem; background: rgba(167, 244, 50, .1); color: var(--lime); border: 1px solid rgba(167, 244, 50, .25); cursor: pointer; transition: .25s; font-family: ui-monospace, monospace; }
.kbd-tag:hover { background: var(--lime); color: var(--forest); }
.progress-glass { height: 12px; border-radius: 12px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.progress-glass span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--lime)); border-radius: 12px; transition: width .6s var(--ease); position: relative; overflow: hidden; }
.progress-glass span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); animation: kilauBar 1.6s infinite; }
@keyframes kilauBar { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.log-box { max-height: 260px; overflow-y: auto; font-size: .8rem; font-family: ui-monospace, monospace; background: rgba(0, 0, 0, .25); border-radius: 14px; padding: 10px 14px; border: 1px solid var(--line); }
.log-box div { padding: 3px 0; border-bottom: 1px dashed rgba(255, 255, 255, .05); animation: naik .3s; }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.timeline .it { position: relative; padding-bottom: 14px; font-size: .85rem; }
.timeline .it::before { content: ""; position: absolute; left: -21px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--forest); border: 2px solid var(--lime); }
.chat-msg { background: rgba(234, 243, 231, .06); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: 10px 14px; white-space: pre-wrap; }
.unread { border-left: 3px solid var(--lime); }
.pagination-glass { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination-glass a, .pagination-glass span { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 12px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--glass); color: var(--text-soft); font-size: .85rem; transition: .25s; }
.pagination-glass a:hover { color: var(--lime); border-color: var(--lime); }
.pagination-glass .active { background: var(--lime); color: var(--forest); border-color: var(--lime); font-weight: 700; }
.sticky-bar { position: sticky; bottom: 14px; z-index: 20; animation: naik .4s var(--ease); }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.perm-item { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .15); cursor: pointer; transition: .25s; font-size: .88rem; }
.perm-item:hover { border-color: rgba(167, 244, 50, .4); }
.perm-item:has(input:checked) { border-color: var(--lime); background: rgba(167, 244, 50, .07); }
.qr-box { width: 260px; height: 260px; border-radius: 20px; margin: 0 auto; display: grid; place-items: center; background: rgba(255, 255, 255, .95); overflow: hidden; }
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
code { color: var(--lime); }
hr { border-color: var(--line); opacity: 1; }
.alert-glass { border-radius: 16px; padding: 14px 16px; border: 1px solid var(--line); background: rgba(0, 0, 0, .2); font-size: .88rem; display: flex; gap: 12px; }
.alert-glass i { font-size: 1.2rem; }
.alert-glass.warn { border-color: rgba(255, 209, 102, .35); background: rgba(255, 209, 102, .07); } .alert-glass.warn i { color: var(--warn); }
.alert-glass.info { border-color: rgba(127, 216, 245, .3); background: rgba(127, 216, 245, .06); } .alert-glass.info i { color: var(--info); }
.alert-glass.ok { border-color: rgba(167, 244, 50, .3); background: rgba(167, 244, 50, .06); } .alert-glass.ok i { color: var(--lime); }

/* ---------- Halaman login ---------- */
.login-page { min-height: 100vh; display: flex; align-items: center; padding: 30px 16px; }
.login-shell { width: min(1180px, 100%); margin: 0 auto; border-radius: 34px; padding: 34px; position: relative;
  background: linear-gradient(150deg, rgba(234, 243, 231, .07), rgba(234, 243, 231, .02)); border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(167, 244, 50, .05), 0 0 80px -10px rgba(59, 143, 123, .45), 0 50px 100px -40px rgba(0, 0, 0, .8);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); animation: muncul 1s var(--ease); }
@keyframes muncul { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.login-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.login-nav .brand { padding: 0; }
.login-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; margin: 14px 0 18px; }
.login-hero p.lead { color: var(--text-soft); font-size: 1.05rem; max-width: 460px; }
.login-stats { display: flex; gap: 0; margin-top: 34px; flex-wrap: wrap; }
.login-stats > div { padding: 0 24px; border-left: 1px solid var(--line-2); }
.login-stats > div:first-child { padding-left: 0; border: 0; }
.login-stats b { font-size: 1.5rem; display: block; }
.login-stats small { color: var(--text-soft); font-size: .78rem; }
.login-visual { position: relative; border-radius: 26px; overflow: hidden; min-height: 470px; background: linear-gradient(160deg, #183526, #0E1E15); border: 1px solid var(--line); }
.login-visual .arch { position: absolute; left: 8%; top: 8%; width: 46%; bottom: 0; border-radius: 200px 200px 0 0; background: repeating-linear-gradient(90deg, #0B1A12 0 10px, #10241A 10px 20px); box-shadow: inset 0 0 40px rgba(0, 0, 0, .6); }
.login-visual .form-wrap { position: absolute; right: 18px; top: 18px; bottom: 18px; width: min(360px, calc(100% - 36px)); }
.login-card { height: 100%; padding: 28px; display: flex; flex-direction: column; justify-content: center; border-radius: 22px; background: rgba(15, 31, 22, .55); border: 1px solid var(--line-2); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%); }
.login-visual .bubble { position: absolute; left: 10%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; font-size: .82rem; background: rgba(234, 243, 231, .1); border: 1px solid var(--line-2); backdrop-filter: blur(10px); animation: apung 4s ease-in-out infinite; max-width: 42%; }
.login-visual .bubble.b1 { top: 22%; } .login-visual .bubble.b2 { top: 44%; left: 18%; animation-delay: 1s; background: rgba(167, 244, 50, .16); border-color: rgba(167, 244, 50, .35); }
.login-visual .bubble.b3 { top: 64%; animation-delay: 2s; }
.mini-tiles { display: grid; gap: 12px; }
.mini-tile { border-radius: 18px; padding: 14px; display: flex; align-items: center; justify-content: space-between; background: rgba(234, 243, 231, .06); border: 1px solid var(--line); transition: .35s var(--ease); }
.mini-tile:hover { transform: translateX(-4px); border-color: rgba(167, 244, 50, .35); }
.mini-tile i.big { font-size: 1.4rem; color: var(--lime); }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.swatches div { height: 60px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; font-size: .8rem; border: 1px solid var(--line); animation: naik .8s var(--ease) both; }
@media (max-width: 991.98px) {
  .login-shell { padding: 22px; }
  .login-visual { min-height: 520px; }
  .login-visual .form-wrap { left: 18px; width: auto; }
  .login-visual .bubble { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-anim] { opacity: 1; transform: none; }
}
