:root {
  --kt-primary: #009ef7;
  --kt-primary-light: #f1faff;
  --kt-primary-active: #0095e8;
  --kt-success: #50cd89;
  --kt-success-light: #e8fff3;
  --kt-danger: #f1416c;
  --kt-danger-light: #fff5f8;
  --kt-warning: #ffc700;
  --kt-warning-light: #fff8dd;
  --kt-info: #7239ea;
  --kt-info-light: #f8f5ff;
  --kt-dark: #181c32;
  --kt-gray-100: #f5f8fa;
  --kt-gray-200: #eff2f5;
  --kt-gray-300: #e4e6ef;
  --kt-gray-400: #b5b5c3;
  --kt-gray-500: #a1a5b7;
  --kt-gray-600: #7e8299;
  --kt-gray-700: #5e6278;
  --kt-gray-800: #3f4254;
  --kt-gray-900: #181c32;
  --kt-sidebar: #1e1e2d;
  --kt-sidebar-hover: #1b1b28;
  --kt-sidebar-active: #1b1b28;
  --kt-body: #f5f8fa;
  --kt-card-shadow: 0 0 20px 0 rgba(76, 87, 125, 0.02);
  --kt-font: "Inter", "Plus Jakarta Sans", system-ui, sans-serif;
  --kt-radius: 0.625rem;
  --kt-header-h: 65px;
  --kt-sidebar-w: 265px;
  --kt-toolbar-h: auto;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--kt-font);
  color: var(--kt-gray-800);
  background: var(--kt-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 13px;
  line-height: 1.5;
}
a { color: var(--kt-primary); text-decoration: none; }
a:hover { color: var(--kt-primary-active); }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ===== APP SHELL ===== */
.kt-app {
  min-height: 100vh;
  display: flex;
  background: var(--kt-body);
}

.kt-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--kt-sidebar-w);
  background: var(--kt-sidebar);
  color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform .25s ease;
}

.kt-sidebar-brand {
  height: var(--kt-header-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 25px;
  text-decoration: none;
  color: #fff !important;
  flex-shrink: 0;
}
.kt-brand-mark {
  width: 35px;
  height: 35px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #009ef7 0%, #50cd89 100%);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -.02em;
  box-shadow: 0 4px 12px rgba(0,158,247,.35);
}
.kt-brand-text { display: grid; line-height: 1.15; }
.kt-brand-text strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.kt-brand-text span {
  font-size: 11px;
  color: #565674;
  font-weight: 500;
  margin-top: 1px;
}

.kt-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 15px 0 20px;
}
.kt-sidebar-nav::-webkit-scrollbar { width: 4px; }
.kt-sidebar-nav::-webkit-scrollbar-thumb { background: #2b2b40; border-radius: 4px; }

.kt-menu-section { margin: 0 0 8px; }
.kt-menu-section-title {
  padding: 0 25px;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #4a4a68;
}

.kt-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 15px 2px;
  padding: 11px 12px;
  border-radius: 6px;
  color: #9899ac !important;
  font-weight: 500;
  font-size: 13px;
  transition: color .15s ease, background .15s ease;
}
.kt-menu-link i {
  font-size: 17px;
  width: 22px;
  text-align: center;
  opacity: .85;
}
.kt-menu-link:hover {
  background: rgba(255,255,255,.04);
  color: #fff !important;
}
.kt-menu-link.active {
  background: var(--kt-primary);
  color: #fff !important;
  box-shadow: 0 0 10px 0 rgba(0,158,247,.35);
}
.kt-menu-link.active i { opacity: 1; }

.kt-sidebar-footer {
  padding: 15px 20px 20px;
  flex-shrink: 0;
  border-top: 1px dashed rgba(255,255,255,.06);
}
.kt-role-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #1b1b28;
}
.kt-role-chip .avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #009ef7, #7239ea);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}
.kt-role-chip .meta { display: grid; line-height: 1.25; min-width: 0; }
.kt-role-chip .meta strong {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}
.kt-role-chip .meta span { font-size: 11px; color: #565674; }

/* ===== MAIN ===== */
.kt-wrapper {
  margin-left: var(--kt-sidebar-w);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.kt-header {
  height: var(--kt-header-h);
  background: #fff;
  border-bottom: 1px solid var(--kt-gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 10px 30px 0 rgba(82,63,105,.05);
}
.kt-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.kt-menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: var(--kt-gray-100);
  color: var(--kt-gray-700);
  cursor: pointer;
  place-items: center;
  font-size: 18px;
}
.kt-menu-toggle:hover { background: var(--kt-gray-200); }

.kt-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--kt-gray-500);
}
.kt-breadcrumb a { color: var(--kt-gray-600); font-weight: 500; }
.kt-breadcrumb a:hover { color: var(--kt-primary); }
.kt-breadcrumb .sep { color: var(--kt-gray-400); font-size: 11px; }
.kt-breadcrumb .current { color: var(--kt-gray-800); font-weight: 600; }

.kt-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kt-site-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 6px;
  background: var(--kt-primary-light);
  color: var(--kt-primary);
  font-size: 12px;
  font-weight: 600;
}
.kt-user-menu {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border-radius: 8px;
  cursor: default;
}
.kt-user-menu .avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #009ef7, #50cd89);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
}
.kt-user-menu .meta { display: grid; line-height: 1.2; }
.kt-user-menu .meta strong { font-size: 12px; font-weight: 600; color: var(--kt-gray-800); }
.kt-user-menu .meta span { font-size: 11px; color: var(--kt-gray-500); }

.kt-content {
  padding: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.kt-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 30px;
  background: #fff;
  border-bottom: 1px solid var(--kt-gray-200);
  margin-bottom: 25px;
}
.kt-page-title h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--kt-gray-900);
  line-height: 1.2;
}
.kt-page-title p {
  margin-top: 4px;
  color: var(--kt-gray-500);
  font-size: 13px;
  font-weight: 500;
}
.kt-toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.kt-content > section,
.kt-content > .kt-card,
.kt-content > .kt-grid-2,
.kt-content > .kt-stats,
.kt-content > .kt-role-grid,
.kt-content > .kt-detail-hero,
.kt-content > .kt-detail-grid,
.kt-content > .kt-alert,
.kt-content > .kt-pager {
  margin-left: 30px;
  margin-right: 30px;
  margin-bottom: 20px;
}

/* ===== BUTTONS ===== */
.kt-btn {
  appearance: none;
  border: 0;
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: .15s ease;
  text-decoration: none !important;
  line-height: 1.2;
  white-space: nowrap;
}
.kt-btn-primary {
  background: var(--kt-primary);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(0,158,247,.3);
}
.kt-btn-primary:hover {
  background: var(--kt-primary-active);
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(0,158,247,.4);
}
.kt-btn-light {
  background: var(--kt-gray-100);
  color: var(--kt-gray-700) !important;
}
.kt-btn-light:hover {
  background: var(--kt-gray-200);
  color: var(--kt-gray-900) !important;
}
.kt-btn-success { background: var(--kt-success); color: #fff !important; }
.kt-btn-danger { background: var(--kt-danger); color: #fff !important; }
.kt-btn-sm { padding: 7px 12px; font-size: 11px; }

/* ===== CARDS ===== */
.kt-card {
  background: #fff;
  border: 0;
  border-radius: var(--kt-radius);
  box-shadow: var(--kt-card-shadow);
}
.kt-card-header {
  padding: 20px 25px;
  border-bottom: 1px solid var(--kt-gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 60px;
}
.kt-card-header h2,
.kt-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--kt-gray-900);
}
.kt-card-body { padding: 20px 25px; }
.kt-card-flush .kt-card-body { padding: 0; }

/* ===== STATS ===== */
.kt-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.kt-stat {
  background: #fff;
  border-radius: var(--kt-radius);
  padding: 22px 24px;
  box-shadow: var(--kt-card-shadow);
  display: flex;
  gap: 16px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.kt-stat::after {
  content: "";
  position: absolute;
  right: -10px;
  top: -10px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  opacity: .06;
  background: currentColor;
  pointer-events: none;
}
.kt-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}
.kt-stat-icon.primary { background: var(--kt-primary-light); color: var(--kt-primary); }
.kt-stat-icon.success { background: var(--kt-success-light); color: var(--kt-success); }
.kt-stat-icon.warning { background: var(--kt-warning-light); color: #c9a000; }
.kt-stat-icon.danger { background: var(--kt-danger-light); color: var(--kt-danger); }
.kt-stat .label {
  display: block;
  color: var(--kt-gray-500);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 4px;
}
.kt-stat .value {
  font-size: 22px;
  font-weight: 700;
  color: var(--kt-gray-900);
  letter-spacing: -.03em;
  line-height: 1.1;
}

.kt-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ===== TABLE ===== */
.kt-table-wrap { overflow: auto; }
table.kt-table {
  width: 100%;
  border-collapse: collapse;
}
table.kt-table th,
table.kt-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--kt-gray-200);
  font-size: 13px;
  vertical-align: middle;
  white-space: nowrap;
}
table.kt-table th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--kt-gray-500);
  background: #fcfcfd;
}
table.kt-table tbody tr:last-child td { border-bottom: 0; }
table.kt-table tbody tr:hover td { background: #fafbfd; }
table.kt-table a { font-weight: 600; }

/* ===== BADGES ===== */
.kt-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}
.kt-badge-light-success { background: var(--kt-success-light); color: #0d8a4f; }
.kt-badge-light-danger { background: var(--kt-danger-light); color: #d9214e; }
.kt-badge-light-primary { background: var(--kt-primary-light); color: #0077c0; }
.kt-badge-light-warning { background: var(--kt-warning-light); color: #92700c; }
.kt-badge-light-info { background: var(--kt-info-light); color: #5014d0; }

.kt-toolbar-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}
.kt-search {
  display: flex;
  gap: 8px;
  align-items: center;
}
.kt-input {
  border: 1px solid var(--kt-gray-300);
  border-radius: 6px;
  padding: 9px 14px;
  min-width: 260px;
  background: #fff;
  color: var(--kt-gray-800);
  outline: none;
  font-size: 13px;
  transition: border-color .15s, box-shadow .15s;
}
.kt-input:focus {
  border-color: var(--kt-primary);
  box-shadow: 0 0 0 3px rgba(0,158,247,.12);
}

.kt-detail-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  flex-wrap: wrap;
  background: #fff;
  border-radius: var(--kt-radius);
  padding: 24px 25px;
  box-shadow: var(--kt-card-shadow);
}
.kt-detail-hero h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--kt-gray-900);
  letter-spacing: -.02em;
}
.kt-muted { color: var(--kt-gray-500); font-size: 13px; }

.kt-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.kt-detail-grid .item {
  background: #fff;
  border-radius: 8px;
  padding: 16px 18px;
  box-shadow: var(--kt-card-shadow);
}
.kt-detail-grid .item span {
  display: block;
  color: var(--kt-gray-500);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 6px;
}
.kt-detail-grid .item strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--kt-gray-900);
  word-break: break-word;
}

.kt-list { display: grid; }
.kt-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--kt-gray-200);
  font-size: 13px;
}
.kt-list li:last-child { border-bottom: 0; }
.kt-list span { color: var(--kt-gray-600); font-weight: 500; }
.kt-list strong { color: var(--kt-gray-900); font-weight: 700; }

.kt-pager {
  display: flex;
  gap: 12px;
  align-items: center;
}
.kt-alert {
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 13px;
}
.kt-alert-danger {
  background: var(--kt-danger-light);
  color: var(--kt-danger);
  border: 1px solid rgba(241,65,108,.12);
}
.kt-alert-info {
  background: var(--kt-primary-light);
  color: #0077c0;
  border: 1px solid rgba(0,158,247,.12);
}

.kt-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.kt-role-card {
  background: #fff;
  border-radius: var(--kt-radius);
  padding: 24px;
  box-shadow: var(--kt-card-shadow);
  display: grid;
  gap: 14px;
  border: 1px solid transparent;
  transition: border-color .15s, box-shadow .15s;
}
.kt-role-card.is-live {
  border-color: rgba(80,205,137,.4);
  box-shadow: 0 0 0 4px rgba(80,205,137,.06);
}
.kt-role-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.kt-role-card-top .avatar {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #009ef7, #50cd89);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
}
.kt-role-card-top h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--kt-gray-900);
  margin-bottom: 6px;
}
.kt-role-card-foot {
  padding-top: 12px;
  border-top: 1px dashed var(--kt-gray-200);
}
.kt-role-card .kt-list li { padding: 8px 0; }

.kt-sidebar-backdrop { display: none; }

/* ===== LOGIN ===== */
.kt-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}
.kt-login-aside {
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(0,158,247,.4), transparent 55%),
    radial-gradient(700px 420px at 90% 100%, rgba(80,205,137,.28), transparent 50%),
    radial-gradient(500px 300px at 50% 50%, rgba(114,57,234,.18), transparent 60%),
    linear-gradient(160deg, #1e1e2d 0%, #151521 50%, #0f0f18 100%);
  color: #fff;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.kt-login-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  pointer-events: none;
}
.kt-login-aside > * { position: relative; z-index: 1; }
.kt-login-aside .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.kt-login-aside h2 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
}
.kt-login-aside p {
  margin: 0;
  color: rgba(255,255,255,.65);
  max-width: 440px;
  line-height: 1.7;
  font-size: 15px;
}
.kt-login-form-wrap {
  display: grid;
  place-items: center;
  padding: 48px 32px;
  background: #fff;
}
.kt-login-card { width: min(420px, 100%); }
.kt-login-card h1 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 800;
  color: var(--kt-gray-900);
  letter-spacing: -.03em;
}
.kt-login-card .lede {
  margin: 0 0 32px;
  color: var(--kt-gray-500);
  font-size: 14px;
}
.kt-form-label {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--kt-gray-700);
}
.kt-form-label input {
  border: 1px solid var(--kt-gray-300);
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 14px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.kt-form-label input:focus {
  outline: none;
  border-color: var(--kt-primary);
  box-shadow: 0 0 0 4px rgba(0,158,247,.12);
}
.kt-form-label select,
select.kt-input {
  border: 1px solid var(--kt-gray-300);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  background: #fff;
  width: 100%;
}
.text-danger { color: var(--kt-danger) !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .kt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kt-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
  .kt-grid-2, .kt-role-grid { grid-template-columns: 1fr; }
  .kt-login { grid-template-columns: 1fr; }
  .kt-login-aside { min-height: 280px; padding: 40px; }
}
@media (max-width: 900px) {
  .kt-menu-toggle { display: grid; }
  .kt-sidebar { transform: translateX(-105%); }
  .kt-app.sidebar-open .kt-sidebar { transform: translateX(0); }
  .kt-wrapper { margin-left: 0; }
  .kt-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(24,28,50,.5);
    z-index: 99;
    backdrop-filter: blur(2px);
  }
  .kt-site-pill,
  .kt-user-menu .meta { display: none; }
  .kt-stats,
  .kt-detail-grid { grid-template-columns: 1fr; }
  .kt-input { min-width: 0; width: 100%; }
  .kt-toolbar,
  .kt-header { padding-left: 16px; padding-right: 16px; }
  .kt-content > section,
  .kt-content > .kt-card,
  .kt-content > .kt-grid-2,
  .kt-content > .kt-stats,
  .kt-content > .kt-role-grid,
  .kt-content > .kt-detail-hero,
  .kt-content > .kt-detail-grid,
  .kt-content > .kt-alert,
  .kt-content > .kt-pager {
    margin-left: 16px;
    margin-right: 16px;
  }
}

/* ===== RISK SCANNER ===== */
.risk-scanner {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background:
    radial-gradient(600px 220px at 10% 0%, rgba(0,158,247,.12), transparent 60%),
    radial-gradient(480px 200px at 90% 100%, rgba(241,65,108,.08), transparent 55%),
    #fff;
}
.risk-scanner-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.risk-scanner-copy h2 {
  margin: 10px 0 6px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--kt-gray-900);
}
.risk-scanner-copy p {
  margin: 0;
  max-width: 520px;
  color: var(--kt-gray-500);
  font-size: 13px;
  line-height: 1.55;
}
.risk-scanner-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.risk-scan-field {
  position: relative;
  min-width: min(320px, 100%);
}
.risk-scan-field i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--kt-gray-500);
}
.risk-scan-field input {
  width: 100%;
  border: 1px solid var(--kt-gray-300);
  border-radius: 10px;
  padding: 13px 14px 13px 40px;
  font-size: 14px;
  outline: none;
  background: #fff;
}
.risk-scan-field input:focus {
  border-color: var(--kt-primary);
  box-shadow: 0 0 0 4px rgba(0,158,247,.12);
}
.risk-live-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--kt-gray-600);
  white-space: nowrap;
}
.risk-scan-beam {
  position: absolute;
  left: -20%;
  top: 0;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,158,247,.12), transparent);
  transform: translateX(-120%);
  pointer-events: none;
}
.risk-scanner.is-scanning .risk-scan-beam {
  animation: riskBeam 1.1s ease-in-out infinite;
}
@keyframes riskBeam {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(420%); }
}

.risk-scan-result {
  background: #fff;
  border-radius: var(--kt-radius);
  box-shadow: var(--kt-card-shadow);
  padding: 22px 24px;
  display: grid;
  gap: 18px;
}
.risk-scan-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.risk-scan-user {
  display: flex;
  gap: 12px;
  align-items: center;
}
.risk-scan-user .avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #009ef7, #50cd89);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.risk-scan-user h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}
.risk-score-wrap {
  display: flex;
  gap: 12px;
  align-items: center;
}
.risk-score {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  border: 4px solid var(--kt-success);
  background: var(--kt-success-light);
  line-height: 1.05;
}
.risk-score[data-level="medium"] {
  border-color: var(--kt-warning);
  background: var(--kt-warning-light);
}
.risk-score[data-level="high"] {
  border-color: var(--kt-danger);
  background: var(--kt-danger-light);
}
.risk-score strong { font-size: 20px; font-weight: 800; }
.risk-score span { font-size: 10px; color: var(--kt-gray-600); font-weight: 600; text-transform: uppercase; }

  .risk-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.risk-check {
  border: 1px solid var(--kt-gray-200);
  border-radius: 12px;
  padding: 14px;
  background: #fcfcfd;
  opacity: 0;
  transform: translateY(10px);
  animation: riskPop .35s ease forwards;
}
@keyframes riskPop {
  to { opacity: 1; transform: translateY(0); }
}
.risk-check-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.risk-check-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--kt-gray-100);
  color: var(--kt-gray-700);
}
.risk-check h4 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--kt-gray-900);
}
.risk-check p {
  margin: 0;
  font-size: 12px;
  color: var(--kt-gray-600);
  line-height: 1.45;
  min-height: 34px;
}
.risk-check-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}
.risk-check.is-ok .risk-check-badge { background: var(--kt-success-light); color: #0d8a4f; }
.risk-check.is-info .risk-check-badge { background: var(--kt-primary-light); color: #0077c0; }
.risk-check.is-warn .risk-check-badge { background: var(--kt-warning-light); color: #92700c; }
.risk-check.is-danger .risk-check-badge { background: var(--kt-danger-light); color: #d9214e; }
.risk-check.is-ok .risk-check-icon { background: var(--kt-success-light); color: var(--kt-success); }
.risk-check.is-info .risk-check-icon { background: var(--kt-primary-light); color: var(--kt-primary); }
.risk-check.is-warn .risk-check-icon { background: var(--kt-warning-light); color: #c9a000; }
.risk-check.is-danger .risk-check-icon { background: var(--kt-danger-light); color: var(--kt-danger); }
.risk-check-bar {
  margin-top: 12px;
  height: 3px;
  border-radius: 99px;
  background: var(--kt-gray-200);
  overflow: hidden;
}
.risk-check-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--kt-primary);
  animation: riskBar .7s ease forwards;
}
.risk-check.is-ok .risk-check-bar span { background: var(--kt-success); }
.risk-check.is-warn .risk-check-bar span { background: var(--kt-warning); }
.risk-check.is-danger .risk-check-bar span { background: var(--kt-danger); }
@keyframes riskBar {
  to { width: 100%; }
}
.risk-scan-status {
  font-size: 12px;
  font-weight: 600;
  color: var(--kt-gray-500);
}
.risk-scan-result.is-scanning .risk-scan-status {
  color: var(--kt-primary);
}
.risk-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  display: inline-block;
  animation: riskSpin .7s linear infinite;
}
@keyframes riskSpin { to { transform: rotate(360deg); } }
.risk-quick-user {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--kt-primary);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin-right: 10px;
}
.risk-quick-user:hover { text-decoration: underline; }

@media (max-width: 1200px) {
  .risk-check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .risk-check-grid { grid-template-columns: 1fr; }
  .risk-scan-field { min-width: 100%; }
}
