/* DigitSparx design system — navy / white / electric blue */
:root {
  --dsx-navy: #0a1a3f;
  --dsx-navy-2: #0f2557;
  --dsx-navy-3: #16306b;
  --dsx-blue: #1f6fff;
  --dsx-blue-600: #1559d6;
  --dsx-blue-50: #eaf1ff;
  --dsx-cyan: #22c3ee;
  --dsx-violet: #6d3cf5;
  --dsx-gold: #ffc233;
  --dsx-bg: #f4f7fc;
  --dsx-surface: #ffffff;
  --dsx-border: #e3e9f4;
  --dsx-text: #13203f;
  --dsx-muted: #6b7a99;
  --dsx-success: #12a150;
  --dsx-warning: #e89b0c;
  --dsx-danger: #e5484d;
  --dsx-info: #0ea5e9;
  --dsx-radius: 14px;
  --dsx-shadow: 0 1px 2px rgba(16, 32, 72, .05), 0 6px 20px rgba(16, 32, 72, .06);
  --bs-primary: #1f6fff;
  --bs-primary-rgb: 31, 111, 255;
  --bs-body-font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --bs-body-color: #13203f;
  --bs-link-color: #1f6fff;
  --bs-link-hover-color: #1559d6;
}

body { background: var(--dsx-bg); color: var(--dsx-text); font-size: .925rem; }
a { text-decoration: none; }
.text-muted { color: var(--dsx-muted) !important; }
.fw-semibold { font-weight: 600; }
.small-caps { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dsx-muted); font-weight: 600; }

/* ---------- buttons ---------- */
.btn { border-radius: 10px; font-weight: 500; }
.btn-primary { background: var(--dsx-blue); border-color: var(--dsx-blue); }
.btn-primary:hover, .btn-primary:focus { background: var(--dsx-blue-600); border-color: var(--dsx-blue-600); }
.btn-outline-primary { color: var(--dsx-blue); border-color: var(--dsx-blue); }
.btn-outline-primary:hover { background: var(--dsx-blue); border-color: var(--dsx-blue); }
.btn-soft { background: var(--dsx-blue-50); color: var(--dsx-blue); border: 0; }
.btn-soft:hover { background: #d6e4ff; color: var(--dsx-blue-600); }
.btn-icon { width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- layout: top header navigation ---------- */
.app-header { position: sticky; top: 0; z-index: 1030; box-shadow: 0 2px 14px rgba(10, 26, 63, .08); }
.hdr-top { background: linear-gradient(90deg, var(--dsx-navy) 0%, var(--dsx-navy-2) 60%, #1b2f74 100%); color: #fff; }
.hdr-inner { display: flex; align-items: center; gap: 1rem; padding-top: .55rem; padding-bottom: .55rem; }
.app-header .brand { display: flex; align-items: center; gap: .6rem; color: #fff; flex-shrink: 0; }
.app-header .brand img { width: 38px; height: 38px; }
.brand-name { font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em; color: #fff; line-height: 1; display: block; }
.brand-name span { color: #4d93ff; }
.brand-tag { font-size: .56rem; letter-spacing: .16em; color: #8ea4d6; margin-top: .25rem; white-space: nowrap; display: block; }
.firm-pill { align-items: center; gap: .45rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #dfe7fb; border-radius: 30px; padding: .3rem .8rem; font-size: .8rem; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.firm-pill a { color: #9cc0ff; }
.hdr-search { flex: 1; max-width: 520px; position: relative; margin-left: auto; }
.hdr-search input { width: 100%; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.08); color: #fff; border-radius: 10px; padding: .48rem .8rem .48rem 2.3rem; font-size: .88rem; }
.hdr-search input::placeholder { color: #9fb0d6; }
.hdr-search input:focus { outline: 0; background: #fff; color: var(--dsx-text); border-color: #fff; }
.hdr-search i { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: #9fb0d6; }
.hdr-actions { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.hdr-search + .hdr-actions { margin-left: .5rem; }
.hdr-icon { position: relative; width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #dfe7fb; background: transparent; border: 0; font-size: 1.15rem; }
.hdr-icon:hover { background: rgba(255,255,255,.1); color: #fff; }
.hdr-icon .dot { position: absolute; top: 5px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--dsx-danger); color: #fff; font-size: .62rem; display: flex; align-items: center; justify-content: center; }
.user-btn { display: flex; align-items: center; gap: .6rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; border-radius: 12px; padding: .3rem .6rem .3rem .35rem; }
.user-btn:hover { background: rgba(255,255,255,.12); }
.user-name { font-weight: 600; font-size: .85rem; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hdr-nav { background: #fff; border-bottom: 1px solid var(--dsx-border); padding: 0; }
.hdr-nav .nav-link { color: #33405f; font-weight: 600; font-size: .9rem; padding: .85rem .9rem !important; display: flex; align-items: center; gap: .45rem; border-bottom: 3px solid transparent; }
.hdr-nav .nav-link i { font-size: 1rem; color: var(--dsx-muted); }
.hdr-nav .nav-link:hover { color: var(--dsx-blue); }
.hdr-nav .nav-link.active { color: var(--dsx-blue); border-bottom-color: var(--dsx-blue); }
.hdr-nav .nav-link.active i { color: var(--dsx-blue); }
.hdr-nav .navbar-toggler { border: 1px solid var(--dsx-border); font-size: .9rem; font-weight: 600; color: var(--dsx-text); }
.nav-count { background: var(--dsx-warning); color: #fff; border-radius: 20px; font-size: .65rem; padding: 0 .4rem; }
.dropdown-menu.mega { padding: .4rem; min-width: 290px; margin-top: 0 !important; }
.mega-item { display: flex; gap: .7rem; align-items: flex-start; border-radius: 10px; padding: .55rem .65rem; white-space: normal; }
.mega-item:hover { background: var(--dsx-blue-50); }
.mega-item.active { background: var(--dsx-blue-50); color: var(--dsx-blue); }
.mega-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--dsx-blue-50); color: var(--dsx-blue); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mega-hint { display: block; font-size: .74rem; color: var(--dsx-muted); }
@media (min-width: 992px) { .hdr-nav .dropdown:hover > .dropdown-menu { display: block; } }
.avatar { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--dsx-blue), var(--dsx-violet)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.avatar.sm { width: 34px; height: 34px; font-size: .75rem; border-radius: 9px; }
.content { padding: 1.5rem; flex: 1; max-width: 1600px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.page-head h1 { font-size: 1.45rem; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.page-head .crumbs { font-size: .8rem; color: var(--dsx-muted); margin-bottom: .2rem; }
.page-head .crumbs a { color: var(--dsx-muted); }
.app-footer { padding: 1rem 1.5rem; font-size: .78rem; color: var(--dsx-muted); border-top: 1px solid var(--dsx-border); background: #fff; }
@media (max-width: 991.98px) { .content { padding: 1rem; } .hdr-nav .nav-link { border-bottom: 0; border-left: 3px solid transparent; } .hdr-nav .nav-link.active { border-left-color: var(--dsx-blue); } }

/* ---------- role badges ---------- */
.role-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .18rem .5rem; border-radius: 6px; line-height: 1.2; white-space: nowrap; }
.role-badge i { font-size: .75rem; }
.role-super { background: #ffe9a8; color: #6b4a00; }
.role-admin { background: #d8e6ff; color: #1046b8; }
.role-manager { background: #d3f4f1; color: #0b6b62; }
.role-staff { background: #e2f6e7; color: #146c34; }
.role-client { background: #f2e8ff; color: #5b2fd3; }
.role-bg-super { background: linear-gradient(135deg, #f5b40f, #e07b00); }
.role-bg-admin { background: linear-gradient(135deg, #1f6fff, #6d3cf5); }
.role-bg-manager { background: linear-gradient(135deg, #0ea5a0, #1f6fff); }
.role-bg-staff { background: linear-gradient(135deg, #12a150, #0ea5a0); }
.role-bg-client { background: linear-gradient(135deg, #6d3cf5, #c03cf5); }
.role-welcome { border-radius: var(--dsx-radius); padding: 1.1rem 1.25rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; background: linear-gradient(120deg, #ffffff 0%, #f1f6ff 100%); border: 1px solid var(--dsx-border); box-shadow: var(--dsx-shadow); }

/* ---------- password show/hide ---------- */
.pw-toggle { border-color: #d8e0ee; background: #fff; color: var(--dsx-muted); }
.pw-toggle:hover { color: var(--dsx-blue); background: #fff; }

/* ---------- cards ---------- */
.card { border: 1px solid var(--dsx-border); border-radius: var(--dsx-radius); box-shadow: var(--dsx-shadow); }
.card-header { background: transparent; border-bottom: 1px solid var(--dsx-border); padding: .9rem 1.15rem; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.card-header .card-title { margin: 0; font-size: .98rem; font-weight: 650; }
.card-body { padding: 1.15rem; }
.kpi { padding: 1.05rem 1.15rem; display: flex; flex-direction: row; gap: .9rem; align-items: flex-start; height: 100%; }
.kpi .kpi-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.kpi .kpi-label { font-size: .78rem; color: var(--dsx-muted); font-weight: 500; }
.kpi .kpi-value { font-size: 1.55rem; font-weight: 750; line-height: 1.15; letter-spacing: -.02em; }
.kpi .kpi-sub { font-size: .74rem; margin-top: .15rem; }
a.card-link-wrap { color: inherit; display: block; height: 100%; }
a.card-link-wrap:hover .card { border-color: #bcd0f7; }
.tint-blue { background: #e8f0ff; color: var(--dsx-blue); }
.tint-violet { background: #f0eaff; color: var(--dsx-violet); }
.tint-green { background: #e5f7ed; color: var(--dsx-success); }
.tint-amber { background: #fff4de; color: #c98306; }
.tint-red { background: #fdeaea; color: var(--dsx-danger); }
.tint-cyan { background: #e2f7fd; color: #0891b2; }
.tint-navy { background: #e6eaf4; color: var(--dsx-navy); }

/* ---------- tables ---------- */
.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table > thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--dsx-muted); font-weight: 650; background: #f8faff; border-bottom: 1px solid var(--dsx-border); white-space: nowrap; padding: .7rem .85rem; }
.table > tbody td { padding: .7rem .85rem; vertical-align: middle; border-color: #eef2f9; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: #f6f9ff; }
.sort-link { color: inherit; }
.table-card .table-responsive { border-radius: 0 0 var(--dsx-radius) var(--dsx-radius); }
.cell-title { font-weight: 600; color: var(--dsx-text); }
.cell-sub { font-size: .78rem; color: var(--dsx-muted); }

/* ---------- badges ---------- */
.badge { font-weight: 600; border-radius: 6px; padding: .35em .6em; font-size: .72rem; }
.badge-soft-success { background: #e3f6eb; color: #0c7a3c; }
.badge-soft-warning { background: #fff2d6; color: #9a6400; }
.badge-soft-danger { background: #fde6e7; color: #c0262c; }
.badge-soft-info { background: #e0f4fd; color: #0369a1; }
.badge-soft-primary { background: #e6efff; color: #1652c4; }
.badge-soft-secondary { background: #eef1f6; color: #4b5873; }

/* ---------- forms ---------- */
.form-control, .form-select { border-radius: 10px; border-color: #d8e0ee; padding: .5rem .8rem; }
.form-control:focus, .form-select:focus { border-color: var(--dsx-blue); box-shadow: 0 0 0 .2rem rgba(31,111,255,.15); }
.form-label { font-weight: 600; font-size: .82rem; color: #33405f; margin-bottom: .3rem; }
.form-label .req { color: var(--dsx-danger); }
.form-section-title { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dsx-blue); margin: .5rem 0 .9rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.filter-bar .form-control, .filter-bar .form-select { width: auto; min-width: 140px; }
.filter-bar .form-control.grow { flex: 1; min-width: 200px; }

/* ---------- misc components ---------- */
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--dsx-muted); }
.empty-state i { font-size: 2.4rem; color: #b6c4e2; display: block; margin-bottom: .5rem; }
.empty-state h6 { color: var(--dsx-text); font-weight: 650; margin-bottom: .3rem; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 1rem 1.6rem; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: -6px; width: 2px; background: var(--dsx-border); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 1px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--dsx-blue); }
.timeline .t-time { font-size: .74rem; color: var(--dsx-muted); }
.stage-track { display: flex; gap: 4px; }
.stage-track span { flex: 1; height: 6px; border-radius: 3px; background: #e3e9f4; }
.stage-track span.done { background: var(--dsx-blue); }
.stage-track span.current { background: var(--dsx-cyan); }
.progress { height: 8px; border-radius: 6px; background: #e8edf7; }
.progress-bar { background: linear-gradient(90deg, var(--dsx-blue), var(--dsx-cyan)); }
.list-tight .list-group-item { padding: .65rem 1.15rem; border-color: #eef2f9; }
.notice { border-radius: 12px; padding: .85rem 1rem; font-size: .85rem; display: flex; gap: .7rem; align-items: flex-start; }
.notice i { font-size: 1.1rem; }
.notice-info { background: #eaf3ff; color: #19407f; }
.notice-warn { background: #fff6e0; color: #7a5200; }
.notice-danger { background: #fdecec; color: #8c1d22; }
.dl-grid { display: grid; grid-template-columns: 160px 1fr; gap: .45rem 1rem; font-size: .88rem; margin: 0; }
.dl-grid dt { color: var(--dsx-muted); font-weight: 500; }
.dl-grid dd { margin: 0; word-break: break-word; }
@media (max-width: 575.98px) { .dl-grid { grid-template-columns: 1fr; } .dl-grid dd { margin-bottom: .4rem; } }
.nav-tabs-line { border-bottom: 1px solid var(--dsx-border); gap: .3rem; flex-wrap: nowrap; overflow-x: auto; }
.nav-tabs-line .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--dsx-muted); font-weight: 600; padding: .7rem .9rem; white-space: nowrap; border-radius: 0; }
.nav-tabs-line .nav-link.active { color: var(--dsx-blue); border-bottom-color: var(--dsx-blue); background: transparent; }
.alert { border-radius: 12px; border: 0; }
.dropdown-menu { border-radius: 12px; border-color: var(--dsx-border); box-shadow: 0 12px 32px rgba(16,32,72,.14); }
.notif-item { white-space: normal; font-size: .82rem; padding: .6rem 1rem; }
.notif-item.unread { background: #f3f7ff; }
.modal-content { border-radius: 16px; border: 0; }

/* ---------- calendar ---------- */
.cal { width: 100%; table-layout: fixed; border-collapse: collapse; }
.cal th { font-size: .72rem; text-transform: uppercase; color: var(--dsx-muted); padding: .5rem; text-align: center; }
.cal td { vertical-align: top; height: 110px; border: 1px solid var(--dsx-border); padding: .35rem; background: #fff; }
.cal td.other { background: #fafbfe; color: #b3bdd3; }
.cal td.today { background: #f2f7ff; }
.cal .day-num { font-size: .78rem; font-weight: 700; }
.cal td.today .day-num { background: var(--dsx-blue); color: #fff; border-radius: 6px; padding: 0 .35rem; }
.cal .ev { display: block; font-size: .7rem; padding: 2px 5px; border-radius: 5px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-compliance { background: #fff2d6; color: #8a5a00; }
.ev-overdue { background: #fde6e7; color: #b42227; }
.ev-done { background: #e3f6eb; color: #0c7a3c; text-decoration: line-through; }
.ev-task { background: #e6efff; color: #1652c4; }
.ev-appt { background: #f0eaff; color: #5b2fd3; }
@media (max-width: 767.98px) { .cal td { height: 70px; } .cal .ev { font-size: .6rem; } }

/* ---------- auth pages ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-hero { background: radial-gradient(1200px 500px at 10% 0%, #1f6fff55, transparent), radial-gradient(700px 400px at 100% 100%, #6d3cf555, transparent), var(--dsx-navy); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-hero h2 { font-size: 2.3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.auth-hero h2 em { font-style: normal; color: var(--dsx-gold); }
.auth-hero .feature { display: flex; gap: .8rem; align-items: center; margin-bottom: .85rem; color: #d5def5; }
.auth-hero .feature i { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #7fb0ff; font-size: 1.1rem; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 2rem; background: #fff; }
.auth-card { width: 100%; max-width: 410px; }
.auth-card h1 { font-size: 1.6rem; font-weight: 750; }
@media (max-width: 991.98px) { .auth-wrap { grid-template-columns: 1fr; } .auth-hero { display: none; } }
.brand-inline { display: flex; align-items: center; gap: .6rem; }
.brand-inline img { width: 42px; height: 42px; }
.brand-inline .brand-name { color: var(--dsx-navy); }
.brand-inline .brand-tag { color: var(--dsx-muted); }

/* ---------- client portal ---------- */
.portal-nav { background: var(--dsx-navy); }
.portal-nav .navbar-brand .brand-name { font-size: 1.15rem; }
.portal-nav .nav-link { color: #c9d5f0; border-radius: 8px; padding: .45rem .8rem !important; }
.portal-nav .nav-link.active, .portal-nav .nav-link:hover { color: #fff; background: rgba(255,255,255,.1); }
.portal-hero { background: linear-gradient(120deg, var(--dsx-navy) 0%, var(--dsx-navy-3) 60%, #2a3f9e 100%); color: #fff; border-radius: var(--dsx-radius); padding: 1.5rem; }

/* ---------- print ---------- */
.print-sheet { max-width: 900px; margin: 0 auto; background: #fff; padding: 2rem; }
@media print {
  .no-print, .app-header, .app-footer, .page-head .btn, .portal-nav { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 0; }
  .content { padding: 0; }
}
.min-w-0 { min-width: 0; }
@media (max-width: 575.98px) { .kpi { flex-direction: column; gap: .55rem; } .kpi .kpi-value { font-size: 1.3rem; } }

/* ---------- login role selector ---------- */
.role-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: 1.25rem; }
.role-tab { border: 1.5px solid var(--dsx-border); border-radius: 12px; padding: .65rem .3rem; text-align: center; cursor: pointer; background: #fff; transition: all .15s; user-select: none; }
.role-tab i { font-size: 1.3rem; display: block; margin-bottom: .2rem; color: var(--dsx-muted); }
.role-tab span { font-size: .74rem; font-weight: 700; color: #33405f; line-height: 1.15; display: block; }
.role-tab small { font-size: .62rem; color: var(--dsx-muted); display: block; }
.role-tab:hover { border-color: #bcd0f7; }
.btn-check:checked + .role-tab { border-color: var(--dsx-blue); background: var(--dsx-blue-50); box-shadow: 0 0 0 3px rgba(31,111,255,.12); }
.btn-check:checked + .role-tab i { color: var(--dsx-blue); }
.btn-check:focus-visible + .role-tab { outline: 2px solid var(--dsx-blue); }
@media (max-width: 420px) { .role-tabs { grid-template-columns: repeat(2, 1fr); } }

/* ---------- help / SOP ---------- */
.sop-step { display: flex; gap: .9rem; padding: .75rem 0; border-bottom: 1px dashed var(--dsx-border); }
.sop-step:last-child { border-bottom: 0; }
.sop-num { width: 30px; height: 30px; border-radius: 50%; background: var(--dsx-blue); color: #fff; font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sop-where { font-size: .76rem; color: var(--dsx-blue); background: var(--dsx-blue-50); border-radius: 6px; padding: .1rem .45rem; display: inline-block; margin-top: .25rem; }
.sop-role-head { display: flex; gap: 1rem; align-items: center; }
.auth-hero .brand-name { color: #fff; } .auth-hero .brand-name span { color: #4d93ff; }

/* ---------- powered by ---------- */
.powered-by { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; color: var(--dsx-muted); padding: .25rem .6rem; border-radius: 20px; border: 1px solid var(--dsx-border); background: #fff; transition: all .15s; }
.powered-by strong { color: var(--dsx-blue); font-weight: 700; }
.powered-by:hover { color: var(--dsx-navy); border-color: #bcd0f7; box-shadow: 0 2px 8px rgba(31,111,255,.12); }
.powered-by.on-dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); color: #b9c6e6; }
.powered-by.on-dark strong { color: #7fb0ff; }

/* ========== Visual polish v1.1 ========== */
body { background:
  radial-gradient(1200px 400px at 100% -10%, rgba(31,111,255,.06), transparent 60%),
  radial-gradient(900px 380px at -10% 0%, rgba(109,60,245,.05), transparent 60%),
  var(--dsx-bg); background-attachment: fixed; }
.btn-primary { background: linear-gradient(135deg, #2a78ff 0%, #1559d6 100%); border: 0; box-shadow: 0 4px 12px rgba(31,111,255,.25); }
.btn-primary:hover, .btn-primary:focus { background: linear-gradient(135deg, #1f6fff 0%, #0f4bb8 100%); box-shadow: 0 6px 16px rgba(31,111,255,.32); }
.btn-success { box-shadow: 0 4px 12px rgba(18,161,80,.22); }
.card { transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
a.card-link-wrap:hover .card { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(16,32,72,.10); }
.kpi { position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; right: -28px; top: -28px; width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle, rgba(31,111,255,.07), transparent 70%); pointer-events: none; }
.kpi .kpi-icon { box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.card-header { background: linear-gradient(180deg, #fbfcff 0%, #ffffff 100%); border-radius: var(--dsx-radius) var(--dsx-radius) 0 0 !important; }
.table > thead th { background: #f5f8ff; }
.table-card { overflow: hidden; }
.page-head h1 { background: linear-gradient(90deg, var(--dsx-navy) 0%, #1f4fbf 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.role-welcome { background: linear-gradient(120deg, #ffffff 0%, #eef4ff 55%, #f4efff 100%); }
.role-welcome h1 { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--dsx-text); }
.form-control, .form-select { background-color: #fff; }
.form-control:hover, .form-select:hover { border-color: #c3d0e8; }
.badge { letter-spacing: .01em; }
.notice { border: 1px solid transparent; }
.notice-info { border-color: #d6e6ff; }
.notice-warn { border-color: #fde3a7; }
.notice-danger { border-color: #f9cfd1; }
.empty-state i { background: var(--dsx-blue-50); width: 72px; height: 72px; border-radius: 20px; display: inline-flex !important; align-items: center; justify-content: center; color: var(--dsx-blue); font-size: 2rem; margin-bottom: .8rem; }
.hdr-nav { box-shadow: 0 1px 0 rgba(16,32,72,.04); }
.dropdown-menu { animation: dsxFade .14s ease-out; }
@keyframes dsxFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
::selection { background: rgba(31,111,255,.18); }
/* login hero */
.auth-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 42px 42px; mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 75%); pointer-events: none; }
.auth-hero > * { position: relative; }
.auth-form { background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%); }
.auth-card { background: #fff; border: 1px solid var(--dsx-border); border-radius: 20px; padding: 2rem; box-shadow: 0 20px 50px rgba(16,32,72,.08); }
@media (max-width: 575.98px) { .auth-card { padding: 1.25rem; border-radius: 16px; } }
.portal-hero { position: relative; overflow: hidden; }
.portal-hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(77,147,255,.35), transparent 70%); }
.portal-hero > * { position: relative; z-index: 1; }
.auth-card { max-width: 470px; }
.auth-hero .powered-by { align-self: flex-start; }
