:root {
  --ink: #1b2a3a;
  --muted: #5b6b7b;
  --faint: #8a98a6;
  --line: #e4ebf0;
  --card: #ffffff;
  --card-soft: #f1f6f7;
  --accent: #1f5e8c;
  --orange: #b4561f;
  --green-bg: #e3f5ea;
  --green: #1d7a45;
  --yellow-bg: #fff3c4;
  --yellow: #7a5a00;
  --radius: 20px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body {
  font-family: var(--font);
  color: var(--ink);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: #2b8fcb linear-gradient(135deg, #3ab8c8 0%, #2b8fcb 30%, #27b89c 70%, #3dd6a0 100%) fixed;
  -webkit-font-smoothing: antialiased;
}
/* Lingkaran dekoratif seperti halaman login Workhub (bawana.xyz). */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  --c: rgba(255,255,255,.15);
  background:
    radial-gradient(circle 210px at 110px 90px, var(--c) 99.6%, transparent 100%),
    radial-gradient(circle 170px at right 90px top 110px, var(--c) 99.6%, transparent 100%),
    radial-gradient(circle 150px at left 90px bottom 70px, var(--c) 99.6%, transparent 100%),
    radial-gradient(circle 110px at right 170px bottom 150px, var(--c) 99.6%, transparent 100%);
}
a { color: inherit; }
.wrap { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 32px 24px 64px; }

/* Header */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.brand-logo { width: 44px; height: 44px; flex: none; border-radius: 10px; background: linear-gradient(to bottom right, #2b8fcb, #27b89c); padding: 4px; box-shadow: 0 2px 8px rgba(0,60,100,.15); }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-name { font-weight: 800; font-size: 22px; letter-spacing: .12em; }
.brand-sep { width: 1px; height: 24px; background: rgba(255,255,255,.5); }
.brand-sub { font-size: 13px; letter-spacing: .18em; opacity: .9; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.pill { background: rgba(255,255,255,.25); color: #fff; border: 0; border-radius: 12px; padding: 10px 18px; font: 600 14px var(--font); cursor: pointer; text-decoration: none; }
button.pill:hover { background: rgba(255,255,255,.35); }

.back { display: inline-block; margin-top: 36px; color: #fff; text-decoration: none; font-size: 14px; opacity: .95; }
.back:hover { text-decoration: underline; }
h1 { color: #fff; font-size: 44px; line-height: 1.1; margin: 8px 0 8px; font-weight: 800; letter-spacing: -.01em; }
.lede { color: rgba(255,255,255,.95); margin: 0; font-size: 16px; }

.section-label { display: flex; align-items: center; gap: 12px; color: #fff; margin: 36px 0 18px; font-size: 15px; }
.tag { background: #fff; color: var(--accent); font-weight: 700; font-size: 11px; letter-spacing: .14em; padding: 6px 12px; border-radius: 999px; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.span-2 { grid-column: span 2; }
.stack { display: grid; gap: 24px; align-content: start; }
.card { background: var(--card); border-radius: var(--radius); padding: 28px 30px; box-shadow: 0 8px 30px rgba(20, 60, 90, .08); min-width: 0; }
.card.soft { background: var(--card-soft); }
.label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.sub { color: var(--ink); margin: 6px 0 0; font-size: 15px; }
.note { color: var(--muted); font-size: 13.5px; line-height: 1.45; margin: 10px 0 0; }
.num { font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -.02em; }
.num-xl { font-size: clamp(80px, 12vw, 120px); line-height: 1; }
.num-l { font-size: 56px; line-height: 1.05; margin-top: 10px; }
.num-orange { color: var(--orange); }
.unit { font-size: 22px; color: var(--muted); margin-left: 12px; }

.main-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.info-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #f6f9fb; color: var(--accent); font: 600 15px var(--font); cursor: pointer; flex: none; }
.big-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 26px 0 22px; flex-wrap: wrap; }
.badge { display: inline-block; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-yellow { background: var(--yellow-bg); color: var(--yellow); }

.definition { background: #f4f7fa; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.definition h3 { margin: 0 0 6px; font-size: 12px; letter-spacing: .12em; color: var(--accent); }
.definition p { margin: 0; font-size: 14px; line-height: 1.55; color: #34495c; }

.meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; font-size: 13px; color: var(--muted); align-items: center; }
.meta b { color: var(--ink); }

.skeleton { display: inline-block; background: linear-gradient(90deg, #e6ecf0 25%, #f2f5f7 50%, #e6ecf0 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; color: transparent !important; }
.skeleton.xl { width: 220px; height: 100px; }
.skeleton.l { width: 130px; height: 56px; }
@keyframes sk { to { background-position: -200% 0; } }
.error-text { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* Tables */
.table-wrap { overflow-x: auto; margin-top: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 12px; border-bottom: 1px solid var(--line); }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 700; border-bottom: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.small { font-size: 13px; color: var(--muted); }
.link { color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; }
.link:hover { text-decoration: underline; }
a.card-link { display: block; text-decoration: none; color: inherit; transition: transform .12s; }
a.card-link:hover { transform: translateY(-2px); }

/* Forms */
.btn { background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 11px 18px; font: 600 14px var(--font); cursor: pointer; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.secondary { background: #e8eef3; color: var(--ink); }
select, input[type=text], input[type=password], textarea { font: 15px var(--font); border: 1px solid #cfd9e1; border-radius: 10px; padding: 10px 12px; background: #fff; color: var(--ink); max-width: 100%; }
textarea { width: 100%; min-height: 220px; font-family: ui-monospace, Menlo, monospace; font-size: 14px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.msg { margin-top: 14px; font-size: 14px; }
.msg.err { color: #a12b2b; }
.msg.ok { color: var(--green); }
.hidden { display: none !important; }

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  h1 { font-size: 32px; }
  .wrap { padding: 20px 16px 48px; }
  .card { padding: 22px 20px; }
  .brand-sub, .brand-sep { display: none; }
  .date-pill { display: none; }
}

/* Login — sama dengan bawana.xyz */
.login-main { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 0 16px; }
.login-card { width: 100%; max-width: 380px; background: #fff; border-radius: 20px; padding: 36px 36px 32px; box-shadow: 0 20px 60px rgba(0,80,120,.18), 0 2px 8px rgba(0,0,0,.06); }
.login-head { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.login-head h1 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.25; color: #1a2a3a; letter-spacing: 0; }
.login-head p { margin: 2px 0 0; font-size: 12.5px; color: #8a9bb0; }
.login-form { display: flex; flex-direction: column; }
.login-label { margin-bottom: 7px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #8a9bb0; }
.login-field { display: flex; align-items: center; height: 46px; margin-bottom: 16px; padding: 0 14px; border: 1.5px solid #e8eef4; border-radius: 10px; background: #f5f8fb; transition: border-color .15s, background .15s; }
.login-field:focus-within { border-color: #2b8fcb; background: #fff; }
.login-field input { width: 100%; border: 0; padding: 0; background: transparent; font: 14px var(--font); color: #1a2a3a; outline: none; }
.login-btn { margin-top: 8px; height: 48px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; font: 500 14px var(--font); cursor: pointer; color: #fff; background: linear-gradient(to right, #2b8fcb, #27b89c); transition: transform .15s, opacity .15s; }
.login-btn:hover:not(:disabled) { transform: translateY(-1px); opacity: .95; }
.login-btn:disabled { cursor: not-allowed; background: #e8eef4; color: #8a9bb0; opacity: .9; }
.login-error { margin: 14px 0 0; font-size: 13px; color: #c0392b; }

/* Language toggle */
.lang-toggle { display: inline-flex; background: rgba(255,255,255,.25); border-radius: 12px; padding: 3px; gap: 2px; }
.lang-toggle button { border: 0; background: transparent; color: #fff; font: 600 12.5px var(--font); letter-spacing: .04em; padding: 7px 10px; border-radius: 9px; cursor: pointer; }
.lang-toggle button.active { background: #fff; color: var(--accent); }
.login-main { flex-direction: column; gap: 16px; }
