/* ==========================================================================
   PASKAL+ V2 — Sistem desain
   Tipografi Plus Jakarta Sans (OFL, di-host sendiri). Dasar biru muda,
   sidebar biru malam bergradien dengan cahaya merah-kuning khas PASKAL.
   Bagian akhir berkas menyelaraskan markup Tailwind lama (41 layar) ke
   token yang sama, sehingga tampilan seragam tanpa mengubah logika layar.
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-italic.woff2") format("woff2");
}

/* ---------- Token ------------------------------------------------------ */
:root {
  --ground: #eef3fc;
  --ground-2: #e4ecfa;
  --surface: #ffffff;
  --surface-2: #f5f8fe;
  --surface-3: #eaf0fb;

  --ink: #0c1a3d;
  --ink-2: #22355f;
  --ink-3: #4a5d86;
  --ink-4: #5f6f93;
  --ink-5: #aab7d2;

  --line: #dde6f5;
  --line-2: #c9d6ee;

  --primary: #2458e6;
  --primary-hover: #1c46c0;
  --primary-soft: #e6eeff;
  --primary-ring: #2458e62e;
  --indigo: #4b3fd6;
  --teal: #0b7a75;
  --teal-soft: #dcf6f4;
  --brand-red: #e8372b;
  --brand-yellow: #ffc619;

  --good: #0b7f4b;
  --good-soft: #dff6ea;
  --warn: #9a6400;
  --warn-soft: #fff3d6;
  --bad: #d92d4a;
  --bad-soft: #ffe4e9;

  --navy-1: #081636;
  --navy-2: #0d2560;
  --navy-3: #13358a;

  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 26px; --r-full: 999px;
  --sh-1: 0 1px 2px #0c1a3d0d, 0 2px 8px #2458e60a;
  --sh-2: 0 10px 28px -8px #2458e626, 0 2px 6px #0c1a3d0d;
  --sh-3: 0 30px 70px -20px #0c1a3d4d;
  --glow: 0 10px 26px -6px #2458e680;

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --side-w: 276px;
  --side-w-mini: 84px;
  --top-h: 68px;
  --tap: 44px;
}

/* ---------- Dasar ------------------------------------------------------ */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.v2 {
  margin: 0; min-height: 100%;
  font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink);
  background:
    radial-gradient(1100px 520px at 105% -12%, #cfdfff 0%, transparent 60%),
    radial-gradient(800px 420px at -12% 0%, #d9f3ff 0%, transparent 55%),
    var(--ground);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; overflow-y: auto;
}
body.v2 ::selection { background: #2458e633; }
body.v2 :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--primary); outline-offset: 2px;
}
.v2-skip {
  position: fixed; left: 12px; top: -60px; z-index: 11000; padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--primary); color: #fff; font-weight: 700; transition: top .2s var(--ease);
}
.v2-skip:focus { top: 12px; }
kbd {
  font-family: var(--font); font-size: 10.5px; font-weight: 700; line-height: 1;
  padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--ink-3); box-shadow: 0 1px 0 var(--line-2);
}
.v2-eyebrow {
  margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary);
}
.v2-eyebrow-light { color: #cfe0ff; }
.v2-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 700; background: var(--primary-soft); color: var(--primary);
}
.v2-num { font-variant-numeric: tabular-nums; }

/* ---------- Tombol ----------------------------------------------------- */
.v2-btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: var(--r-full); border: 1.5px solid transparent;
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--spring), box-shadow .25s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.v2-btn:hover { transform: translateY(-2px); }
.v2-btn:active { transform: translateY(0) scale(.98); }
.v2-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.v2-btn-primary { background: linear-gradient(120deg, #2458e6 0%, #1f4fd0 45%, #4b3fd6 100%); background-size: 180% 100%; color: #fff; box-shadow: 0 8px 20px -8px #2458e6aa; }
.v2-btn-primary:hover { background-position: 100% 0; box-shadow: var(--glow); color: #fff; }
.v2-btn-ghost { background: var(--surface); color: var(--ink-2); border-color: var(--line-2); }
.v2-btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.v2-btn-soft { background: var(--primary-soft); color: var(--primary); }
.v2-btn-soft:hover { background: #d6e3ff; }
.v2-btn-danger { background: var(--bad); color: #fff; box-shadow: 0 8px 20px -10px #d92d4aaa; }
.v2-btn-danger:hover { background: #bd1f3b; }
.v2-btn-good { background: var(--good); color: #fff; }
.v2-btn-good:hover { background: #0b7f4b; }
.v2-btn-block { width: 100%; }
.v2-btn-lg { min-height: 52px; font-size: 15.5px; padding: 0 24px; }
.v2-btn-sm { min-height: 34px; padding: 0 12px; font-size: 12.5px; }
.v2-btn .fa-spinner { animation: fa-spin 1s linear infinite; }

.v2-icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none;
  border-radius: 50%; border: 0; background: transparent; color: var(--ink-3); cursor: pointer; font-size: 16px;
  transition: background .2s var(--ease), color .2s var(--ease), transform .3s var(--spring);
}
.v2-icon-btn:hover { background: var(--primary-soft); color: var(--primary); transform: translateY(-2px); }

/* Riak klik */
.v2-ripple {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  background: currentColor; opacity: .22; transform: scale(0); animation: v2-ripple .6s var(--ease) forwards;
}
@keyframes v2-ripple { to { transform: scale(2.6); opacity: 0; } }

/* ---------- Formulir --------------------------------------------------- */
.v2-field { display: block; margin: 0; }
.v2-field > span:first-child { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.v2-field input, .v2-field select, .v2-field textarea, .v2-input, .v2-picker {
  display: block; width: 100%; min-height: 46px; padding: 10px 14px; margin: 0;
  border-radius: var(--r-md); border: 1.5px solid var(--line-2); background: var(--surface);
  font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.v2-field input:hover, .v2-field select:hover, .v2-field textarea:hover, .v2-picker:hover { border-color: #9fb6e6; }
.v2-field input:focus, .v2-field select:focus, .v2-field textarea:focus, .v2-input:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring);
}
.v2-field input:disabled { background: var(--surface-2); color: var(--ink-3); }
.v2-field small { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-4); font-weight: 500; }
.v2-picker { display: flex; align-items: center; justify-content: space-between; text-align: left; cursor: pointer; }
.v2-picker i { color: var(--primary); }
.v2-input-icon { position: relative; display: block; }
.v2-input-icon > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ink-4); font-size: 14px; pointer-events: none; transition: color .2s var(--ease); }
.v2-input-icon > input { padding-left: 42px !important; }
.v2-input-icon:focus-within > i { color: var(--primary); }
.v2-pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  height: 34px; padding: 0 12px; border-radius: var(--r-sm); border: 0; cursor: pointer;
  background: var(--primary-soft); color: var(--primary); font: inherit; font-size: 12px; font-weight: 700;
}
.v2-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.v2-span-2 { grid-column: 1 / -1; }

/* ==========================================================================
   LOGIN
   ========================================================================== */
.v2-login { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); background: var(--ground); overflow: auto; }
.v2-login.hidden { display: none !important; }
.v2-login-art {
  position: relative; overflow: hidden; color: #fff; padding: clamp(28px, 5vw, 64px);
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  background: linear-gradient(145deg, #0a1d52 0%, #123a9c 55%, #2458e6 100%);
}
.v2-mesh {
  position: absolute; inset: -20%; opacity: .9;
  background:
    radial-gradient(40% 35% at 20% 25%, #3d7bff 0%, transparent 70%),
    radial-gradient(35% 30% at 80% 20%, #e8372b88 0%, transparent 70%),
    radial-gradient(40% 35% at 70% 85%, #ffc61966 0%, transparent 70%),
    radial-gradient(45% 40% at 15% 90%, #4b3fd6aa 0%, transparent 70%);
  filter: blur(20px); animation: v2-mesh 18s ease-in-out infinite alternate;
}
@keyframes v2-mesh { 0% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(3%, -4%) rotate(8deg); } 100% { transform: translate(-4%, 3%) rotate(-6deg); } }
.v2-blob { position: absolute; border-radius: 50%; background: #ffffff14; border: 1px solid #ffffff26; backdrop-filter: blur(2px); }
.v2-blob.b1 { width: 340px; height: 340px; right: -90px; top: -90px; animation: v2-float 12s ease-in-out infinite; }
.v2-blob.b2 { width: 180px; height: 180px; left: 48%; bottom: -60px; animation: v2-float 9s ease-in-out infinite reverse; }
.v2-blob.b3 { width: 90px; height: 90px; left: 8%; top: 10%; background: #ffc6192e; animation: v2-float 7s ease-in-out infinite; }
@keyframes v2-float { 0%, 100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-18px) translateX(10px); } }

.v2-login-brand { position: relative; display: flex; align-items: center; gap: 16px; animation: v2-rise .7s var(--ease) both; }
.v2-wordmark { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.v2-wordmark b, .v2-login-card h1 b, .v2-side-brand-text b { color: var(--brand-yellow); }
.v2-wordmark-sub { margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #bcd0ff; }
.v2-login-title {
  position: relative; margin: 0; max-width: 17ch; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.08; letter-spacing: -.035em; font-weight: 800;
  animation: v2-rise .8s .1s var(--ease) both;
}
.v2-login-title em { font-style: normal; background: linear-gradient(90deg, #ffe07a, #ffc619 40%, #ff8a6b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v2-float-cards { position: relative; display: flex; flex-wrap: wrap; gap: 14px; }
.v2-fcard {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-md);
  background: #ffffff1c; border: 1px solid #ffffff33; backdrop-filter: blur(10px); box-shadow: 0 14px 30px -14px #00000066;
  animation: v2-rise .8s var(--ease) both, v2-float 6s ease-in-out infinite;
}
.v2-fcard i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #ffffff26; font-size: 16px; }
.v2-fcard b { display: block; font-size: 15px; }
.v2-fcard small { display: block; font-size: 11.5px; color: #d5e2ff; }
.v2-fcard.f1 { animation-delay: .25s, 0s; } .v2-fcard.f2 { animation-delay: .35s, 1.2s; } .v2-fcard.f3 { animation-delay: .45s, 2.4s; }
.v2-fcard.f2 i { color: var(--brand-yellow); }
.v2-login-points { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: #dbe6ff; animation: v2-rise .8s .5s var(--ease) both; }
.v2-login-points i { color: #7ef0c8; margin-right: 8px; }

.v2-login-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: clamp(20px, 4vw, 48px); }
.v2-login-card {
  width: 100%; max-width: 420px; display: grid; gap: 18px; padding: 32px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-3);
  animation: v2-pop .7s .15s var(--spring) both;
}
.v2-login-card-head { display: flex; align-items: center; gap: 14px; }
.v2-login-card h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.v2-login-card h1 b { color: var(--brand-red); }
.v2-login-card-head p { margin: 2px 0 0; font-size: 13px; color: var(--ink-3); }
.v2-login-error { margin: 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bad-soft); color: #a3122c; font-size: 13px; font-weight: 700; }
.v2-login-card.shake { animation: v2-shake .45s var(--ease); }
@keyframes v2-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.v2-login-foot { margin: 0; font-size: 12px; color: var(--ink-4); text-align: center; }
.v2-login-credit { margin: 0; font-size: 12px; color: var(--ink-4); font-weight: 600; }

/* Logo huruf P */
.v2-mark {
  position: relative; width: 46px; height: 46px; flex: none; border-radius: 14px;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 22px;
  background: linear-gradient(140deg, #3d7bff 0%, #2458e6 50%, #13358a 100%);
  box-shadow: 0 10px 24px -8px #2458e6aa, inset 0 1px 0 #ffffff40;
}
.v2-mark span { transform: translateX(-3px); }
.v2-mark i { position: absolute; right: 7px; top: 7px; width: 11px; height: 11px; }
.v2-mark i::before, .v2-mark i::after { content: ""; position: absolute; background: var(--brand-yellow); border-radius: 2px; }
.v2-mark i::before { left: 4px; top: 0; width: 3px; height: 11px; }
.v2-mark i::after { left: 0; top: 4px; width: 11px; height: 3px; }
.v2-mark-lg { width: 62px; height: 62px; border-radius: 18px; font-size: 30px; background: #ffffff22; border: 1px solid #ffffff44; box-shadow: none; }
.v2-mark-sm { width: 40px; height: 40px; border-radius: 12px; font-size: 19px; }

/* ==========================================================================
   KERANGKA APLIKASI
   ========================================================================== */
.v2-app.hidden { display: none !important; }
.v2-app:not(.hidden) { display: block; }

.v2-sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 60; width: var(--side-w);
  display: flex; flex-direction: column; gap: 12px; padding: 18px 14px 14px;
  color: #dfe8ff;
  background:
    radial-gradient(360px 240px at 0% 0%, #2f6bff4d, transparent 70%),
    radial-gradient(320px 260px at 100% 100%, #e8372b26, transparent 70%),
    radial-gradient(260px 200px at 100% 55%, #ffc61914, transparent 70%),
    linear-gradient(180deg, var(--navy-1) 0%, var(--navy-2) 60%, var(--navy-3) 100%);
  box-shadow: 10px 0 34px -12px #0c1a3d66;
  transition: width .35s var(--ease), transform .35s var(--ease);
}
.v2-side-brand { display: flex; align-items: center; gap: 12px; padding: 0 6px; }
.v2-side-logo { position: relative; flex: none; }
.v2-side-logo img { display: none; width: 42px; height: 42px; border-radius: 12px; object-fit: cover; background: #fff; }
.v2-side-logo.has-logo img { display: block; }
.v2-side-logo.has-logo .v2-mark { display: none; }
.v2-side-logo:hover .v2-mark, .v2-side-logo:hover img { transform: rotate(-8deg) scale(1.06); }
.v2-side-logo .v2-mark, .v2-side-logo img { transition: transform .5s var(--spring); }
.v2-sync-dot { position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 50%; border: 2.5px solid var(--navy-1); background: #8ea5e6; }
.v2-sync-dot.synced, .v2-sync-dot.bg-emerald-400 { background: #34d399 !important; }
.v2-sync-dot.syncing { background: var(--brand-yellow) !important; }
.v2-sync-dot.bg-rose-500 { background: #ff5f7a !important; }
.v2-side-brand-text { min-width: 0; flex: 1; }
.v2-side-brand-text strong { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: #fff; line-height: 1.1; }
.v2-side-brand-text small { display: block; margin-top: 3px; font-size: 11px; font-weight: 600; color: #a9bcf5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-side-close { display: none; margin-left: auto; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #ffffff14; color: #fff; cursor: pointer; }

.v2-side-search {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 12px;
  border-radius: var(--r-sm); border: 1px solid #ffffff1f; background: #ffffff0f; color: #b8c8f5;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-align: left;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.v2-side-search span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-side-search kbd { background: #ffffff14; border-color: #ffffff29; color: #c9d7ff; box-shadow: none; }
.v2-side-search:hover { background: #ffffff1c; border-color: #ffffff38; color: #fff; }

.v2-nav { flex: 1; overflow-y: auto; margin: 0 -6px; padding: 2px 6px 8px; scrollbar-width: thin; scrollbar-color: #ffffff33 transparent; }
.v2-nav::-webkit-scrollbar { width: 5px; } .v2-nav::-webkit-scrollbar-thumb { background: #ffffff26; }
.v2-nav-single, .v2-nav .nav-btn {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 38px; padding: 7px 12px; border: 0; border-radius: var(--r-sm); background: transparent;
  color: #cfdbfb; font: inherit; font-size: 13.5px; font-weight: 600; text-align: left; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), transform .25s var(--ease);
}
.v2-nav .nav-btn i { width: 20px; text-align: center; font-size: 14.5px; opacity: .85; transition: transform .35s var(--spring); }
.v2-nav .nav-btn span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-nav .nav-btn:hover { background: #ffffff12; color: #fff; transform: translateX(3px); }
.v2-nav .nav-btn:hover i { transform: scale(1.15); }
.v2-nav .nav-btn.nav-btn-active {
  background: linear-gradient(100deg, #2a58e8 0%, #1f3fc2 100%); color: #fff;
  box-shadow: 0 8px 22px -6px #2458e6cc, inset 0 0 0 1px #ffffff26; transform: none;
}
.v2-nav .nav-btn.nav-btn-active::before {
  content: ""; position: absolute; left: -6px; top: 9px; bottom: 9px; width: 4px; border-radius: 4px;
  background: var(--brand-yellow); box-shadow: 0 0 12px var(--brand-yellow); animation: v2-grow .4s var(--spring);
}
@keyframes v2-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.v2-nav-group { margin-top: 10px; }
.v2-nav-group-btn {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 12px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8ea5e6;
  transition: color .2s var(--ease);
}
.v2-nav-group-btn:hover { color: #fff; }
.v2-nav-group-btn .v2-count { margin-left: auto; font-size: 10px; letter-spacing: 0; padding: 1px 7px; border-radius: var(--r-full); background: #ffffff14; color: #b8c8f5; }
.v2-nav-group-btn .fa-chevron-down { font-size: 10px; transition: transform .3s var(--ease); }
.v2-nav-group.closed .fa-chevron-down { transform: rotate(-90deg); }
.v2-nav-items { display: grid; gap: 2px; margin-top: 2px; overflow: hidden; transition: grid-template-rows .35s var(--ease); }
.v2-nav-group.closed .v2-nav-items { display: none; }
.v2-nav-items .nav-btn { animation: v2-slide-in .35s var(--ease) both; }

.v2-side-foot { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid #ffffff1a; }
.v2-db {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border-radius: var(--r-sm);
  border: 1px solid #ffffff1f; background: #ffffff0d; color: #dfe8ff; font: inherit; text-align: left; cursor: pointer;
}
.v2-db:hover { background: #ffffff17; }
.v2-db.st-connected { border-color: #34d39955; }
.v2-db.st-error { border-color: #ff5f7a66; background: #ff5f7a1a; }
.v2-db.st-syncing { border-color: #ffc61955; }
.v2-db-dot.st-connected { background: #34d399; box-shadow: 0 0 0 4px #34d39926; }
.v2-db-dot.st-syncing { background: var(--brand-yellow); animation: v2-pulse 1.2s infinite; }
.v2-db-dot.st-error { background: #ff5f7a; box-shadow: 0 0 0 4px #ff5f7a26; }
.v2-db-dot { width: 9px; height: 9px; border-radius: 50%; background: #8ea5e6; flex: none; }
.v2-db-dot.bg-emerald-500 { background: #34d399; box-shadow: 0 0 0 4px #34d39926; }
.v2-db-dot.bg-amber-500 { background: var(--brand-yellow); }
.v2-db-dot.bg-rose-500 { background: #ff5f7a; box-shadow: 0 0 0 4px #ff5f7a26; }
.v2-db-text { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.v2-db-text small { font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #b8c8f2; }
.v2-db-text span { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff !important; }
.v2-db > i { font-size: 12px; color: #8ea5e6 !important; }
.v2-side-user { display: flex; align-items: center; gap: 10px; padding: 2px 4px; }
.v2-avatar {
  width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 14px; color: #0c1a3d; background: linear-gradient(135deg, #7ef0e0, #7aa2ff);
}
.v2-avatar-sm { width: 34px; height: 34px; font-size: 13px; }
.v2-side-user-text { flex: 1; min-width: 0; line-height: 1.25; }
.v2-side-user-text strong { display: block; font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-side-user-text small { display: block; font-size: 11.5px; color: #a9bcf5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-logout { color: #c9d7ff; width: 38px; height: 38px; }
.v2-logout:hover { background: #ff5f7a33; color: #fff; }

.v2-scrim { position: fixed; inset: 0; z-index: 55; background: #081636a6; backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }

.v2-workspace { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; transition: margin-left .35s var(--ease); }

.v2-topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px; min-height: var(--top-h);
  padding: 10px clamp(14px, 2.4vw, 32px); padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid var(--line);
}
.v2-menu-toggle { display: none; }
.v2-crumb { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.v2-crumb b { color: var(--ink); font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-crumb i { font-size: 9px; color: var(--ink-5); }
.v2-crumb span { white-space: nowrap; }
.v2-search {
  margin-left: auto; flex: 0 1 340px; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 8px 0 14px;
  border-radius: var(--r-full); border: 1.5px solid var(--line); background: var(--surface-2);
  color: var(--ink-4); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: left;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.v2-search span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-search:hover { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px var(--primary-ring); }
.v2-top-actions { display: flex; align-items: center; gap: 6px; }
.v2-ta-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: var(--r-full);
  background: var(--primary-soft); color: var(--primary); font-size: 12.5px; font-weight: 800; white-space: nowrap;
}
.v2-notif, .v2-profile { position: relative; }
.v2-badge {
  position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; background: var(--bad);
  box-shadow: 0 0 0 2px var(--surface); animation: v2-pulse 2s var(--ease) infinite;
}
@keyframes v2-pulse { 0%, 100% { box-shadow: 0 0 0 2px var(--surface), 0 0 0 0 #d92d4a66; } 50% { box-shadow: 0 0 0 2px var(--surface), 0 0 0 7px #d92d4a00; } }
.v2-pop {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 70; width: 340px; max-width: calc(100vw - 24px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3);
  overflow: hidden; transform-origin: top right; transition: opacity .25s var(--ease), transform .3s var(--spring);
}
.v2-pop.opacity-0 { transform: translateY(-6px) scale(.97); }
.v2-pop-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.v2-pop-head h3 { margin: 0; font-size: 14.5px; font-weight: 800; }
.v2-pop-list { max-height: 360px; overflow-y: auto; }
.v2-profile-btn {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 10px 0 5px; border-radius: var(--r-full);
  border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font: inherit; color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.v2-profile-btn:hover { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring); }
.v2-profile-text { display: grid; line-height: 1.15; text-align: left; }
.v2-profile-text b { font-size: 12.5px; max-width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-profile-text small { font-size: 10.5px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .04em; }
.v2-profile-btn > .fa-chevron-down { font-size: 10px; color: var(--ink-4); }
.v2-menu { width: 230px; padding: 6px; animation: v2-pop .3s var(--spring); }
.v2-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--r-sm);
  background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; text-align: left;
}
.v2-menu button i { width: 18px; color: var(--primary); }
.v2-menu button:hover { background: var(--primary-soft); color: var(--primary); }
.v2-menu .v2-menu-danger i, .v2-menu .v2-menu-danger { color: var(--bad); }
.v2-menu .v2-menu-danger:hover { background: var(--bad-soft); color: var(--bad); }

.v2-main { flex: 1; width: 100%; max-width: 1480px; margin: 0 auto; padding: clamp(16px, 2.4vw, 32px); padding-bottom: 48px; outline: none; }

.v2-bottomnav { display: none; }

/* Sidebar diciutkan (desktop) */
.v2-app.side-mini .v2-sidebar { width: var(--side-w-mini); padding-inline: 12px; }
.v2-app.side-mini .v2-workspace { margin-left: var(--side-w-mini); }
.v2-app.side-mini .v2-side-brand-text,
.v2-app.side-mini .v2-side-search span, .v2-app.side-mini .v2-side-search kbd,
.v2-app.side-mini .v2-nav .nav-btn span, .v2-app.side-mini .v2-nav-group-btn span,
.v2-app.side-mini .v2-nav-group-btn .v2-count, .v2-app.side-mini .v2-nav-group-btn .fa-chevron-down,
.v2-app.side-mini .v2-db-text, .v2-app.side-mini .v2-db > i, .v2-app.side-mini .v2-side-user-text { display: none; }
.v2-app.side-mini .v2-side-brand { justify-content: center; padding: 0; }
.v2-app.side-mini .v2-side-search { justify-content: center; padding: 0; }
.v2-app.side-mini .v2-nav .nav-btn { justify-content: center; padding: 8px 0; }
.v2-app.side-mini .v2-nav .nav-btn i { font-size: 16px; }
.v2-app.side-mini .v2-nav-group-btn { justify-content: center; }
.v2-app.side-mini .v2-nav-group-btn::before { content: ""; display: block; width: 22px; height: 1px; background: #ffffff26; }
.v2-app.side-mini .v2-nav-group.closed .v2-nav-items { display: grid; }
.v2-app.side-mini .v2-db { justify-content: center; }
.v2-app.side-mini .v2-side-user { flex-direction: column; }

/* ==========================================================================
   HALAMAN, PANEL, KPI
   ========================================================================== */
.v2-page { max-width: 1320px; margin: 0 auto; }
.v2-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
.v2-page-head > div:first-child { flex: 1 1 380px; min-width: 0; }
.v2-page-head h1 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: var(--ink); text-wrap: balance; }
.v2-page-head p:not(.v2-eyebrow) { margin: 8px 0 0; font-size: 14.5px; color: var(--ink-3); max-width: 72ch; }
.v2-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.v2-panel {
  position: relative; margin: 0 0 20px; padding: clamp(18px, 2vw, 24px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1);
}
.v2-panel-flush { padding: 0; overflow: hidden; }
.v2-panel-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.v2-panel-head h2 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.015em; color: var(--ink); }
.v2-panel-head p { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); max-width: 70ch; }
.v2-panel-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.v2-panel-tools select, .v2-select {
  height: 40px; padding: 0 36px 0 14px; border-radius: var(--r-full); border: 1.5px solid var(--line-2); background-color: var(--surface);
  font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232458e6' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 15px;
}
.v2-panel-tools select:focus, .v2-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring); }
.v2-panel-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }

.v2-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 0 0 20px; }
.v2-kpi {
  position: relative; overflow: hidden; padding: 16px 18px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1);
  transition: transform .35s var(--spring), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.v2-kpi:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.v2-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.v2-kpi-label { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); }
.v2-kpi-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 15px; background: var(--primary-soft); color: var(--primary); transition: transform .45s var(--spring); }
.v2-kpi:hover .v2-kpi-icon { transform: rotate(-10deg) scale(1.1); }
.v2-kpi-value { margin-top: 10px; font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.v2-kpi-value small { font-size: 15px; font-weight: 700; color: var(--ink-4); margin-left: 2px; }
.v2-kpi-sub { margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.v2-kpi-value, .v2-kpi-sub { position: relative; z-index: 1; }
.v2-kpi.tone-teal .v2-kpi-icon { background: var(--teal-soft); color: var(--teal); }
.v2-kpi.tone-yellow .v2-kpi-icon { background: #fff3cc; color: #b57a00; }
.v2-kpi.tone-red .v2-kpi-icon { background: var(--bad-soft); color: var(--bad); }
.v2-kpi.tone-green .v2-kpi-icon { background: var(--good-soft); color: var(--good); }
.v2-kpi.tone-violet .v2-kpi-icon { background: #ece6ff; color: #6d3fd8; }
.v2-trend { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--r-full); font-size: 11px; font-weight: 800; }
.v2-trend.up { background: var(--good-soft); color: var(--good); }
.v2-trend.down { background: var(--bad-soft); color: var(--bad); }
.v2-trend.flat { background: var(--surface-3); color: var(--ink-3); }

/* ---------- Hero Beranda ---------- */
.v2-hero {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin: 0 0 20px; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-xl); color: #fff;
  background: linear-gradient(125deg, #0b2260 0%, #173fb5 55%, #2552dc 100%);
  box-shadow: 0 24px 50px -24px #1a45c4cc;
}
.v2-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 220px at 88% 110%, #ffc61940, transparent 70%), radial-gradient(360px 200px at 70% -30%, #e8372b40, transparent 70%);
}
.v2-hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.v2-hero-shapes span { position: absolute; border-radius: 50%; border: 1px solid #ffffff2b; }
.v2-hero-shapes span:nth-child(1) { width: 260px; height: 260px; right: 8%; top: -120px; animation: v2-float 10s ease-in-out infinite; }
.v2-hero-shapes span:nth-child(2) { width: 120px; height: 120px; right: 34%; bottom: -60px; background: #ffffff0f; animation: v2-float 8s ease-in-out infinite reverse; }
.v2-hero-shapes span:nth-child(3) { width: 14px; height: 14px; right: 28%; top: 24%; background: var(--brand-yellow); border: 0; animation: v2-float 5s ease-in-out infinite; }
.v2-hero-shapes span:nth-child(4) { width: 8px; height: 8px; right: 44%; top: 62%; background: #fff; border: 0; animation: v2-float 6s ease-in-out infinite reverse; }
.v2-hero-text { position: relative; z-index: 1; min-width: 0; }
.v2-hero h1 { margin: 0; font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -.035em; line-height: 1.12; color: #fff; text-wrap: balance; }
.v2-hero p { margin: 8px 0 0; color: #d6e3ff; font-size: 14.5px; max-width: 60ch; }
.v2-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.v2-hero-actions button {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--r-full);
  border: 1px solid #ffffff38; background: #ffffff1c; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  backdrop-filter: blur(8px); transition: background .2s var(--ease), transform .3s var(--spring);
}
.v2-hero-actions button:hover { background: #ffffff33; transform: translateY(-2px); }
.v2-hero-orb { position: relative; z-index: 1; width: 170px; height: 170px; flex: none; }
.v2-hero-orb .orb-ring { transform-origin: 100px 100px; animation: v2-spin 26s linear infinite; }
.v2-hero-orb .orb-bars rect { transform-origin: bottom; transform-box: fill-box; animation: v2-bar 2.6s var(--ease) infinite alternate; }
.v2-hero-orb .orb-bars rect:nth-child(2) { animation-delay: .3s; } .v2-hero-orb .orb-bars rect:nth-child(3) { animation-delay: .6s; } .v2-hero-orb .orb-bars rect:nth-child(4) { animation-delay: .9s; }
@keyframes v2-spin { to { transform: rotate(360deg); } }
@keyframes v2-bar { from { transform: scaleY(.55); } to { transform: scaleY(1); } }

/* ---------- Grafik ---------- */
.v2-chart-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin: 0 0 20px; }
.v2-chart-card {
  grid-column: span 6; position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: 18px 18px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1);
  transition: box-shadow .3s var(--ease), transform .35s var(--spring);
}
.v2-chart-card:hover { box-shadow: var(--sh-2); }
.v2-chart-card.kol-4 { grid-column: span 4; } .v2-chart-card.kol-5 { grid-column: span 5; } .v2-chart-card.kol-7 { grid-column: span 7; }
.v2-chart-card.kol-8 { grid-column: span 8; } .v2-chart-card.kol-12 { grid-column: span 12; } .v2-chart-card.kol-3 { grid-column: span 3; }
.v2-chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.v2-chart-head h3 { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.v2-chart-head p { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-3); }
.v2-chart-type {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: var(--r-full);
  font-size: 10.5px; font-weight: 800; letter-spacing: .03em; background: var(--surface-3); color: var(--ink-3); white-space: nowrap;
}
.v2-chart-type.k-perbandingan { background: var(--primary-soft); color: var(--primary); }
.v2-chart-type.k-komposisi { background: #fff1d6; color: #7a5000; }
.v2-chart-type.k-distribusi { background: var(--teal-soft); color: #075f5b; }
.v2-chart-type.k-hubungan { background: #ece6ff; color: #6d3fd8; }
.v2-chart-box { position: relative; flex: 1; min-height: 240px; }
.v2-chart-box.h-sm { min-height: 190px; } .v2-chart-box.h-lg { min-height: 320px; }
.v2-chart-box canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.v2-chart-note { margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--ink-3); }
.v2-chart-note b { color: var(--ink-2); }
.v2-empty {
  display: grid; place-items: center; gap: 8px; min-height: 180px; padding: 20px; text-align: center; color: var(--ink-4);
  font-size: 13px; font-weight: 600; border-radius: var(--r-md); background: repeating-linear-gradient(-45deg, var(--surface-2), var(--surface-2) 10px, var(--surface) 10px, var(--surface) 20px);
}
.v2-empty i { font-size: 24px; color: var(--ink-5); }
.v2-empty b { color: var(--ink-2); font-size: 14px; }

.v2-section-title { display: flex; align-items: center; gap: 12px; margin: 28px 0 14px; }
.v2-section-title h2 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.v2-section-title p { margin: 2px 0 0; font-size: 13px; color: var(--ink-3); }
.v2-section-title .v2-section-icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 17px; flex: none; }

/* Treemap HTML */
.v2-treemap { position: absolute; inset: 0; display: flex; gap: 3px; }
.v2-tm-col { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.v2-tm-cell {
  position: relative; min-height: 0; border-radius: 8px; padding: 8px; color: #fff; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; font-size: 12px; font-weight: 700; line-height: 1.2;
  animation: v2-pop .6s var(--spring) both; transition: filter .2s var(--ease), transform .2s var(--ease);
}
.v2-tm-cell:hover { filter: brightness(1.08); transform: scale(.99); }
.v2-tm-cell b { font-size: 16px; font-weight: 800; }
.v2-tm-head { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 0 2px 2px; }

/* Tabel dengan grafik tersemat */
.v2-embed td .v2-mini { display: flex; align-items: flex-end; gap: 2px; height: 28px; }
.v2-embed td .v2-mini span { flex: 1; min-width: 4px; border-radius: 3px 3px 0 0; background: var(--primary); opacity: .85; animation: v2-bar-in .7s var(--ease) both; transform-origin: bottom; }
@keyframes v2-bar-in { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.v2-bar-inline { position: relative; height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; min-width: 80px; }
.v2-bar-inline > span { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: linear-gradient(90deg, #3d7bff, #4b3fd6); animation: v2-width .9s var(--ease) both; }
@keyframes v2-width { from { width: 0; } }

/* ---------- Tabel ---------- */
.v2-table-wrap { overflow-x: auto; border-radius: var(--r-md); }
.v2-panel > .v2-table-wrap { border: 1px solid var(--line); }
.v2-table, .v2-heat { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.v2-table thead th, .v2-heat thead th {
  position: sticky; top: 0; z-index: 2; padding: 12px 14px; text-align: left; white-space: nowrap;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.v2-table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.v2-table tbody tr { transition: background .15s var(--ease); }
.v2-table tbody tr:hover { background: var(--surface-2); }
.v2-table tbody tr:last-child td { border-bottom: 0; }

/* Peta nilai (heatmap) — markup berasal dari renderDashboardRekapTable */
.v2-heat th, .v2-heat td { border: 0 !important; }
.v2-heat td { padding: 6px !important; text-align: center; font-variant-numeric: tabular-nums; }
.v2-heat tbody td:first-child { text-align: left; padding: 10px 14px !important; font-weight: 700; color: var(--ink-2); background: var(--surface) !important; position: sticky; left: 0; z-index: 1; min-width: 200px; }
.v2-heat thead th:first-child { position: sticky; left: 0; z-index: 3; }
.v2-heat .v2-heat-cell {
  display: grid; place-items: center; min-width: 58px; height: 40px; border-radius: 10px; font-weight: 800; font-size: 14px;
  animation: v2-pop .5s var(--spring) both;
}
.v2-heat .v2-heat-none { color: var(--ink-5); font-weight: 700; }

/* ---------- Progres capaian (markup buildProgresCard) ---------- */
.v2-progres-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }

/* ---------- Profil sekolah ---------- */
.v2-profil-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.v2-upload-grid { display: grid; gap: 14px; }
.v2-drop {
  display: grid; justify-items: center; gap: 4px; padding: 22px; text-align: center; cursor: pointer;
  border: 2px dashed var(--line-2); border-radius: var(--r-md); background: var(--surface-2); color: var(--ink-2);
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .3s var(--spring);
}
.v2-drop:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-2px); }
.v2-drop b { font-size: 14px; } .v2-drop small { font-size: 12px; color: var(--ink-4); }
.v2-drop-icon { width: 48px; height: 48px; margin-bottom: 6px; display: grid; place-items: center; border-radius: 14px; background: var(--surface); color: var(--primary); font-size: 19px; box-shadow: var(--sh-1); }
.v2-file-name { margin-top: 6px; padding: 3px 10px; border-radius: var(--r-full); background: var(--surface); font-size: 11px; font-weight: 700; color: var(--ink-4); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-preview { margin-top: 10px; padding: 10px; text-align: center; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.v2-preview img { height: 64px; margin: 0 auto; object-fit: contain; }
.v2-preview button { margin-top: 6px; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 700; color: var(--bad); cursor: pointer; }

/* ---------- Profil pengembang ---------- */
.v2-dev-hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(20px, 4vw, 48px); align-items: center;
  padding: clamp(22px, 3.4vw, 40px); border-radius: var(--r-xl); color: #fff;
  background: radial-gradient(420px 260px at 90% 110%, #ffc61940, transparent 70%), radial-gradient(380px 240px at 10% -10%, #e8372b38, transparent 70%), linear-gradient(125deg, #0b2260 0%, #1a45c4 55%, #3a6bff 100%);
  box-shadow: 0 30px 60px -30px #1a45c4cc;
}
.v2-dev-foto { position: relative; justify-self: center; width: 100%; max-width: 280px; aspect-ratio: 600 / 820; }
.v2-dev-foto img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: 28px; border: 4px solid #ffffffcc; box-shadow: 0 24px 50px -20px #000a; animation: v2-pop .8s var(--spring) both; }
.v2-dev-ring { position: absolute; inset: -14px; border-radius: 36px; background: conic-gradient(from 0deg, #ffc619, #e8372b, #7aa2ff, #7ef0e0, #ffc619); filter: blur(10px); opacity: .7; animation: v2-spin 9s linear infinite; }
.v2-dev-badge { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: var(--r-full); background: #fff; color: var(--ink); font-size: 12px; font-weight: 800; box-shadow: var(--sh-2); animation: v2-float 5s ease-in-out infinite; }
.v2-dev-badge i { color: var(--primary); }
.v2-dev-badge.b1 { left: -14px; top: 18%; }
.v2-dev-badge.b2 { right: -14px; bottom: 16%; animation-delay: 1.4s; }
.v2-dev-badge.b2 i { color: var(--brand-red); }
.v2-dev-teks { position: relative; z-index: 1; min-width: 0; animation: v2-rise .7s .15s var(--ease) both; }
.v2-dev-teks h1 { margin: 0; font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.v2-dev-peran { margin: 10px 0 0; font-size: 17px; font-weight: 700; color: #ffe07a; }
.v2-dev-bio { margin: 16px 0 0; max-width: 58ch; font-size: 15px; line-height: 1.65; color: #dbe6ff; }
.v2-dev-kontak { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.v2-dev-email { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-full); background: #ffffff1c; border: 1px solid #ffffff33; font-weight: 700; font-size: 14px; user-select: all; word-break: break-all; }
.v2-dev-fitur { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 980px) { .v2-dev-fitur { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .v2-dev-fitur { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .v2-dev-hero { grid-template-columns: 1fr; text-align: center; }
  .v2-dev-foto { max-width: 220px; }
  .v2-dev-kontak { justify-content: center; }
  .v2-dev-bio { margin-inline: auto; }
}

/* ==========================================================================
   PALET PERINTAH
   ========================================================================== */
.v2-palette { position: fixed; inset: 0; z-index: 9990; display: grid; place-items: start center; padding: 12vh 16px 16px; background: #081636a6; backdrop-filter: blur(6px); animation: v2-fade .2s var(--ease); }
.v2-palette[hidden] { display: none; }
.v2-palette-box { width: 100%; max-width: 640px; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--sh-3); overflow: hidden; animation: v2-pop .35s var(--spring); }
.v2-palette-input { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.v2-palette-input i { color: var(--primary); font-size: 17px; }
.v2-palette-input input:focus-visible { outline: none; }
.v2-palette-input input { flex: 1; height: 60px; border: 0; outline: none; background: none; font: inherit; font-size: 16.5px; font-weight: 600; color: var(--ink); }
.v2-palette-list { max-height: min(56vh, 460px); overflow-y: auto; padding: 8px; }
.v2-palette-group { padding: 10px 12px 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); }
.v2-palette-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--r-md);
  background: none; font: inherit; text-align: left; cursor: pointer; color: var(--ink-2);
}
.v2-palette-item .pi-icon { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); color: var(--primary); font-size: 14px; }
.v2-palette-item .pi-text { flex: 1; min-width: 0; }
.v2-palette-item .pi-text b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-palette-item .pi-text small { display: block; font-size: 12px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-palette-item .pi-go { color: var(--ink-5); font-size: 12px; opacity: 0; transform: translateX(-4px); transition: all .2s var(--ease); }
.v2-palette-item.aktif, .v2-palette-item:hover { background: var(--primary-soft); }
.v2-palette-item.aktif .pi-icon { background: var(--primary); color: #fff; }
.v2-palette-item.aktif .pi-go { opacity: 1; transform: none; color: var(--primary); }
.v2-palette-item mark { background: #ffe58a; color: inherit; border-radius: 3px; padding: 0 1px; }
.v2-palette-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 12px; color: var(--ink-4); }
.v2-palette-foot kbd { margin-right: 3px; }
.v2-palette-empty { padding: 34px 20px; text-align: center; color: var(--ink-4); font-size: 14px; }

/* ==========================================================================
   PRATINJAU DOKUMEN
   ========================================================================== */
.v2-docpreview { position: fixed; inset: 0; z-index: 10000; padding: clamp(8px, 2vw, 24px); background: #081636b3; backdrop-filter: blur(6px); animation: v2-fade .2s var(--ease); }
.v2-docpreview.hidden { display: none; }
.v2-docpreview-box { width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--sh-3); animation: v2-pop .4s var(--spring); }
.v2-docpreview-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.v2-docpreview-icon { width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 17px; }
.v2-docpreview-title { flex: 1 1 200px; min-width: 0; }
#doc-preview-title { font-weight: 800; font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#doc-preview-sub { font-size: 12px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-docpreview-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.v2-docpreview-body { position: relative; flex: 1; background: var(--surface-3); }
.v2-docpreview-body iframe { width: 100%; height: 100%; border: 0; }
.v2-docpreview-fallback { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; padding: 30px; color: var(--ink-3); font-weight: 600; }
.v2-docpreview-fallback i { font-size: 40px; color: var(--ink-5); }
.v2-format {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: var(--r-full);
  border: 1.5px solid var(--line-2); background: var(--surface); font: inherit; font-size: 13px; font-weight: 800; color: var(--ink-2); cursor: pointer;
  transition: transform .25s var(--spring), border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.v2-format:hover { transform: translateY(-2px); }
.v2-format i { font-size: 15px; }
.v2-format.f-pdf i { color: #d92d4a; } .v2-format.f-docx i { color: #2458e6; } .v2-format.f-xlsx i { color: #0f9a5c; }
.v2-format.f-pdf:hover { border-color: #d92d4a; background: #fff0f3; }
.v2-format.f-docx:hover { border-color: #2458e6; background: var(--primary-soft); }
.v2-format.f-xlsx:hover { border-color: #0f9a5c; background: var(--good-soft); }
.v2-format .rek { font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 6px; background: var(--brand-yellow); color: #3b2a00; }
.v2-format-sep { width: 1px; height: 26px; background: var(--line); margin: 0 2px; }

/* ==========================================================================
   MODAL
   ========================================================================== */
body.v2 .modal-overlay { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 16px; transition: opacity .25s var(--ease), backdrop-filter .25s var(--ease); }
body.v2 .modal-overlay.show { background: #081636a6; backdrop-filter: blur(6px); }
body.v2 .modal-box {
  width: 100%; max-width: 640px; max-height: min(92vh, 900px); display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border-radius: var(--r-xl) !important; box-shadow: var(--sh-3);
  transform: translateY(24px) scale(.94); opacity: 0; transition: transform .45s var(--spring), opacity .25s var(--ease);
}
body.v2 .modal-overlay.show .modal-box { transform: none; opacity: 1; }
.v2-modal-head { display: flex; align-items: flex-start; gap: 14px; padding: 22px 22px 8px; }
#modal-header { flex: none; }
.v2-modal-icon { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 19px; animation: v2-pop .5s .1s var(--spring) both; }
.v2-modal-icon.t-info { background: var(--primary-soft); color: var(--primary); }
.v2-modal-icon.t-success { background: var(--good-soft); color: var(--good); }
.v2-modal-icon.t-warning { background: var(--warn-soft); color: var(--warn); }
.v2-modal-icon.t-danger { background: var(--bad-soft); color: var(--bad); }
.v2-modal-icon.t-form { background: var(--primary-soft); color: var(--primary); }
.v2-modal-icon.t-ai { background: linear-gradient(135deg, #ece6ff, #e6eeff); color: #6d3fd8; }
.v2-modal-titles { flex: 1; min-width: 0; padding-top: 3px; }
#modal-title { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.25; }
#modal-message { margin: 6px 0 0; font-size: 14px; color: var(--ink-3); white-space: pre-line; line-height: 1.55; }
.v2-modal-x { margin: -4px -6px 0 0; }
.v2-modal-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 22px 6px; }
#modal-body { margin-bottom: 8px; }
.v2-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 20px; border-top: 1px solid var(--line); background: var(--surface-2); }
.v2-modal-foot:empty { display: none; }
.v2-modal-foot > button { min-height: 44px; border-radius: var(--r-full) !important; padding: 0 22px !important; font-weight: 800 !important; width: auto !important; flex: 0 0 auto; }
@media (max-width: 560px) {
  .v2-modal-foot > button { flex: 1 1 0; }
}

/* ==========================================================================
   TOAST & PROGRES
   ========================================================================== */
.v2-toasts { position: fixed; z-index: 10050; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; width: min(92vw, 460px); }
.v2-toast {
  position: relative; overflow: hidden; pointer-events: auto; display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 16px; border-radius: var(--r-md); background: #0e1c44; color: #fff; box-shadow: 0 18px 40px -14px #081636aa;
  font-size: 13.5px; font-weight: 600; animation: v2-toast-in .45s var(--spring) both;
}
.v2-toast.keluar { animation: v2-toast-out .3s var(--ease) forwards; }
.v2-toast .t-icon { width: 30px; height: 30px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 14px; background: #ffffff1a; }
.v2-toast.ok .t-icon { background: #34d39933; color: #6ff0b4; }
.v2-toast.err .t-icon { background: #ff5f7a33; color: #ff9aad; }
.v2-toast.warn .t-icon { background: #ffc61933; color: #ffd66b; }
.v2-toast .t-bar { position: absolute; left: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #3d7bff, #ffc619); animation: v2-toast-bar linear forwards; }
@keyframes v2-toast-in { from { opacity: 0; transform: translateY(18px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes v2-toast-out { to { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes v2-toast-bar { from { width: 100%; } to { width: 0; } }

#v2-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 11000; height: 3px; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease); }
#v2-progress.on { opacity: 1; }
#v2-progress span { position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, transparent, #3d7bff, #ffc619, transparent); animation: v2-indet 1.1s ease-in-out infinite; }
@keyframes v2-indet { from { left: -40%; } to { left: 100%; } }

/* Hamparan menunggu AI */
.v2-ai-wait { position: fixed; inset: 0; z-index: 10020; display: grid; place-items: center; padding: 16px; background: #081636b3; backdrop-filter: blur(6px); animation: v2-fade .25s var(--ease); }
.v2-ai-card { width: min(420px, 100%); padding: 28px; text-align: center; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--sh-3); animation: v2-pop .45s var(--spring); }
.v2-ai-orb { position: relative; width: 84px; height: 84px; margin: 0 auto 16px; }
.v2-ai-orb span { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #3d7bff, #6d3fd8, #ffc619, #e8372b, #3d7bff); animation: v2-spin 2.2s linear infinite; filter: blur(.5px); }
.v2-ai-orb span:nth-child(2) { inset: 6px; background: var(--surface); animation: none; }
.v2-ai-orb i { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; color: #6d3fd8; animation: v2-sparkle 1.6s var(--ease) infinite; }
@keyframes v2-sparkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.18) rotate(12deg); } }
.v2-ai-card h3 { margin: 0; font-size: 18px; font-weight: 800; color: var(--ink); }
.v2-ai-card p { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-3); }
.v2-ai-card .v2-ai-time { margin-top: 14px; font-size: 12px; font-weight: 700; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.v2-ai-steps { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.v2-ai-steps span { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: v2-dot 1.2s var(--ease) infinite; }
.v2-ai-steps span:nth-child(2) { animation-delay: .15s; } .v2-ai-steps span:nth-child(3) { animation-delay: .3s; }
@keyframes v2-dot { 0%, 100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(-7px); opacity: 1; } }

/* ==========================================================================
   GERAK
   ========================================================================== */
@keyframes v2-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes v2-pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes v2-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes v2-slide-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes v2-shimmer { from { background-position: -400px 0; } to { background-position: 400px 0; } }

body.v2 .view-section { display: none !important; animation: none; }
body.v2 .view-section.active { display: block !important; animation: v2-view-in .5s var(--ease) both; }
@keyframes v2-view-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.v2-rise { animation: v2-rise .6s var(--ease) both; }

.v2-skel { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface-3); min-height: 120px; }
.v2-skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #ffffff99, transparent); background-size: 400px 100%; animation: v2-shimmer 1.3s linear infinite; }

/* ==========================================================================
   PENYELARAS MARKUP LAMA (Tailwind) — berlaku di dalam aplikasi & modal
   ========================================================================== */
#app-view, .modal-box, .v2-docpreview { font-family: var(--font); }

/* Radius: kurangi lengkungan besar yang seragam */
#app-view .rounded-\[2rem\], .modal-box .rounded-\[2rem\] { border-radius: var(--r-lg) !important; }
#app-view .rounded-\[1\.5rem\], #app-view .rounded-3xl, .modal-box .rounded-3xl { border-radius: 18px !important; }
#app-view .rounded-2xl, .modal-box .rounded-2xl { border-radius: var(--r-md); }

/* Kartu lama: batas tegas, bayangan halus, sedikit terangkat saat disentuh */
#app-view .bg-surface.shadow-soft, #app-view .bg-white.shadow-soft {
  box-shadow: var(--sh-1);
  transition: box-shadow .3s var(--ease), transform .35s var(--spring), border-color .3s var(--ease);
}
#app-view .hover\:shadow-card:hover { box-shadow: var(--sh-2) !important; transform: translateY(-3px); }

/* Judul halaman lama (h1 di awal view) */
#app-view .view-section h1.font-black { letter-spacing: -.03em; }
#app-view .text-2xl.font-black, #app-view .text-3xl.font-black { letter-spacing: -.025em; }

/* Tombol utama lama */
#app-view .hover\:bg-rose-600.bg-primary:hover, .modal-box .hover\:bg-rose-600.bg-primary:hover { background-color: var(--primary-hover) !important; }
#app-view .hover\:bg-primary:hover, .modal-box .hover\:bg-primary:hover { background-color: var(--primary) !important; }
#app-view .btn-gradient, .modal-box .btn-gradient, body.v2 .btn-gradient {
  background: linear-gradient(120deg, #2458e6 0%, #1f4fd0 45%, #4b3fd6 100%); background-size: 180% 100%;
  transition: background-position .4s var(--ease), box-shadow .3s var(--ease), transform .3s var(--spring);
}
body.v2 .btn-gradient:hover { background-position: 100% 0; box-shadow: var(--glow); }
body.v2 .hero-banner { background: linear-gradient(125deg, #0b2260 0%, #173fb5 55%, #2552dc 100%); }

/* Tombol berbentuk pil di seluruh aplikasi: gerak halus */
#app-view button.rounded-full, .modal-box button.rounded-full, #app-view a.rounded-full {
  transition: transform .25s var(--spring), box-shadow .25s var(--ease), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
#app-view button.rounded-full:not(:disabled):hover { transform: translateY(-1px); }
#app-view button.rounded-full:not(:disabled):active { transform: scale(.97); }

/* Input, select, textarea lama */
#app-view :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]), select, textarea),
.modal-box :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]), select, textarea) {
  font-family: var(--font); color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
#app-view :is(input:not([type=checkbox]):not([type=radio]), select, textarea):focus,
.modal-box :is(input:not([type=checkbox]):not([type=radio]), select, textarea):focus {
  outline: none; border-color: var(--primary) !important; box-shadow: 0 0 0 4px var(--primary-ring) !important;
}
#app-view input[type=checkbox], #app-view input[type=radio], .modal-box input[type=checkbox], .modal-box input[type=radio] { accent-color: var(--primary); }

#app-view table { font-variant-numeric: tabular-nums; }

/* Modal: tata letak lama yang rata tengah → rata kiri di tampilan baru */
body.v2 .modal-box .text-center > h3 { text-align: left; }

/* Kontainer view lama selebar penuh area kerja */
#app-view .view-section > .max-w-7xl, #app-view .view-section > .max-w-6xl, #app-view .view-section > .max-w-5xl { max-width: 1320px; }

/* Scrollbar lebih halus */
body.v2 ::-webkit-scrollbar { width: 10px; height: 10px; }
body.v2 ::-webkit-scrollbar-thumb { background: #c7d4ee; border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
body.v2 ::-webkit-scrollbar-thumb:hover { background: #a9bbe0; background-clip: padding-box; border: 2px solid transparent; }

/* ==========================================================================
   RESPONSIF
   ========================================================================== */
@media (max-width: 1180px) {
  .v2-chart-card, .v2-chart-card.kol-4, .v2-chart-card.kol-5, .v2-chart-card.kol-7, .v2-chart-card.kol-8, .v2-chart-card.kol-3 { grid-column: span 6; }
  .v2-profil-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1023px) {
  .v2-sidebar { transform: translateX(-104%); width: min(86vw, 320px); }
  .v2-app.drawer-open .v2-sidebar { transform: none; }
  .v2-app.drawer-open .v2-scrim { opacity: 1; pointer-events: auto; }
  .v2-side-close { display: grid; place-items: center; }
  .v2-workspace, .v2-app.side-mini .v2-workspace { margin-left: 0; }
  .v2-app.side-mini .v2-sidebar { width: min(86vw, 320px); }
  .v2-menu-toggle { display: inline-grid; }
  .v2-collapse-toggle { display: none; }
  .v2-search { flex: 1 1 auto; margin-left: 0; }
  .v2-search kbd, .v2-profile-text, .v2-profile-btn > .fa-chevron-down { display: none; }
  .v2-crumb { display: none; }
  .v2-main { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .v2-bottomnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px);
    border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px #0c1a3d55;
  }
  .v2-bottomnav button {
    display: grid; justify-items: center; gap: 3px; padding: 6px 0; border: 0; border-radius: var(--r-md); background: none;
    font: inherit; font-size: 10.5px; font-weight: 700; color: var(--ink-4); cursor: pointer; min-height: var(--tap);
  }
  .v2-bottomnav button i { font-size: 17px; transition: transform .3s var(--spring); }
  .v2-bottomnav button.aktif { color: var(--primary); }
  .v2-bottomnav button.aktif i { transform: translateY(-2px) scale(1.12); }
  .v2-login { grid-template-columns: 1fr; }
  .v2-login-art { min-height: 300px; padding-bottom: 34px; }
  .v2-float-cards, .v2-login-points { display: none; }
  .v2-hero-orb { display: none; }
  .v2-hero-shapes span:nth-child(3), .v2-hero-shapes span:nth-child(4) { display: none; }
  .v2-side-search kbd { display: none; }
}
@media (max-width: 760px) {
  .v2-chart-card, .v2-chart-card.kol-4, .v2-chart-card.kol-5, .v2-chart-card.kol-7, .v2-chart-card.kol-8, .v2-chart-card.kol-3, .v2-chart-card.kol-12 { grid-column: 1 / -1; }
  .v2-form-grid { grid-template-columns: 1fr; }
  .v2-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-kpi-value { font-size: 25px; }
  .v2-notif { display: none; }
  .v2-ta-chip { padding: 0 10px; font-size: 11.5px; gap: 5px; }
  .v2-login-art { min-height: 0; padding: 26px 20px; gap: 14px; }
  .v2-login-title { font-size: 26px; }
  .v2-login-card { padding: 24px 20px; }
  .v2-palette { padding-top: 6vh; }
  .v2-docpreview-head { gap: 8px; }
  .v2-format span.lbl { display: none; }
}
@media (max-width: 340px) {
  .v2-kpi-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
