/* ==========================================================================
   design_4 — "IKIM HRMIS" theme
   Token diambil daripada templat rujukan: biru jenama, permukaan cerah,
   sidebar putih (bukan gelap), sudut lembut, bayang bernada biru.
   ========================================================================== */

:root {
    /* Jenama */
    --brand-50:   #EFF6FF;
    --brand-100:  #DBEAFE;
    --brand-200:  #BFDBFE;
    --brand-300:  #93C5FD;
    --brand-400:  #60A5FA;
    --brand-500:  #3B82F6;
    --brand-600:  #2563EB;
    --brand-700:  #1D4ED8;
    --brand-soft: #E8F1FE;

    --accent-sky:  #0EA5E9;
    --accent-cyan: #06B6D4;

    /* Permukaan */
    --bg:         #F6F8FC;
    --bg-2:       #EEF2F8;
    --surface:    #FFFFFF;
    --surface-2:  #FBFCFE;
    --border:     #E5EAF2;
    --border-strong: #D5DCE6;

    /* Teks */
    --text:    #0F1A2E;
    --text-2:  #38465E;
    --muted:   #6B7A93;
    --muted-2: #94A1B5;

    /* Status */
    --success:      #10B981;
    --success-soft: #ECFDF5;
    --warn:         #F59E0B;
    --warn-soft:    #FFFBEB;
    --danger:       #EF4444;
    --danger-soft:  #FEF2F2;
    --info:         #3B82F6;
    --info-soft:    #EFF6FF;

    /* Aksen modul */
    --mod-staff:   #10B981;
    --mod-skt:     #F59E0B;
    --mod-latihan: #3B82F6;

    /* Bentuk */
    --radius-sm: 6px;
    --radius:    10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    /* Bayang — bernada biru, bukan kelabu neutral */
    --shadow-sm:  0 1px 2px rgba(15, 26, 46, .04);
    --shadow:     0 1px 3px rgba(15, 26, 46, .05), 0 1px 2px rgba(15, 26, 46, .04);
    --shadow-lg:  0 10px 30px -10px rgba(37, 99, 235, .18), 0 4px 10px -4px rgba(15, 26, 46, .06);
    --shadow-pop: 0 24px 48px -20px rgba(15, 26, 46, .18);

    /* Taip */
    --font-sans:    'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, monospace;

    --sidebar-w: 244px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* --- Rangka aplikasi ------------------------------------------------------ */
.app { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}
.sidebar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 16px;
    border-bottom: 1px solid var(--border);
}
.brand-mark {
    width: 38px; height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--brand-600), var(--accent-sky));
    box-shadow: 0 6px 16px -6px rgba(37, 99, 235, .5);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: #fff;
}
.brand-mark.is-lg { width: 44px; height: 44px; border-radius: 12px; }
.sidebar__brand-text .t { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.sidebar__brand-text .s {
    font-size: 10px; color: var(--muted); font-weight: 600; letter-spacing: .08em;
}

.nav-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--muted-2);
    padding: 16px 18px 6px;
}
.nav { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    cursor: pointer;
    transition: background .12s ease, color .12s ease;
}
.nav-item:hover { background: var(--bg-2); color: var(--text); }
.nav-item.active {
    background: var(--brand-soft);
    color: var(--brand-700);
    font-weight: 600;
}
.nav-item .ic { width: 17px; display: flex; justify-content: center; flex-shrink: 0; font-size: 15px; }
.nav-item .count {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    background: var(--bg-2);
    color: var(--muted);
    border-radius: 999px;
    padding: 2px 7px;
}
.nav-item.active .count { background: var(--brand-100); color: var(--brand-700); }
.nav-item .ic.is-staff   { color: var(--mod-staff); }
.nav-item .ic.is-skt     { color: var(--mod-skt); }
.nav-item .ic.is-latihan { color: var(--mod-latihan); }

.sidebar__foot { margin-top: auto; padding: 10px; border-top: 1px solid var(--border); }

/* --- Kandungan utama ------------------------------------------------------ */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    height: 60px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 22px;
    position: sticky;
    top: 0;
    z-index: 20;
}
.breadcrumb {
    display: flex; align-items: center; gap: 7px;
    font-size: 12.5px; color: var(--muted);
}
.breadcrumb b { color: var(--text); font-weight: 600; }
.breadcrumb .sep { color: var(--border-strong); }

.search {
    position: relative;
    margin-left: auto;
    width: 260px;
    max-width: 34vw;
}
.search i {
    position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
    color: var(--muted); font-size: 13px;
}
.search input {
    width: 100%;
    height: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface-2);
    padding: 0 10px 0 32px;
    font-size: 12.5px;
    font-family: var(--font-sans);
    color: var(--text);
}
.search input:focus {
    outline: 0;
    border-color: var(--brand-400);
    box-shadow: 0 0 0 3px var(--brand-50);
}

.icon-btn {
    width: 34px; height: 34px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-2);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    position: relative;
}
.icon-btn:hover { background: var(--bg-2); }
.icon-btn .dot {
    position: absolute; top: 6px; right: 7px;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--danger);
    border: 1.5px solid var(--surface);
}

.content { padding: 22px; flex: 1; }
.content-narrow { max-width: 1320px; margin: 0 auto; }

/* --- Kepala halaman ------------------------------------------------------- */
.page-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 14px; flex-wrap: wrap; margin-bottom: 18px;
}
.page-title {
    font-family: var(--font-display);
    font-size: 22px; font-weight: 700; letter-spacing: -.02em;
    margin: 0;
}
.page-subtitle { font-size: 13px; color: var(--muted); margin: 4px 0 0; }

/* --- Kad ------------------------------------------------------------------ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.card-pad { padding: 16px 18px; }
.card-hover { transition: transform .14s ease, box-shadow .14s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.card-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--border);
}
.card-title { font-size: 14px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.card-sub { font-size: 11.5px; color: var(--muted); margin: 3px 0 0; }

/* --- KPI ------------------------------------------------------------------ */
.kpi {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 15px 16px;
    display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
    height: 100%;
}
.kpi__label { font-size: 11.5px; color: var(--muted); font-weight: 600; margin: 0; }
.kpi__value {
    font-family: var(--font-display);
    font-size: 26px; font-weight: 700; letter-spacing: -.02em;
    margin: 5px 0 0; line-height: 1;
}
.kpi__meta { font-size: 11px; color: var(--muted); margin: 7px 0 0; display: flex; align-items: center; gap: 5px; }
.kpi__trend { font-weight: 700; display: inline-flex; align-items: center; gap: 2px; }
.kpi__trend.up { color: var(--success); }
.kpi__trend.down { color: var(--danger); }
.kpi__icon {
    width: 38px; height: 38px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; flex-shrink: 0;
}
.kpi__icon.blue   { background: var(--brand-50);    color: var(--brand-600); }
.kpi__icon.green  { background: var(--success-soft); color: var(--success); }
.kpi__icon.amber  { background: var(--warn-soft);   color: var(--warn); }
.kpi__icon.red    { background: var(--danger-soft); color: var(--danger); }
.kpi__icon.sky    { background: #E0F2FE;            color: var(--accent-sky); }

/* --- Butang --------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    padding: 8px 14px;
    font-size: 12.5px; font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    text-decoration: none;
    transition: background .12s ease, border-color .12s ease;
    white-space: nowrap;
}
.btn-primary {
    background: var(--brand-600); color: #fff;
    box-shadow: 0 6px 14px -8px rgba(37, 99, 235, .7);
}
.btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-secondary { background: var(--surface); border-color: var(--border-strong); color: var(--text-2); }
.btn-secondary:hover { background: var(--bg-2); }
.btn-soft { background: var(--brand-soft); color: var(--brand-700); }
.btn-soft:hover { background: var(--brand-100); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--bg-2); color: var(--text); }
.btn-lg { padding: 11px 18px; font-size: 13.5px; }
.btn-sm { padding: 6px 10px; font-size: 11.5px; }

/* --- Lencana & cip -------------------------------------------------------- */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    border-radius: 999px; padding: 3px 9px;
    font-size: 11px; font-weight: 700;
    background: var(--bg-2); color: var(--muted);
}
.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--success-soft); color: #047857; }
.badge-warn    { background: var(--warn-soft);    color: #92400E; }
.badge-danger  { background: var(--danger-soft);  color: #B91C1C; }
.badge-info    { background: var(--info-soft);    color: var(--brand-700); }

.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chips span {
    padding: 6px 12px; border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 11.5px; font-weight: 600; color: var(--muted);
    cursor: pointer;
}
.chips span:hover { border-color: var(--brand-300); color: var(--brand-600); }
.chips span.active {
    background: var(--brand-600); border-color: var(--brand-600); color: #fff;
}

/* --- Tab ------------------------------------------------------------------ */
.tabs {
    display: flex; gap: 3px; flex-wrap: wrap;
    background: var(--bg-2);
    border-radius: var(--radius);
    padding: 3px;
}
.tabs button {
    display: inline-flex; align-items: center; gap: 6px;
    border: 0; background: transparent;
    border-radius: 7px;
    padding: 7px 12px;
    font-size: 12px; font-weight: 600;
    font-family: var(--font-sans);
    color: var(--muted);
    cursor: pointer;
}
.tabs button:hover { color: var(--text); }
.tabs button.active {
    background: var(--surface); color: var(--brand-700);
    box-shadow: var(--shadow-sm);
}
.tabs .count {
    font-size: 10px; font-weight: 700;
    background: var(--bg-2); color: var(--muted);
    border-radius: 999px; padding: 1px 6px;
}
.tabs button.active .count { background: var(--brand-50); color: var(--brand-600); }

/* --- Jadual --------------------------------------------------------------- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl thead th {
    text-align: left;
    font-size: 10.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    color: var(--muted);
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    white-space: nowrap;
}
.tbl tbody td {
    padding: 12px 16px;
    font-size: 12.5px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl .strong { font-weight: 600; color: var(--text); }
.tbl .mono { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

/* --- Avatar --------------------------------------------------------------- */
.avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--brand-soft); color: var(--brand-700);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.avatar.sm { width: 26px; height: 26px; font-size: 9.5px; }
.avatar.lg { width: 44px; height: 44px; font-size: 14px; }
.avatar.xl { width: 76px; height: 76px; font-size: 24px; }
.person { display: flex; align-items: center; gap: 10px; }
.person .nm { font-weight: 600; font-size: 12.5px; margin: 0; line-height: 1.25; }
.person .id { font-size: 10.5px; color: var(--muted); margin: 0; font-family: var(--font-mono); }

/* --- Bar kemajuan --------------------------------------------------------- */
.progress { height: 7px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.progress-bar { height: 100%; border-radius: 999px; background: var(--brand-500); }
.progress-bar.success { background: var(--success); }
.progress-bar.warn    { background: var(--warn); }
.progress-bar.danger  { background: var(--danger); }

.prog-row { margin-bottom: 13px; }
.prog-row:last-child { margin-bottom: 0; }
.prog-top {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 12px; font-size: 12px; margin-bottom: 5px;
}
.prog-top .l { font-weight: 500; }
.prog-top .v { color: var(--muted); font-family: var(--font-mono); font-size: 11px; white-space: nowrap; }

/* --- Senarai aktiviti ----------------------------------------------------- */
.feed-item {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 11px 0; border-bottom: 1px solid var(--border);
}
.feed-item:last-child { border-bottom: 0; }
.feed-dot {
    width: 30px; height: 30px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; flex-shrink: 0;
}
.feed-dot.staff   { background: var(--success-soft); color: var(--mod-staff); }
.feed-dot.skt     { background: var(--warn-soft);    color: var(--mod-skt); }
.feed-dot.latihan { background: var(--brand-50);     color: var(--mod-latihan); }
.feed-dot.danger  { background: var(--danger-soft);  color: var(--danger); }
.feed-item .t { font-size: 12.5px; font-weight: 600; margin: 0; line-height: 1.35; }
.feed-item .m { font-size: 11px; color: var(--muted); margin: 2px 0 0; }
.feed-item .r { margin-left: auto; font-size: 11px; color: var(--muted); white-space: nowrap; }

/* --- Langkah proses ------------------------------------------------------- */
.steps { display: flex; gap: 10px; flex-wrap: wrap; }
.step {
    flex: 1; min-width: 150px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 13px;
    background: var(--surface);
}
.step .n {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--bg-2); color: var(--muted);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10.5px; font-weight: 700; margin-bottom: 7px;
}
.step .t { font-size: 12.5px; font-weight: 700; margin: 0; }
.step .d { font-size: 11px; color: var(--muted); margin: 2px 0 0; }
.step.done { border-color: var(--success); background: var(--success-soft); }
.step.done .n { background: var(--success); color: #fff; }
.step.now { border-color: var(--brand-500); background: var(--brand-50); box-shadow: var(--shadow-sm); }
.step.now .n { background: var(--brand-600); color: #fff; }

/* --- Meter 7 hari (PP Bil. 6/2005) ---------------------------------------- */
.hari { display: flex; gap: 6px; }
.hari .b {
    flex: 1; height: 40px; border-radius: var(--radius);
    background: var(--bg-2); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: var(--muted-2);
    font-family: var(--font-mono);
}
.hari .b.full { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.hari .b.part { background: var(--brand-100); border-color: var(--brand-400); color: var(--brand-700); }

/* --- Hero modul ----------------------------------------------------------- */
.modhero {
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    color: #fff;
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap;
    position: relative; overflow: hidden;
    margin-bottom: 18px;
}
.modhero::before {
    content: ""; position: absolute; right: -80px; top: -90px;
    width: 260px; height: 260px; border-radius: 50%;
    background: rgba(255, 255, 255, .1);
}
.modhero__l { display: flex; align-items: center; gap: 14px; position: relative; }
.modhero__ic {
    width: 54px; height: 54px; border-radius: 14px;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; flex-shrink: 0;
}
.modhero h2 { font-family: var(--font-display); font-size: 21px; font-weight: 700; margin: 0; letter-spacing: -.02em; }
.modhero p { font-size: 12.5px; margin: 3px 0 0; opacity: .88; }
.modhero__r { display: flex; gap: 8px; flex-wrap: wrap; position: relative; }
.modhero .btn-onhero {
    background: rgba(255, 255, 255, .95); color: var(--text); border: 0;
}
.modhero .btn-onhero-ghost {
    background: rgba(255, 255, 255, .16); color: #fff;
    border: 1px solid rgba(255, 255, 255, .3);
}
.modhero.staff   { background: linear-gradient(135deg, #059669, #34D399); }
.modhero.skt     { background: linear-gradient(135deg, #D97706, #FBBF24); }
.modhero.latihan { background: linear-gradient(135deg, var(--brand-600), var(--accent-sky)); }

/* --- Kad modul (pelancar) ------------------------------------------------- */
.modcard {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
    height: 100%;
}
.modcard:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-200);
}
.modcard__ic {
    width: 46px; height: 46px; border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 21px; margin-bottom: 13px;
}
.modcard__ic.staff   { background: var(--success-soft); color: var(--mod-staff); }
.modcard__ic.skt     { background: var(--warn-soft);    color: var(--mod-skt); }
.modcard__ic.latihan { background: var(--brand-50);     color: var(--mod-latihan); }
.modcard .t { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.modcard .d { font-size: 12px; color: var(--muted); margin: 4px 0 0; line-height: 1.45; }
.modcard__foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-top: 15px; padding-top: 13px;
    border-top: 1px solid var(--border);
    font-size: 11.5px; color: var(--muted);
}
.modcard__foot b { color: var(--text); font-family: var(--font-display); }

/* --- Carta bar ringkas ---------------------------------------------------- */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; }
.bars .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; text-align: center; }
.bars .bar { width: 100%; border-radius: 7px 7px 0 0; background: var(--brand-500); min-height: 4px; }
.bars .col.muted .bar { background: var(--brand-200); }
.bars .n { font-size: 11px; font-weight: 700; font-family: var(--font-mono); margin: 0 0 5px; }
.bars .l { font-size: 10.5px; color: var(--muted); margin: 7px 0 0; line-height: 1.25; }

/* --- Borang --------------------------------------------------------------- */
.field-label {
    display: block; font-size: 11.5px; font-weight: 600;
    color: var(--text-2); margin-bottom: 6px;
}
.input {
    width: 100%; height: 42px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 0 13px;
    font-size: 13px; font-family: var(--font-sans); color: var(--text);
}
.input:focus { outline: 0; border-color: var(--brand-400); box-shadow: 0 0 0 3px var(--brand-50); }
.textarea {
    width: 100%; border-radius: var(--radius); border: 1px solid var(--border);
    padding: 11px 13px; font-size: 12.5px; font-family: var(--font-sans);
    color: var(--text-2); background: var(--surface); resize: vertical;
}

/* --- Log masuk ------------------------------------------------------------ */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); }
.login__form { display: flex; align-items: center; justify-content: center; padding: 44px 40px; }
.login__inner { width: 100%; max-width: 400px; }
.login__hero {
    background: linear-gradient(150deg, var(--brand-700) 0%, var(--brand-600) 45%, var(--accent-sky) 100%);
    color: #fff;
    padding: 52px 48px;
    display: flex; flex-direction: column; justify-content: space-between;
    position: relative; overflow: hidden;
}
.login__hero::before,
.login__hero::after {
    content: ""; position: absolute; border-radius: 50%;
    background: rgba(255, 255, 255, .09);
}
.login__hero::before { width: 380px; height: 380px; right: -140px; top: -120px; }
.login__hero::after  { width: 300px; height: 300px; left: -110px; bottom: -130px; }
.login__hero > * { position: relative; }
.login__hero h2 {
    font-family: var(--font-display);
    font-size: 32px; font-weight: 700; line-height: 1.2;
    letter-spacing: -.025em; margin: 0 0 14px;
}
.login__hero .lead { font-size: 14px; opacity: .88; line-height: 1.6; margin: 0; max-width: 400px; }

.login__stats { display: flex; gap: 30px; flex-wrap: wrap; }
.login__stats .v { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.login__stats .l { font-size: 11.5px; opacity: .8; margin-top: 2px; }

.login__preview {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    backdrop-filter: blur(8px);
    margin-bottom: 12px;
}
.login__preview .t { font-size: 12.5px; font-weight: 700; margin: 0; }
.login__preview .m { font-size: 11px; opacity: .8; margin: 2px 0 0; }

.divider { position: relative; text-align: center; margin: 4px 0; }
.divider hr { border: 0; height: 1px; background: var(--border); margin: 0; }
.divider span {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: var(--bg); padding: 0 12px;
    font-size: 11px; color: var(--muted);
}

/* Pintasan peranan — demo pratonton */
.rolebox {
    margin-top: 24px; padding: 15px;
    background: var(--brand-soft);
    border: 1px dashed var(--brand-300);
    border-radius: var(--radius-lg);
}
.rolebox__hd {
    display: flex; align-items: center; gap: 7px; margin-bottom: 11px;
    font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--brand-700);
}
.rolegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rolecard {
    display: flex; align-items: center; gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 9px 10px;
    text-decoration: none;
    transition: border-color .12s ease, transform .12s ease;
}
.rolecard:hover { border-color: var(--brand-400); transform: translateY(-1px); }
.rolecard .ic {
    width: 26px; height: 26px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; flex-shrink: 0;
}
.rolecard .r { font-size: 10.5px; font-weight: 700; margin: 0; line-height: 1.2; }
.rolecard .n { font-size: 10px; color: var(--muted); margin: 1px 0 0; }

/* --- Grid ringkas --------------------------------------------------------- */
.grid { display: grid; gap: 14px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-8-4 { grid-template-columns: 2fr 1fr; }
.g-7-5 { grid-template-columns: 1.4fr 1fr; }

@media (max-width: 1100px) {
    .g-4 { grid-template-columns: repeat(2, 1fr); }
    .g-3, .g-8-4, .g-7-5 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .login { grid-template-columns: 1fr; }
    .login__hero { display: none; }
    .sidebar { display: none; }
    .search { width: 160px; }
}
@media (max-width: 640px) {
    .g-2, .g-4 { grid-template-columns: 1fr; }
    .rolegrid { grid-template-columns: 1fr; }
}

/* --- Utiliti -------------------------------------------------------------- */
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.text-xs { font-size: 11px; }
.text-sm { font-size: 12.5px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 14px; }
.mb-4 { margin-bottom: 18px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.ml-auto { margin-left: auto; }
.table-wrap { overflow-x: auto; }
