/* CSS Variables */
:root {
  --bg: #f8f8f7;
  --bg-card: #ffffff;
  --border: #e5e4e2;
  --text: #1c1917;
  --text-muted: #78716c;
  --primary: #1c1917;
  --green: #22c55e;
  --red: #ef4444;
  --radius: 12px;

  /* Severity */
  --sev-critical: #8b5cf6;
  --sev-critical-bg: rgba(139, 92, 246, 0.1);
  --sev-high: #ef4444;
  --sev-high-bg: rgba(239, 68, 68, 0.1);
  --sev-medium: #f59e0b;
  --sev-medium-bg: rgba(245, 158, 11, 0.1);
  --sev-low: #22c55e;
  --sev-low-bg: rgba(34, 197, 94, 0.1);
  --sev-info: #3b82f6;
  --sev-info-bg: rgba(59, 130, 246, 0.1);
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Bootstrap overrides — loaded AFTER bootstrap.min.css so these win by cascade */

/* Body — preserve custom font stack and colors */
body {
  --bs-body-font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
}

/* Focus resets */
.btn:focus, .btn:active:focus, .form-control:focus, button:focus { box-shadow: none !important; outline: none; }
.btn:focus-visible { box-shadow: none !important; outline: none; }

/* Grid — zero gutters by default (add gutter classes like g-3 when needed) */
.row { --bs-gutter-x: 0; --bs-gutter-y: 0; }

/* Table — prevent BS table theming from overriding custom styles */
table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: transparent;
  --bs-table-hover-bg: rgba(0,0,0,0.02);
  --bs-table-border-color: var(--border);
  --bs-table-accent-bg: transparent;
}
th, td { --bs-table-accent-bg: transparent; }

/* Buttons — neutralize BS variables, keep custom 3D gradient style */
.btn {
  --bs-btn-padding-x: 14px;
  --bs-btn-padding-y: 8px;
  --bs-btn-font-size: 13px;
  --bs-btn-font-weight: 500;
  --bs-btn-border-radius: 10px;
  --bs-btn-box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  --bs-btn-active-shadow: none;
  --bs-btn-disabled-opacity: 0.5;
  --bs-btn-bg: transparent;
  --bs-btn-hover-bg: transparent;
  --bs-btn-active-bg: transparent;
  text-decoration: none;
}

.btn-primary {
  --bs-btn-bg: transparent;
  --bs-btn-border-color: #1c1917;
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-border-color: #1c1917;
  --bs-btn-active-bg: transparent;
  --bs-btn-active-border-color: #0a0a0a;
  --bs-btn-color: white;
  --bs-btn-hover-color: white;
  --bs-btn-active-color: white;
}

.btn-secondary {
  --bs-btn-bg: transparent;
  --bs-btn-border-color: #d1d1d1;
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-border-color: #d1d1d1;
  --bs-btn-color: var(--text);
  --bs-btn-hover-color: var(--text);
}

.btn-danger {
  --bs-btn-bg: transparent;
  --bs-btn-border-color: #dc2626;
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-border-color: #dc2626;
  --bs-btn-color: white;
  --bs-btn-hover-color: white;
}

.btn-outline {
  --bs-btn-bg: transparent;
  --bs-btn-border-color: #d1d1d1;
  --bs-btn-hover-bg: transparent;
  --bs-btn-color: var(--text);
  --bs-btn-hover-color: var(--text);
}

/* Cards — prevent BS from adding flex layout or its own bg/border */
.card {
  --bs-card-border-width: 0;
  --bs-card-border-radius: 10px;
  --bs-card-bg: transparent;
  --bs-card-cap-bg: transparent;
  --bs-card-spacer-y: 0;
  --bs-card-spacer-x: 0;
  display: block;
  word-wrap: normal;
}

.card-header {
  background: none;
  --bs-card-cap-padding-y: 0;
  --bs-card-cap-padding-x: 0;
}

.card-body {
  flex: initial;
  --bs-card-spacer-y: 0;
  --bs-card-spacer-x: 0;
}

.card-title {
  --bs-card-title-spacer-y: 0;
  margin-bottom: 0;
}

/* Badges — keep custom gradient styling */
.badge {
  --bs-badge-padding-x: 10px;
  --bs-badge-padding-y: 4px;
  --bs-badge-font-size: 12px;
  --bs-badge-font-weight: 500;
  --bs-badge-border-radius: 10px;
  line-height: normal;
  vertical-align: middle;
}

/* Modals — custom modals use .modal-overlay wrapper, not Bootstrap JS */
.modal {
  --bs-modal-bg: transparent;
  --bs-modal-border-color: transparent;
  --bs-modal-border-radius: 12px;
  --bs-modal-padding: 0;
  --bs-modal-margin: 0;
  position: relative;
  display: block;
  opacity: 1;
}

.modal-overlay .modal {
  display: block !important;
  position: relative;
  opacity: 1;
  z-index: 100000;
  pointer-events: auto;
  height: auto !important;
}

.modal-header {
  --bs-modal-header-padding: 20px 24px;
  border-radius: 0;
}

.modal-footer {
  --bs-modal-footer-gap: 12px;
}

/* Toasts — neutralise Bootstrap, custom toasts managed by jQuery */
.toast-container .toast {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06) !important;
  padding: 12px 20px !important;
  min-width: 330px !important;
  max-width: 450px !important;
  width: auto !important;
  color: inherit !important;
}

/* Alerts — keep custom gradient styling */
.alert {
  --bs-alert-padding-x: 16px;
  --bs-alert-padding-y: 14px;
  --bs-alert-margin-bottom: 0;
  --bs-alert-border-radius: 8px;
  --bs-alert-bg: transparent;
  --bs-alert-border-color: transparent;
}

/* Pagination — custom uses div+button, not Bootstrap ul/li structure */
.pagination {
  --bs-pagination-padding-x: 0;
  --bs-pagination-padding-y: 0;
  margin-bottom: 0;
}

/* Forms — keep custom input/label styling */
.form-label {
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Prevent BS from adding bottom margin to <p> inside our components */
.section-text p { margin-bottom: 12px; }

/* Base */
body {
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  height: 100vh;
  overflow: hidden;
}

/* App Layout */
.app { display: flex; height: 100vh; }

/* Sidebar */
.sidebar {
  width: 240px;
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 12px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 8px;
}

.sidebar-brand:hover { background: linear-gradient(to bottom, #f0f0f0 0%, #e8e8e8 100%); }

.brand-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.brand-icon svg { width: 24px; height: 24px; }
.brand-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.sidebar-brand > div:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; }
.sidebar-brand > i, .sidebar-brand > .brand-chevron { flex-shrink: 0; }

.brand-switcher { position: relative; margin-bottom: 8px; }
.brand-switcher .sidebar-brand { margin-bottom: 0; }
.brand-switcher.open .sidebar-brand {}
.brand-chevron { margin-left: auto; color: var(--text-muted); transition: transform 0.2s; font-size: 10px; }
.brand-switcher.open .brand-chevron { transform: rotate(180deg); }

.brand-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
  border: 1px solid #d8d8d8;
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 100;
  overflow: hidden;
}
.brand-switcher.open .brand-dropdown { display: block; }

.brand-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.1s;
  border-bottom: 1px solid #e8e8e8;
}
.brand-option:last-child { border-bottom: none; }
.brand-option:hover { background: linear-gradient(to bottom, #f0f0f0 0%, #e8e8e8 100%); }
.brand-option.active { background: linear-gradient(to bottom, #e8e8e8 0%, #e0e0e0 100%); }

.brand-option-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  color: white;
}
.brand-option-info { flex: 1; }
.brand-option-name { font-size: 13px; font-weight: 500; }
.brand-option-sub { font-size: 11px; color: var(--text-muted); }
.brand-option-check { color: var(--primary); }

.brand-add {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid #d8d8d8;
  background: #f8f8f8;
}
.brand-add:hover { background: #f0f0f0; color: var(--text); }

/* Org Dropdown */
.org-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  margin-top: 4px;
  overflow: hidden;
}
.brand-switcher.open .org-dropdown { display: block; }

.org-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.1s;
  border-bottom: 1px solid var(--border);
}
.org-dropdown-item:last-child { border-bottom: none; }
.org-dropdown-item:hover { background: #f5f5f4; }
.org-dropdown-item.active { background: #f0f0ef; }

.org-dropdown-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1c1917 0%, #44403c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
}

.org-dropdown-info { flex: 1; min-width: 0; }
.org-dropdown-name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-dropdown-slug { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-dropdown-check { color: var(--green); flex-shrink: 0; }

/* Navigation */
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  margin-bottom: 2px;
  transition: all 0.1s;
  text-decoration: none;
}

.nav-item:hover { background: linear-gradient(to bottom, #f0f0f0 0%, #e8e8e8 100%); box-shadow: inset 0 1px 2px rgba(0,0,0,0.06); }
.nav-item.active { background: linear-gradient(to bottom, #e8e8e8 0%, #e0e0e0 100%); box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); }
.nav-item svg { width: 16px; height: 16px; color: var(--text-muted); }
.nav-item i { font-size: 16px; width: 16px; text-align: center; color: var(--text-muted); }
.nav-badge { margin-left: auto; font-size: 12px; color: var(--text-muted); background: linear-gradient(to bottom, #f3f4f6 0%, #e5e7eb 100%); padding: 2px 8px; border-radius: 10px; border: 1px solid #d1d5db; }

.nav-section { margin-top: 24px; }
.nav-section-title { font-size: 12px; color: var(--text-muted); padding: 8px 10px; }

.recent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
}

.recent-item:hover { background: var(--bg-card); }
.recent-dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--text-muted); }

.sidebar-bottom {
  margin-top: auto;
}

.sidebar-bottom .nav-section {
  margin-top: 0;
  padding-bottom: 4px;
}

.sidebar-credits {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.credits-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.credits-info { display: flex; flex-direction: column; }
.credits-label { font-size: 11px; color: var(--text-muted); }
.credits-value { font-size: 13px; color: var(--text); }

.logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: calc(100% - 24px);
  margin: 6px 12px 0;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.logout-btn:hover {
  background: var(--bg-card);
  color: var(--red);
  border-color: var(--red);
}
.logout-btn svg { width: 16px; height: 16px; }
.logout-btn i { font-size: 16px; }

/* Main Content */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.topbar {
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.topbar a { color: var(--text-muted); cursor: pointer; text-decoration: none; }
.topbar a:hover { color: var(--text); }
.topbar .sep { color: var(--text-muted); }
.topbar .current { color: var(--text); }
.topbar-right { margin-left: auto; }
.topbar-right .btn { padding: 6px 12px; font-size: 13px; }

.content-body { flex: 1; overflow-y: auto; }
.content-wrap { display: flex; flex: 1; overflow: hidden; }
.content { flex: 1; padding: 32px; overflow-y: auto; }

/* Right Panel */
.panel {
  width: 300px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.panel-section { padding: 20px; border-bottom: 1px solid var(--border); }
.panel-section:last-child { border-bottom: none; }
.panel-title { font-size: 11px; font-weight: 600; margin-bottom: 16px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.panel-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin-bottom: 12px; }
.panel-row:last-child { margin-bottom: 0; }
.panel-label { color: var(--text-muted); flex-shrink: 0; min-width: 70px; }
.panel-value { color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.panel-actions { display: flex; flex-direction: column; gap: 8px; }
.panel-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(to bottom, #ffffff 0%, #f0f0f0 100%);
  border: 1px solid #d1d1d1;
  border-bottom: 2px solid #b8b8b8;
  border-radius: 10px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  transition: all 0.1s ease;
}
.panel-btn:hover { background: linear-gradient(to bottom, #f8f8f8 0%, #e8e8e8 100%); }
.panel-btn:active {
  background: linear-gradient(to bottom, #e8e8e8 0%, #f0f0f0 100%);
  border-bottom-width: 1px;
  transform: translateY(1px);
}
.panel-btn svg { width: 14px; height: 14px; color: var(--text-muted); }
.panel-btn i { font-size: 14px; color: var(--text-muted); }
.panel-btn .chev { margin-left: auto; }
.panel-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.sev-row { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 8px; }
.sev-row:last-child { margin-bottom: 0; }
.sev-row .label { color: var(--text-muted); flex: 1; }
.sev-row .count { color: var(--text); }
.sev-row .dot.pulse {
  background: var(--primary);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Page Header */
.page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.page-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.page-icon svg { width: 20px; height: 20px; }
.page-icon i { font-size: 20px; }

.page-info { flex: 1; }
.page-title { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.page-subtitle { font-size: 14px; color: var(--text-muted); }

.page-actions { display: flex; gap: 8px; }

.page-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  position: relative;
}

.three-dot-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
}
.three-dot-btn:hover { background: #f5f5f4; }

/* Context Menu (3-dot dropdown) */
.context-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  z-index: 50;
  padding: 4px;
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}
.context-menu.open {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.context-menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  background: none;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.12s;
}
.context-menu-item:hover { background: #f5f5f4; }
.context-menu-item i { font-size: 14px; }
.context-menu-danger { color: #dc2626; }

.targets-card-title {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  background: #f9f9f8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 10px;
  border: 1px solid #d1d1d1;
  border-bottom: 2px solid #b8b8b8;
  background: linear-gradient(to bottom, #ffffff 0%, #f0f0f0 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  color: var(--text);
  cursor: pointer;
  transition: all 0.1s ease;
}

.btn:hover {
  background: linear-gradient(to bottom, #f8f8f8 0%, #e8e8e8 100%);
}

.btn:active {
  background: linear-gradient(to bottom, #e8e8e8 0%, #f0f0f0 100%);
  border-bottom-width: 1px;
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(to bottom, #3d3d3d 0%, #1c1917 100%);
  border: 1px solid #1c1917;
  border-bottom: 2px solid #0a0a0a;
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(to bottom, #4a4a4a 0%, #2d2d2d 100%);
}

.btn-sm {
  padding: 5px 11px;
  font-size: 12px;
  border-radius: 8px;
}

.btn-outline {
  background: linear-gradient(to bottom, #ffffff 0%, #f5f5f5 100%);
  border: 1px solid #d1d1d1;
  border-bottom: 2px solid #b8b8b8;
  color: var(--text);
}

.btn-outline:hover {
  background: linear-gradient(to bottom, #f8f8f8 0%, #ebebeb 100%);
}

.btn svg { width: 14px; height: 14px; }
.btn i { font-size: 14px; }

.btn-secondary {
  background: linear-gradient(to bottom, #ffffff 0%, #f5f5f5 100%);
  border: 1px solid #d1d1d1;
  border-bottom: 2px solid #b8b8b8;
  color: var(--text);
}

.btn-secondary:hover {
  background: linear-gradient(to bottom, #f8f8f8 0%, #ebebeb 100%);
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}

.btn-danger {
  background: linear-gradient(to bottom, #ef4444 0%, #dc2626 100%);
  border: 1px solid #dc2626;
  border-bottom: 2px solid #b91c1c;
  color: white;
}

.btn-danger:hover {
  background: linear-gradient(to bottom, #f87171 0%, #ef4444 100%);
}

/* Cards */
.card {
  background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
  border: 1px solid #d8d8d8;
  border-bottom-color: #c0c0c0;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 1px 0 rgba(255,255,255,0.8) inset;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.card-body {
  padding: 12px 20px;
}

.card-title { font-size: 14px; font-weight: 600; }

/* Form Inputs */
.form-input {
  width: 100%;
  background: #fcfcfc;
  border: 1px solid #c8c8c8;
  border-top-color: #b0b0b0;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.08), 0 0 0 2px rgba(28,25,23,0.15);
}

.form-input::placeholder { color: var(--text-muted); }

.form-textarea {
  min-height: 80px;
  resize: vertical;
  font-family: inherit;
}

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.form-label span { color: var(--text-muted); font-weight: normal; }

/* Badges */
.badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.badge-green { background: linear-gradient(to bottom, #dcfce7 0%, #bbf7d0 100%); color: #166534; border-color: #86efac; }
.badge-blue { background: linear-gradient(to bottom, #dbeafe 0%, #bfdbfe 100%); color: #1e40af; border-color: #93c5fd; }
.badge-gray { background: linear-gradient(to bottom, #f3f4f6 0%, #e5e7eb 100%); color: #4b5563; border-color: #d1d5db; }
.badge-muted { background: linear-gradient(to bottom, #f5f5f4 0%, #e7e5e4 100%); color: #78716c; border-color: #d6d3d1; }
.badge-red { background: linear-gradient(to bottom, #fee2e2 0%, #fecaca 100%); color: #991b1b; border-color: #fca5a5; }
.badge-yellow { background: linear-gradient(to bottom, #fef3c7 0%, #fde68a 100%); color: #92400e; border-color: #fcd34d; }
.badge-purple { background: linear-gradient(to bottom, #ede9fe 0%, #ddd6fe 100%); color: #5b21b6; border-color: #c4b5fd; }
.badge-orange { background: linear-gradient(to bottom, #ffedd5 0%, #fed7aa 100%); color: #9a3412; border-color: #fdba74; }
.badge-green-outline { background: transparent; color: #16a34a; border: 1px solid #86efac; box-shadow: none; }

/* Toggle Switch */
.toggle {
  width: 44px;
  height: 24px;
  background: linear-gradient(to bottom, #c8c8c8 0%, #d8d8d8 100%);
  border: 1px solid #b0b0b0;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
}

.toggle.on {
  background: linear-gradient(to bottom, #3d3d3d 0%, #1c1917 100%);
  border-color: #0a0a0a;
}

.toggle::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: 20px;
  height: 20px;
  background: linear-gradient(to bottom, #ffffff 0%, #f0f0f0 100%);
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 1px 0 rgba(255,255,255,0.8) inset;
}

.toggle.on::after {
  transform: translateX(20px);
}

/* Severity Indicators */
.sev { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.sev .dot { width: 6px; height: 6px; border-radius: 50%; }
.sev.critical .dot { background: var(--sev-critical); }
.sev.high .dot { background: var(--sev-high); }
.sev.medium .dot { background: var(--sev-medium); }
.sev.low .dot { background: var(--sev-low); }
.sev.info .dot { background: var(--sev-info); }

/* CVSS Score */
.cvss-score { position: relative; cursor: default; display: inline-flex; align-items: center; }
.cvss-tooltip {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
  padding: 16px; width: 300px; z-index: 100;
  opacity: 0; visibility: hidden; transition: opacity 0.15s, visibility 0.15s;
  pointer-events: none;
}
.cvss-tooltip::before {
  content: ''; position: absolute; top: -5px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 8px; height: 8px; background: var(--bg-card); border-top: 1px solid var(--border); border-left: 1px solid var(--border);
}
.cvss-score:hover .cvss-tooltip { opacity: 1; visibility: visible; }
.cvss-tooltip-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.cvss-tooltip-header .score { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.cvss-tooltip-header .rating { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.cvss-tooltip-metrics { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.cvss-tooltip-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.cvss-tooltip-row .label { color: var(--text-muted); }
.cvss-tooltip-row .value { font-weight: 500; color: var(--text); }
.cvss-tooltip-vector { font-size: 11px; color: var(--text-muted); padding-top: 10px; border-top: 1px solid var(--border); word-break: break-all; font-family: ui-monospace, monospace; }

/* Risk Score Dots */
.risk-dot { width: 8px; height: 8px; border-radius: 50%; }
.risk-dot.critical { background: var(--sev-critical); }
.risk-dot.high { background: var(--sev-high); }
.risk-dot.medium { background: var(--sev-medium); }
.risk-dot.low { background: var(--sev-low); }

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding: 4px;
  background: linear-gradient(to bottom, #e8e8e8 0%, #d8d8d8 100%);
  border-radius: 10px;
  border: 1px solid #c8c8c8;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.tab {
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.15s;
  border: 1px solid transparent;
}

.tab.active {
  color: var(--text);
  background: linear-gradient(to bottom, #ffffff 0%, #f0f0f0 100%);
  border: 1px solid #d1d1d1;
  border-bottom: 2px solid #b8b8b8;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
  min-width: 300px;
  max-width: 420px;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast i { font-size: 18px; flex-shrink: 0; }
.toast.toast-success i { color: var(--green); }
.toast.toast-error i { color: var(--red); }
.toast.toast-info i { color: #3b82f6; }

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(40px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

/* Progress Animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Progress tracking */
.progress-tracker { margin-top: 8px; }
.progress-bar-small { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.progress-bar-small .fill { height: 100%; background: var(--primary); border-radius: 2px; transition: width 0.3s; }
.progress-phase { font-size: 12px; color: var(--text-muted); margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.progress-phase .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: pulse 1.5s infinite; }

/* Phase Tracker */
.phase-tracker { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.phase-tracker-header { }
.phase-tracker-title { font-size: 14px; font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.phase-tracker-title .pct { font-size: 13px; color: var(--text-muted); font-weight: normal; }
.phase-tracker-chevron { color: var(--text-muted); transition: transform 0.2s; flex-shrink: 0; }
.phase-tracker-header.expanded .phase-tracker-chevron { transform: rotate(180deg); }

/* Phase List */
.phase-list { margin-top: 16px; }
.phase-item { display: flex; align-items: flex-start; gap: 12px; }
.phase-icon { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.phase-icon svg { width: 12px; height: 12px; }
.phase-icon i { font-size: 12px; }
.phase-icon.done { background: var(--green); color: white; }
.phase-icon.active { background: var(--primary); color: white; }
.phase-icon.pending { background: var(--border); color: var(--text-muted); }
.phase-icon.skipped { background: var(--border); color: var(--text-muted); }
.plan-item { cursor: pointer; }
.plan-item:not(:last-child) { border-bottom: 1px solid var(--border); }
.phase-chevron { color: var(--text-muted); flex-shrink: 0; align-self: center; transition: transform 0.2s; }
.phase-chevron.expanded { transform: rotate(180deg); }
.phase-info { flex: 1; min-width: 0; }
.phase-name { font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.phase-name.muted { color: var(--text-muted); }
.phase-detail { font-size: 12px; color: var(--text-muted); }
.phase-checks { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.phase-skip-reason { font-size: 12px; color: var(--text-muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; cursor: pointer; }
.phase-skip-reason.expanded { white-space: normal; overflow: visible; text-overflow: unset; max-width: none; }
.phase-bar { height: 3px; background: var(--border); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.phase-bar .fill { height: 100%; background: var(--primary); border-radius: 2px; }
.phase-list-scroll { max-height: 360px; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; display: flex; flex-direction: column; gap: 4px; padding: 0 20px 0 12px; }
.phase-list-scroll::-webkit-scrollbar { width: 4px; }
.phase-list-scroll::-webkit-scrollbar-track { background: transparent; }
.phase-list-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.phase-list-scroll::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
.phase-item.is-scanning { background: var(--bg); border-radius: 8px; margin: 0 -12px; padding: 4px 12px; }
.phase-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; padding: 2px 7px; border-radius: 4px; margin-left: auto; flex-shrink: 0; align-self: center; }
.phase-label.label-done { color: var(--green); background: rgba(34, 197, 94, 0.1); }
.phase-label.label-scanning { color: var(--primary); background: rgba(28, 25, 23, 0.08); }
.phase-label.label-next { color: var(--text-muted); background: rgba(0, 0, 0, 0.04); }

/* Wizard */
.wizard-header { margin-bottom: 32px; }
.wizard-title { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.wizard-subtitle { font-size: 14px; color: var(--text-muted); }

.wizard-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
  position: relative;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
}

.wizard-step:first-child { border-radius: 8px 0 0 8px; }
.wizard-step:last-child { border-radius: 0 8px 8px 0; }
.wizard-step:not(:last-child) { border-right: none; }
.wizard-step.active { color: var(--text); background: var(--border); }
.wizard-step.complete { color: var(--green); }
.wizard-step svg { width: 14px; height: 14px; }
.wizard-step i { font-size: 14px; }

.wizard-content { display: flex; gap: 40px; }
.wizard-main { flex: 1; }
.wizard-sidebar { width: 280px; flex-shrink: 0; }

.wizard-section { margin-bottom: 32px; }
.wizard-section-title { font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.wizard-section-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

.wizard-actions {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

.wizard-actions-right { display: flex; gap: 12px; }

/* Option Card */
.option-card {
  background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
  border: 1px solid #d8d8d8;
  border-bottom-color: #c0c0c0;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.option-card:hover { border-color: #b0b0b0; box-shadow: 0 2px 4px rgba(0,0,0,0.08); }
.option-card.selected { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(28,25,23,0.15); }

.option-header { display: flex; align-items: flex-start; gap: 12px; }
.option-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #c0c0c0;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, #f8f8f8 0%, #e8e8e8 100%);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.option-card.selected .option-radio { border-color: var(--primary); background: linear-gradient(to bottom, #f0f0f0 0%, #e0e0e0 100%); }
.option-card.selected .option-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.option-title { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.option-desc { font-size: 13px; color: var(--text-muted); }

.option-body { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); display: none; }
.option-card.selected .option-body { display: block; }

/* Wizard Section Divider */
.wizard-section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0 8px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wizard-section-divider::before,
.wizard-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.wizard-section-divider-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  text-align: center;
}

/* Checkbox */
.checkbox-group { display: flex; flex-direction: column; gap: 12px; }
.checkbox-item { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.checkbox-box {
  width: 16px;
  height: 16px;
  border: 1px solid #b0b0b0;
  border-top-color: #999;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, #f8f8f8 0%, #e8e8e8 100%);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.checkbox-item.checked .checkbox-box { background: linear-gradient(to bottom, #3d3d3d 0%, #1c1917 100%); border-color: #0a0a0a; box-shadow: inset 0 1px 0 rgba(255,255,255,0.2); }
.checkbox-item.checked .checkbox-box::after { content: ''; width: 8px; height: 5px; border: 2px solid white; border-top: none; border-right: none; transform: rotate(-45deg) translateY(-1px); }
.checkbox-label { font-size: 13px; }
.checkbox-desc { font-size: 12px; color: var(--text-muted); }

/* Upload Zone */
.upload-zone {
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s;
}

.upload-zone:hover { border-color: var(--text-muted); }
.upload-zone.has-error { border-color: var(--red); }
.upload-zone svg { width: 32px; height: 32px; color: var(--text-muted); margin-bottom: 12px; }
.upload-zone > i { font-size: 32px; color: var(--text-muted); margin-bottom: 12px; }
.upload-text { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.upload-hint { font-size: 12px; color: var(--text-muted); }
.form-error { color: var(--red); font-size: 12px; margin-top: 8px; }

.uploaded-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 8px;
}

.uploaded-file svg { width: 20px; height: 20px; color: var(--text-muted); }
.uploaded-file i { font-size: 20px; color: var(--text-muted); }
.uploaded-file-info { flex: 1; }
.uploaded-file-name { font-size: 13px; }
.uploaded-file-size { font-size: 12px; color: var(--text-muted); }
.uploaded-file-remove { color: var(--text-muted); cursor: pointer; background: none; border: none; padding: 4px; }
.uploaded-file-remove i { font-size: 11px; }

/* Summary Card */
.summary-card {
  background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
  border: 1px solid #d8d8d8;
  border-bottom-color: #c0c0c0;
  border-radius: 10px;
  padding: 20px;
  position: sticky;
  top: 32px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.summary-title { font-size: 13px; font-weight: 600; margin-bottom: 16px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.summary-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 12px; }
.summary-row:last-child { margin-bottom: 0; }
.summary-label { color: var(--text-muted); }
.summary-value { color: var(--text); text-align: right; max-width: 160px; word-break: break-all; }

/* Status Check */
.status-check { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; }
.status-item { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.status-item svg { width: 18px; height: 18px; }
.status-item i { font-size: 18px; }
.status-item.success svg { color: var(--green); }
.status-item.pending svg { color: var(--text-muted); }
.status-item.skip svg { color: var(--text-muted); }
.status-item .status-text { color: var(--text); }
.status-item .status-detail { color: var(--text-muted); margin-left: 4px; }

/* Settings */
.settings-layout { display: flex; gap: 0; flex: 1; }
.settings-nav { width: 220px; border-right: 1px solid var(--border); padding: 24px 0; flex-shrink: 0; }
.settings-nav-section { margin-bottom: 24px; }
.settings-nav-title { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; padding: 0 24px; margin-bottom: 8px; }
.settings-nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 24px; font-size: 14px; color: var(--text-muted); cursor: pointer; text-decoration: none; }
.settings-nav-item:hover { color: var(--text); background: var(--bg-card); }
.settings-nav-item.active { color: var(--text); background: var(--bg-card); }
.settings-nav-item svg { width: 16px; height: 16px; }
.settings-nav-item i { font-size: 16px; width: 16px; text-align: center; }

.settings-content { flex: 1; padding: 32px 48px; overflow-y: auto; position: relative; z-index: 1; }
.settings-header { margin-bottom: 32px; }
.settings-title { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.settings-desc { font-size: 14px; color: var(--text-muted); }

.settings-section { margin-bottom: 32px; }
.settings-section-title { font-size: 16px; font-weight: 600; margin-bottom: 24px; }
.settings-section-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

.settings-card { width: 100%; background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%); border: 1px solid #d8d8d8; border-bottom-color: #c0c0c0; border-radius: 10px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.settings-card-row { display: flex; align-items: center; justify-content: space-between; }
.settings-card-info { flex: 1; }
.settings-card-label { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.settings-card-hint { font-size: 13px; color: var(--text-muted); }

.settings-input { width: 100%; max-width: 400px; background: #fcfcfc; border: 1px solid #c8c8c8; border-top-color: #b0b0b0; border-radius: 4px; padding: 10px 12px; font-size: 14px; color: var(--text); box-shadow: inset 0 1px 3px rgba(0,0,0,0.08); }
.settings-input:focus { outline: none; border-color: var(--primary); box-shadow: inset 0 1px 3px rgba(0,0,0,0.08), 0 0 0 2px rgba(28,25,23,0.15); }

/* Member Row */
.settings-card.member-list { padding-top: 0; padding-bottom: 0; }
.member-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.member-row:last-child { border-bottom: none; }
.member-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #3d3d3d 0%, #1c1917 100%); display: flex; align-items: center; justify-content: center; color: white; font-weight: 600; font-size: 14px; }
.member-info { flex: 1; }
.member-name { font-size: 14px; font-weight: 500; }
.member-email { font-size: 13px; color: var(--text-muted); }
.member-role { font-size: 13px; color: var(--text-muted); }
.remove-member-btn { border: none; background: none; color: var(--text-muted); padding: 6px 8px; font-size: 14px; cursor: pointer; border-radius: 6px; transition: color 0.15s, background 0.15s; box-shadow: none; }
.remove-member-btn:hover { color: var(--red); background: rgba(220, 38, 38, 0.08); }

/* Integration Grid */
/* integration-grid now uses Bootstrap row/col-md-4 */
.integration-grid { }
.integration-card { background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%); border: 1px solid #d8d8d8; border-bottom-color: #c0c0c0; border-radius: 10px; padding: 20px; display: flex; align-items: center; gap: 16px; cursor: pointer; transition: all 0.15s; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.integration-card:hover { border-color: #b0b0b0; box-shadow: 0 2px 4px rgba(0,0,0,0.08); }
.integration-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.integration-name { font-size: 14px; font-weight: 500; }

/* Stat Cards */
.stat-card { text-align: center; padding: 16px; }
.stat-value { font-size: 32px; font-weight: 600; margin-bottom: 4px; }
.stat-label { font-size: 12px; color: var(--text-muted); }

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; font-weight: 500; color: var(--text-muted); padding: 12px 16px; border-bottom: 1px solid var(--border); }
td { padding: 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
tr:hover td { background: rgba(0,0,0,0.02); }

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.empty-state-icon svg { width: 32px; height: 32px; }
.empty-state-icon i { font-size: 32px; }
.empty-state-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.empty-state-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

/* Chat Input */
.chat-input-wrap {
  padding: 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.chat-input {
  display: flex;
  gap: 8px;
  background: #fcfcfc;
  border: 1px solid #c8c8c8;
  border-radius: 8px;
  padding: 8px 12px;
}

.chat-input input {
  flex: 1;
  border: none;
  background: none;
  font-size: 14px;
  color: var(--text);
  outline: none;
}

.chat-input input::placeholder { color: var(--text-muted); }

.chat-input button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.chat-input button:hover { color: var(--text); }
.chat-input button:disabled { opacity: 0.4; cursor: not-allowed; }

/* Chat Messages */
.chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
}

.chat-message {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
  max-width: 90%;
  word-wrap: break-word;
}

.chat-message.user {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-message.assistant {
  background: var(--surface);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-message.assistant p { margin: 0 0 8px 0; }
.chat-message.assistant p:last-child { margin-bottom: 0; }
.chat-message.assistant strong { font-weight: 600; }
.chat-message.assistant ul, .chat-message.assistant ol { margin: 4px 0 8px 0; padding-left: 18px; }
.chat-message.assistant li { margin-bottom: 2px; }
.chat-message.assistant code { font-size: 12px; background: rgba(0,0,0,0.05); padding: 1px 4px; border-radius: 3px; font-family: ui-monospace, monospace; }
.chat-message.assistant pre { margin: 4px 0 8px 0; padding: 8px; background: rgba(0,0,0,0.05); border-radius: 4px; overflow-x: auto; }
.chat-message.assistant pre code { background: none; padding: 0; }
.chat-message.assistant a { color: var(--primary); text-decoration: underline; }

.chat-typing {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: chatTyping 1.4s infinite ease-in-out both;
}

.chat-typing span:nth-child(1) { animation-delay: -0.32s; }
.chat-typing span:nth-child(2) { animation-delay: -0.16s; }

@keyframes chatTyping {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.chat-tool-status {
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-tool-status i { font-size: 10px; }

/* Monospace */
.mono { font-family: ui-monospace, monospace; }

/* Utility — Bootstrap provides .text-muted, .mt-4, .mb-4, .gap-2, .gap-4 etc.
   Custom color utilities that Bootstrap doesn't provide: */
.text-green { color: var(--green); }
.text-red { color: var(--red); }

/* Onboarding Banner */
.onboarding-banner {
  background: linear-gradient(135deg, #1c1917 0%, #3d3d3d 100%);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.onboarding-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.onboarding-icon svg { width: 28px; height: 28px; }
.onboarding-icon i { font-size: 28px; }
.onboarding-content { flex: 1; }
.onboarding-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.onboarding-desc { font-size: 13px; opacity: 0.8; }
.onboarding-actions { display: flex; gap: 12px; flex-shrink: 0; }

.onboarding-btn {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}

.onboarding-btn-primary {
  background: linear-gradient(to bottom, #ffffff 0%, #f0f0f0 100%);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--text);
}

.onboarding-btn-primary:hover { background: linear-gradient(to bottom, #f8f8f8 0%, #e8e8e8 100%); }

.onboarding-btn-secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
}

.onboarding-btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* Onboarding Tour Tooltip */
.onboarding-tooltip {
  position: fixed;
  z-index: 10000;
  background: linear-gradient(to bottom, #ffffff 0%, #f8f8f8 100%);
  border: 1px solid #d1d1d1;
  border-bottom: 2px solid #b8b8b8;
  border-radius: 12px;
  padding: 20px;
  max-width: 320px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.onboarding-tooltip::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
  border-left: 1px solid #d1d1d1;
  border-top: 1px solid #d1d1d1;
  transform: rotate(-45deg);
}
.onboarding-tooltip.arrow-left::before { left: -7px; top: 50%; margin-top: -6px; transform: rotate(-45deg); }
.onboarding-tooltip.arrow-right::before { right: -7px; top: 50%; margin-top: -6px; transform: rotate(135deg); }
.onboarding-tooltip.arrow-top::before { top: -7px; left: 50%; margin-left: -6px; transform: rotate(45deg); }
.onboarding-tooltip.arrow-bottom::before { bottom: -7px; left: 50%; margin-left: -6px; transform: rotate(-135deg); }
.onboarding-tooltip-step { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.onboarding-tooltip-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.onboarding-tooltip-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 16px; }
.onboarding-tooltip-actions { display: flex; justify-content: space-between; align-items: center; }
.onboarding-tooltip-skip { font-size: 13px; color: var(--text-muted); background: none; border: none; cursor: pointer; }
.onboarding-tooltip-skip:hover { color: var(--text); }
.onboarding-tooltip-nav { display: flex; align-items: center; gap: 12px; }
.onboarding-tooltip-dots { display: flex; gap: 6px; }
.onboarding-dot { width: 8px; height: 8px; border-radius: 50%; background: #d8d8d8; }
.onboarding-dot.active { background: var(--primary); }

/* Projects Header */
.projects-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.projects-title {
  font-size: 20px;
  font-weight: 600;
}

.projects-header-actions {
  display: flex;
  gap: 8px;
}

/* Filters Bar */
.filters-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.search-wrap {
  position: relative;
  flex: 1;
  max-width: 320px;
}

.search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}
.search-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-muted);
}

.search-input {
  width: 100%;
  padding: 10px 12px 10px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
}

.search-input::placeholder { color: var(--text-muted); }

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(to bottom, #ffffff 0%, #f0f0f0 100%);
  border: 1px solid #d1d1d1;
  border-bottom: 2px solid #b8b8b8;
  border-radius: 10px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.filter-btn svg { width: 14px; height: 14px; color: var(--text-muted); }
.filter-btn i { font-size: 14px; color: var(--text-muted); }
.filter-btn:hover { background: linear-gradient(to bottom, #f8f8f8 0%, #e8e8e8 100%); }
.filter-btn:active {
  background: linear-gradient(to bottom, #e8e8e8 0%, #f0f0f0 100%);
  border-bottom-width: 1px;
  transform: translateY(1px);
}

.filter-count {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: auto;
}

/* Table Card */
.table-card { overflow: hidden; }

.table-header {
  display: flex;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-col {
  width: 140px;
  flex-shrink: 0;
}

.project-row .project-col {
  font-size: 14px;
}

.project-action {
  width: 140px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* Project Row */
.project-row {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
}

.project-row:last-child { border-bottom: none; }
.project-row:hover { background: rgba(0,0,0,0.02); }

.project-icon-cell {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
}

.project-icon-cell svg { width: 18px; height: 18px; color: var(--text-muted); }
.project-icon-cell i { font-size: 18px; color: var(--text-muted); }

.project-info-cell { min-width: 0; }
.project-name-cell { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.project-meta-cell { font-size: 12px; color: var(--text-muted); }

.risk-score {
  font-size: 16px;
  font-weight: 600;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 10px;
}

.project-status svg { width: 14px; height: 14px; }
.project-status i { font-size: 14px; }
.project-status.in-progress { color: var(--text); }
.project-status.completed { color: var(--green); }

/* Project Chevron */
.project-chevron {
  width: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-muted);
  transition: transform 0.15s ease;
  margin-right: 8px;
}
.project-row.expanded > .project-chevron { transform: rotate(90deg); }
.project-chevron-placeholder { width: 24px; flex-shrink: 0; margin-right: 8px; }

/* Project Child Rows */
.project-child-rows {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}
.project-child-rows .project-child-inner { overflow: hidden; }
.project-child-rows.visible { grid-template-rows: 1fr; }
.project-child-rows.visible .project-child-inner {
  background: #f9f9f8;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.project-child-row {
  display: flex;
  align-items: center;
  padding: 12px 20px 12px 76px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
}
.project-child-row:last-child { border-bottom: none; }
.project-child-row:hover { background: rgba(0,0,0,0.03); }

/* Status Badges */
.status-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.status-badge-done { background: #dcfce7; color: #16a34a; }
.status-badge-active { background: #f0fdf4; color: #4ade80; border: 1px solid #bbf7d0; }
.status-badge-running { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.status-badge-draft { background: #f5f5f4; color: var(--text-muted); }
.status-badge-no-targets { background: #f5f5f4; color: var(--text-muted); }
.status-badge-warning { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.status-badge-error { background: rgba(239, 68, 68, 0.1); color: #dc2626; }

/* Detail Title */
.detail-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* Finding Styles */
.finding-title { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.finding-meta { font-size: 12px; color: var(--text-muted); }
.finding-meta code {
  background: var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
}

/* Badge Orange (for confirmed state) */
.badge-orange { background: linear-gradient(to bottom, #ffedd5 0%, #fed7aa 100%); color: #9a3412; border-color: #fdba74; }

/* Table Row Clickable */
tbody tr { cursor: pointer; }

/* Cards Grid */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 24px;
  margin-bottom: 24px;
}

.card-link {
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}

.card-link:hover { color: var(--text); }

/* Activity Items */
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.activity-item:last-child { border-bottom: none; }

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-icon svg { width: 16px; height: 16px; }
.activity-icon i { font-size: 16px; }
.activity-text { font-size: 14px; margin-bottom: 4px; }
.activity-meta { font-size: 12px; color: var(--text-muted); }

/* Info Rows */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.info-row:last-child { border-bottom: none; }
.info-label { color: var(--text-muted); }
.info-value { color: var(--text); }
.info-value.mono { font-family: ui-monospace, monospace; }

/* Team Section */
.team-section {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  margin-top: 8px;
}

.team-label { font-size: 13px; color: var(--text-muted); }

.team-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.team-avatar svg { width: 16px; height: 16px; }
.team-avatar i { font-size: 16px; }

/* Pulse Animation for Running Badge */
.pulse { animation: pulse 1.5s infinite; }

/* Spinning Icon */
.spinning svg { animation: spin 2s linear infinite; }
.spinning i { animation: spin 2s linear infinite; }

/* Select Styling */
select.filter-btn {
  appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 12px center,
    linear-gradient(to bottom, #ffffff 0%, #f0f0f0 100%);
  padding-right: 32px;
}
select.filter-btn:hover {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 12px center,
    linear-gradient(to bottom, #f8f8f8 0%, #e8e8e8 100%);
}
select.filter-btn:active {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 12px center,
    linear-gradient(to bottom, #e8e8e8 0%, #f0f0f0 100%);
}

/* Auth Pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 40px 20px;
}

.auth-container {
  width: 100%;
  max-width: 400px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.auth-logo svg { width: 48px; height: 48px; }
.auth-logo i { font-size: 48px; }

.auth-logo.success {
  width: 64px;
  height: 64px;
  background: linear-gradient(to bottom, #dcfce7 0%, #bbf7d0 100%);
  border-radius: 50%;
  color: #166534;
}

.auth-logo.success svg { width: 32px; height: 32px; }

.auth-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.auth-subtitle strong { color: var(--text); }

.auth-form {
  background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
  border: 1px solid #d8d8d8;
  border-bottom-color: #c0c0c0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.auth-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: linear-gradient(to bottom, #fee2e2 0%, #fecaca 100%);
  border: 1px solid #fca5a5;
  border-radius: 8px;
  font-size: 13px;
  color: #991b1b;
  margin-bottom: 20px;
}

.auth-error svg { width: 18px; height: 18px; flex-shrink: 0; }
.auth-error i { font-size: 18px; flex-shrink: 0; }

.auth-btn {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  justify-content: center;
  margin-top: 8px;
}

.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-terms {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
}

.auth-terms a { color: var(--text); }
.auth-terms a:hover { text-decoration: underline; }

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-footer a { color: var(--text); font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}

.form-link:hover { color: var(--text); }

/* Loading Screen */
#pageLoader {
  position: absolute;
  inset: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--text-muted);
}
#pageLoader.active { display: flex; }
.content { position: relative; }

.loading-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.loading-spinner {
  width: 48px;
  height: 48px;
  animation: spin 1.5s linear infinite;
  color: var(--text);
}

.loading-spinner svg { width: 100%; height: 100%; }

/* Alerts */
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.alert svg { width: 20px; height: 20px; flex-shrink: 0; }
.alert i { font-size: 20px; flex-shrink: 0; }

.alert-success {
  background: linear-gradient(to bottom, #dcfce7 0%, #bbf7d0 100%);
  border: 1px solid #86efac;
  color: #166534;
}

.alert-error {
  background: linear-gradient(to bottom, #fee2e2 0%, #fecaca 100%);
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.qr-code-container {
  padding: 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: inline-block;
}


/* Finding Detail Page */
.detail-title { font-size: 20px; font-weight: 600; margin-bottom: 24px; }
.detail-title span { color: var(--text-muted); }

.vuln-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.vuln-header svg { width: 20px; height: 20px; color: var(--primary); }
.vuln-header i { font-size: 20px; color: var(--primary); }
.vuln-title { font-size: 15px; font-weight: 500; flex: 1; }
.vuln-status { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--green); }
.vuln-status svg { width: 14px; height: 14px; }
.vuln-status i { font-size: 14px; }
.vuln-id { color: var(--text-muted); font-size: 13px; margin-left: 12px; }

/* Tabs */
.tabs { display: flex; gap: 8px; margin-bottom: 24px; padding: 4px; background: linear-gradient(to bottom, #e8e8e8 0%, #d8d8d8 100%); border-radius: 10px; border: 1px solid #c8c8c8; box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); }
.tab { padding: 8px 16px; font-size: 14px; color: var(--text-muted); cursor: pointer; border-radius: 8px; transition: all 0.15s; border: 1px solid transparent; }
.tab:hover { color: var(--text); background: rgba(255,255,255,0.5); }
.tab.active { color: var(--text); background: linear-gradient(to bottom, #ffffff 0%, #f0f0f0 100%); border: 1px solid #d1d1d1; border-bottom: 2px solid #b8b8b8; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Sections */
.section { margin-bottom: 32px; }
.section-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.section-text { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.section-text p { margin-bottom: 12px; }
.section-text code { background: var(--border); padding: 2px 6px; border-radius: 4px; font-family: ui-monospace, monospace; font-size: 13px; }

/* Code blocks */
.code-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; margin: 16px 0; overflow: hidden; }
.code-header { padding: 8px 16px; background: var(--border); font-size: 12px; color: var(--text-muted); display: flex; justify-content: space-between; }
.code-body { padding: 16px; font-family: ui-monospace, monospace; font-size: 13px; color: var(--text-muted); line-height: 1.6; overflow-x: auto; white-space: pre-wrap; margin: 0; }
.code-body .hl { color: var(--primary); }

/* Log entries */
.log-entry { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.log-entry:last-child { border-bottom: none; }
.log-time { font-family: ui-monospace, monospace; color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.log-msg { color: var(--text); }
.log-msg code { background: var(--border); padding: 2px 6px; border-radius: 4px; font-family: ui-monospace, monospace; font-size: 12px; }

/* Activity Timeline */
.activity-timeline { position: relative; }

.activity-entry {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 16px 0;
}
.activity-entry + .activity-entry { border-top: 1px solid var(--border); }
.activity-entry::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.activity-entry:first-child::before { top: 50%; }
.activity-entry:last-child::before { bottom: 50%; }

.activity-entry-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--bg);
  outline: 1px solid var(--border);
  flex-shrink: 0;
  margin-top: 5px;
  position: relative;
  z-index: 1;
}
.activity-entry-dot.actor-user { background: var(--primary); outline-color: rgba(28, 25, 23, 0.2); }
.activity-entry-dot.actor-agent { background: var(--primary); outline-color: rgba(28, 25, 23, 0.2); }
.activity-entry-dot.actor-system { background: var(--text-muted); outline-color: rgba(120, 113, 108, 0.2); }

.activity-entry-body { flex: 1; min-width: 0; }

.activity-entry-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.activity-actor {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.activity-actor.actor-user { background: rgba(28, 25, 23, 0.06); color: var(--primary); }
.activity-actor.actor-agent { background: rgba(28, 25, 23, 0.06); color: var(--primary); }
.activity-actor.actor-system { background: rgba(120, 113, 108, 0.08); color: var(--text-muted); }

.activity-action { font-size: 13px; font-weight: 500; color: var(--text); }

.activity-time {
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
  color: var(--text-muted);
  margin-left: auto;
  white-space: nowrap;
}

.activity-status-change {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-top: 6px;
  color: var(--text-muted);
}

.activity-message {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}
.activity-message p { margin: 0 0 8px 0; }
.activity-message p:last-child { margin-bottom: 0; }
.activity-message code { background: var(--border); padding: 1px 5px; border-radius: 3px; font-family: ui-monospace, monospace; font-size: 12px; }
.activity-message pre { margin: 6px 0; padding: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; overflow-x: auto; }
.activity-message pre code { background: none; padding: 0; }

.activity-message-collapsed {
  max-height: 62px;
  overflow: hidden;
  position: relative;
}
.activity-message-collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(to bottom, transparent, var(--bg-card));
  pointer-events: none;
}

.activity-toggle {
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
}
.activity-toggle:hover { color: var(--text); }
.activity-toggle i { font-size: 10px; transition: transform 0.15s; }
.activity-toggle.expanded i { transform: rotate(180deg); }

/* Meta grid */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.meta-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.meta-value { font-size: 14px; }
.meta-value.mono { font-family: ui-monospace, monospace; color: var(--text-muted); }

/* Log Timeline */
.log-timeline { padding: 6px 0; }
.log-entry {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 20px;
  position: relative;
}
.log-entry::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.log-entry:first-child::before { top: 50%; }
.log-entry:last-child::before { bottom: 50%; }
.log-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--bg-card);
  outline: 1px solid var(--border);
  flex-shrink: 0;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}
.log-dot-complete {
  background: var(--green);
  outline-color: rgba(34, 197, 94, 0.3);
}
.log-time {
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 120px;
  flex-shrink: 0;
  margin-top: 1px;
}
.log-message {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}
.log-dot-warn { background: #f59e0b; outline-color: rgba(245, 158, 11, 0.3); }

/* Phase Indicator */
.phase-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 16px;
}
.phase-indicator-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.phase-indicator-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  animation: phase-pulse 2s ease-in-out infinite;
}
@keyframes phase-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}
.phase-indicator-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.phase-indicator-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.phase-indicator-meta {
  font-size: 12px;
  color: var(--text-muted);
}
.phase-indicator-divider {
  width: 1px;
  height: 12px;
  background: var(--border);
}
.phase-indicator-timer {
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
  font-weight: 600;
  color: var(--text);
  min-width: 52px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(to bottom, #ffffff 0%, #f5f5f5 100%);
  border: 1px solid #d1d1d1;
  border-bottom: 2px solid #b8b8b8;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-outline:hover {
  background: linear-gradient(to bottom, #f8f8f8 0%, #e8e8e8 100%);
}

.btn-outline:active {
  background: linear-gradient(to top, #f0f0f0 0%, #e0e0e0 100%);
  border-bottom-width: 1px;
  transform: translateY(1px);
}

.btn-outline:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Tier Selection Cards — now uses Bootstrap row/col-md-6 */
.tier-options {
}

.tier-card {
  background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
  border: 2px solid #d8d8d8;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}

.tier-card:hover {
  border-color: #b0b0b0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.tier-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(28,25,23,0.15);
}

.tier-card.premium {
  background: linear-gradient(to bottom, #fefefe 0%, #f8f7f5 100%);
}

.tier-card.premium.selected {
  border-color: var(--primary);
  background: linear-gradient(to bottom, #ffffff 0%, #fafaf8 100%);
}

.tier-card.operation {
  background: linear-gradient(to bottom, #f5f4f2 0%, #eeedeb 100%);
}

.tier-card.operation.selected {
  border-color: var(--primary);
  background: linear-gradient(to bottom, #f7f6f4 0%, #f0efed 100%);
}

.tier-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: linear-gradient(to bottom, #3d3d3d 0%, #1c1917 100%);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.tier-name {
  font-size: 18px;
  font-weight: 600;
}

.tier-credits {
  font-size: 14px;
  color: var(--text-muted);
  background: linear-gradient(to bottom, #f3f4f6 0%, #e5e7eb 100%);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

.tier-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.tier-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tier-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}

.tier-feature svg {
  width: 16px;
  height: 16px;
  color: var(--green);
  flex-shrink: 0;
}
.tier-feature i {
  font-size: 16px;
  color: var(--green);
  flex-shrink: 0;
}

/* Attack Surface Styles */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
  border: 1px solid #d8d8d8;
  border-bottom-color: #c0c0c0;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: all 0.15s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 32px;
  font-weight: 600;
}

/* Asset table styles */
.asset-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.asset-icon svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}
.asset-icon i {
  font-size: 18px;
  color: var(--text-muted);
}

.asset-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}

.asset-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.risk-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}

tr.selected td {
  background: rgba(28, 25, 23, 0.05);
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 24px;
  transition: color 0.15s;
}

.back-link:hover {
  color: var(--text);
}

.back-link svg {
  width: 16px;
  height: 16px;
}
.back-link i {
  font-size: 16px;
}

/* Asset Detail Header */
.asset-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}

.asset-detail-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3d3d3d 0%, #1c1917 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.asset-detail-icon svg {
  width: 28px;
  height: 28px;
}
.asset-detail-icon i {
  font-size: 28px;
}

.asset-detail-info {
  flex: 1;
}

.asset-detail-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.asset-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Asset Detail Grid — uses Bootstrap row/col-lg-8/col-lg-4 */
.asset-detail-grid {
  /* Bootstrap .row handles layout via flexbox */
}

.asset-detail-main {
  min-width: 0;
}

.asset-detail-sidebar {
  flex-shrink: 0;
}

/* Detail rows for asset sidebar */
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--text-muted);
}

.detail-value {
  color: var(--text);
  text-align: right;
}

.detail-value.mono {
  font-family: ui-monospace, monospace;
  font-size: 13px;
}

/* SSL Grade badges */
.ssl-grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
}

.ssl-a, .ssl-grade.ssl-a {
  background: #dcfce7;
  color: #166534;
}

.ssl-b, .ssl-grade.ssl-b {
  background: #fef3c7;
  color: #92400e;
}

.ssl-c, .ssl-grade.ssl-c, .ssl-d, .ssl-grade.ssl-d, .ssl-f, .ssl-grade.ssl-f {
  background: #fee2e2;
  color: #991b1b;
}

/* Responsive adjustments for attack surface */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* asset-detail-grid now handled by Bootstrap col-lg-8/col-lg-4 responsive behavior */
  .asset-detail-sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tabs {
    flex-wrap: wrap;
  }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
  transition: background 0.2s ease;
}

.modal-overlay.is-visible {
  background: rgba(0, 0, 0, 0.5);
}

.modal-overlay .modal {
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.modal-overlay.is-visible .modal {
  transform: scale(1);
  opacity: 1;
}

.modal {
  background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 100000;
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.15s;
}

.modal-close:hover {
  background: var(--border);
  color: var(--text);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  border-radius: 0 0 12px 12px;
}

/* Bulk Action Bar */
.bulk-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(to bottom, #3a3a3a 0%, #2a2a2a 100%);
  border: 1px solid #444;
  border-radius: 8px;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.5);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.bulk-action-bar:not(.inactive) {
  background: linear-gradient(to bottom, #1c1917 0%, #0a0a0a 100%);
  border-color: #333;
  color: white;
}

.bulk-count {
  font-size: 14px;
  font-weight: 500;
}

.bulk-actions {
  display: flex;
  gap: 8px;
}

.bulk-actions button {
  transition: opacity 0.25s, transform 0.25s;
}

.bulk-actions .bulk-cancel {
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  padding: 6px 0 !important;
  border: none;
  margin-left: -8px;
  transition: max-width 0.25s ease, opacity 0.25s ease, padding 0.25s ease, border 0.25s ease, margin 0.25s ease;
  white-space: nowrap;
}

.bulk-action-bar:not(.inactive) .bulk-actions .bulk-cancel {
  max-width: 100px;
  opacity: 1;
  padding: 6px 12px !important;
  border: 1px solid rgba(255,255,255,0.2);
  margin-left: 0;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
  transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}

.btn-ghost:disabled {
  opacity: 0.35;
  cursor: default;
}
.btn-ghost:disabled:hover {
  background: transparent;
  border-color: rgba(255,255,255,0.2);
}

.btn-ghost-primary {
  background: #ffffff;
  border: 1px solid #ffffff;
  color: #1c1917;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
  font-weight: 500;
}
.btn-ghost-primary:hover {
  background: #f0f0f0;
  border-color: #f0f0f0;
}
.btn-ghost-primary:disabled {
  opacity: 0.35;
  cursor: default;
}
.btn-ghost-primary:disabled:hover {
  background: #ffffff;
  border-color: #ffffff;
}

/* Cost Breakdown */
.cost-breakdown {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}

.cost-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.cost-row:not(:last-child):not(:nth-last-child(2)) {
  border-bottom: 1px solid var(--border);
}

.cost-row.total {
  font-weight: 600;
  font-size: 16px;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 2px solid var(--border);
}

/* Monitor Modal */
.monitor-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.monitor-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.monitor-stat {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 20px;
  text-align: center;
}

.monitor-stat-value {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.monitor-stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

.monitor-assets-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
  padding: 12px 0;
  color: var(--text-muted);
  user-select: none;
}

.monitor-assets-chevron {
  font-size: 11px;
  transition: transform 0.2s;
}

.monitor-assets-toggle:not(.expanded) .monitor-assets-chevron {
  transform: rotate(-90deg);
}

.monitor-assets-body {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

.monitor-filter-wrap {
  padding: 2px 11px;
  border-bottom: 1px solid var(--border);
}

.monitor-filter-wrap .form-input {
  width: 100%;
  border: none;
  padding: 6px 0;
  font-size: 14px;
  background: transparent;
  outline: none;
  box-shadow: none;
  color: var(--text-muted);
}

.monitor-filter-wrap .form-input:focus {
  border: none;
  box-shadow: none;
}

.monitor-asset-list {
  max-height: 240px;
  overflow-y: auto;
}

.monitor-asset-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.monitor-asset-item:last-child {
  border-bottom: none;
}

.monitor-asset-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.monitor-asset-item .asset-icon {
  width: 18px;
  height: 18px;
  border-radius: 3px;
}

.monitor-asset-item .asset-icon i {
  font-size: 12px;
}

.monitor-asset-type {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
}

.monitor-pricing-area {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 24px;
}

.monitor-pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

/* Table row selection */
table tbody tr.selected {
  background: rgba(28, 25, 23, 0.04);
}

table tbody tr.selected td {
  border-color: rgba(28, 25, 23, 0.08);
}

/* Checkbox styling */
table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary);
}

.checkbox-hit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin: -10px;
  cursor: pointer;
}

/* Toast Notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(to bottom, #1c1917 0%, #0a0a0a 100%);
  border: 1px solid #333;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  z-index: 9999;
  animation: slideIn 0.3s ease;
}

.toast svg {
  width: 20px;
  height: 20px;
}
.toast i {
  font-size: 20px;
}

.toast-success {
  border-color: var(--green);
}

.toast-success svg {
  color: var(--green);
}
.toast-success i {
  color: var(--green);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Pricing Tiers */
.pricing-tier {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.tier-name {
  margin-bottom: 12px;
}

.tier-price {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
}

.tier-price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tier-features li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tier-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: bold;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 16px;
}

.pagination .btn {
  padding: 6px 12px;
  font-size: 13px;
}

.pagination .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 14px;
  color: var(--text-muted);
  padding: 0 16px;
}

.icon-fix::before {
  position: relative;
  top: 1px;
}