/* ==========================================================================
   VERITAS OMNIVAULT — EXECUTIVE ACADEMIC INTELLIGENCE & PLAGIARISM DASHBOARD
   Professional SaaS UI grounded in Refactoring UI principles (Light Theme First)
   ========================================================================== */

:root {
  /* Surfaces & Canvas */
  --bg-app: #f8fafc;
  --bg-sidebar: #ffffff;
  --bg-topbar: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-hover: #f8fafc;
  --bg-input: #ffffff;

  /* Borders */
  --border-light: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-hover: #cbd5e1;
  --border-focus: #2563eb;

  /* Typography Scales */
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-hint: #94a3b8;

  /* Primary Brand (Refined Deep Blue) */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  --primary-ring: rgba(37, 99, 235, 0.15);

  /* Functional Accents */
  --success: #059669;
  --success-light: #ecfdf5;
  --success-border: #a7f3d0;
  --warning: #d97706;
  --warning-light: #fffbeb;
  --warning-border: #fde68a;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --danger-border: #fecaca;
  --purple: #7c3aed;
  --purple-light: #f5f3ff;
  --purple-border: #ddd6fe;

  /* Elevation Shadows (Refactoring UI 5-Step Scale) */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-paper: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 0 1px 1px rgba(15, 23, 42, 0.05);

  /* Radius Scale */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  /* Turnitin Match Highlight Pastels (Calm & Legible) */
  --hl-1-bg: #fee2e2; --hl-1-border: #f87171; --hl-1-badge: #ef4444;
  --hl-2-bg: #dbeafe; --hl-2-border: #60a5fa; --hl-2-badge: #3b82f6;
  --hl-3-bg: #fef3c7; --hl-3-border: #fbbf24; --hl-3-badge: #f59e0b;
  --hl-4-bg: #d1fae5; --hl-4-border: #34d399; --hl-4-badge: #10b981;
  --hl-5-bg: #f3e8ff; --hl-5-border: #c084fc; --hl-5-badge: #8b5cf6;
  --hl-6-bg: #cffafe; --hl-6-border: #38bdf8; --hl-6-badge: #06b6d4;
  --hl-7-bg: #ffedd5; --hl-7-border: #fb923c; --hl-7-badge: #f97316;
}

/* Base Reset & Core Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background-color: #121214;
}

body.dashboard-body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #121214;
  color: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  display: flex;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   APP LAYOUT ARCHITECTURE (EXPENSES DUAL CANVAS STYLE)
   ========================================================================== */
.app-layout {
  display: flex;
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background-color: #121214;
}

/* LEFT SIDEBAR (Dark Minimalist Executive Style) */
.app-sidebar {
  width: 264px;
  min-width: 264px;
  max-width: 264px;
  background-color: #121214;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 14px 14px 14px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  user-select: none;
  z-index: 50;
  box-sizing: border-box;
}

/* Sidebar Brand Header (Clean Corporate & Academic Suite) */
.sidebar-brand-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 4px 14px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 6px;
  flex-shrink: 0;
}

.brand-symbol {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  border: 1px solid #334155;
}

.brand-iso-logo {
  width: 24px;
  height: 24px;
}

.brand-text-stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-sub {
  color: #38bdf8;
  font-weight: 700;
}

.brand-status-chip {
  font-size: 11px;
  color: #10b981;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* Sidebar Menu Navigation */
.sidebar-menu {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 4px 10px 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.sidebar-menu::-webkit-scrollbar {
  width: 4px;
}

.sidebar-menu::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

.menu-section-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 8px 4px 8px;
  user-select: none;
}

.menu-section-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.06);
  margin: 6px 6px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  margin: 0;
}

.sidebar-nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7.5px 10px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.16s ease;
  font-family: inherit;
  position: relative;
  min-width: 0;
  box-sizing: border-box;
}

.sidebar-nav-btn span {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-nav-btn svg {
  width: 16px;
  height: 16px;
  color: #64748b;
  transition: all 0.16s ease;
  flex-shrink: 0;
}

.sidebar-nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
}

.sidebar-nav-btn:hover svg {
  color: #cbd5e1;
}

.sidebar-nav-btn.active {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.22);
  color: #38bdf8;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.sidebar-nav-btn.active svg {
  color: #38bdf8;
}

.nav-counter-pill {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  padding: 1.5px 7px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.3;
}

.sidebar-nav-btn.active .nav-counter-pill {
  background: rgba(56, 189, 248, 0.22);
  color: #7dd3fc;
}

.nav-badge-pill {
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-badge-pill.outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #a1a1aa;
}

.sidebar-nav-btn.active .nav-badge-pill {
  background: #2563eb;
  color: #ffffff;
}

/* Sidebar Footer */
.sidebar-footer {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.btn-sidebar-quick-sample {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
  font-family: inherit;
}

.btn-sidebar-quick-sample:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.btn-sidebar-quick-sample svg {
  width: 13px;
  height: 13px;
  color: #fbbf24;
  flex-shrink: 0;
}

.sidebar-integrity-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 8px;
}

.sidebar-integrity-chip svg {
  width: 14px;
  height: 14px;
  color: #34d399;
  flex-shrink: 0;
}

.sidebar-integrity-chip div {
  min-width: 0;
  flex: 1;
}

.sidebar-integrity-chip strong {
  display: block;
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-integrity-chip span {
  display: block;
  color: #64748b;
  font-size: 9.5px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   MAIN WORKSPACE & FLOATING WHITE CARD CONTAINER
   ========================================================================== */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  max-height: 100vh;
  padding: 14px 16px 14px 0;
  background-color: #121214;
  box-sizing: border-box;
  overflow: hidden;
}

/* Floating Giant Rounded White Card */
.page-container {
  background: #ffffff;
  border-radius: 32px;
  height: 100%;
  max-height: 100%;
  flex: 1;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.4);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  scroll-behavior: smooth;
}

/* Sleek Minimalist Rounded Scrollbar for Internal Page Scrolling */
.page-container::-webkit-scrollbar {
  width: 7px;
}

.page-container::-webkit-scrollbar-track {
  background: transparent;
  margin: 18px 0;
}

.page-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.page-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.app-page {
  display: none;
  width: 100%;
  min-height: 100%;
  flex: 1;
}

.app-page.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100%;
}

.page-inner {
  padding: 38px 44px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Page Header Common */
.page-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.page-title {
  font-size: 26px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
}

.page-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 3px;
  max-width: 720px;
}

.safe-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.safe-badge svg {
  width: 14px;
  height: 14px;
}

.header-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   PAGE 1: DASHBOARD OVERVIEW (EXPENSES STYLE DUAL-COLUMN)
   ========================================================================== */
.dash-split-container {
  display: grid;
  grid-template-columns: 65% 35%;
  flex: 1;
  min-height: 100%;
}

@media (max-width: 1100px) {
  .dash-split-container {
    grid-template-columns: 1fr;
  }
}

/* LEFT COLUMN: Main Activity & Feeds */
.dash-col-main {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.dash-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dash-main-title {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.dash-main-date {
  font-size: 13.5px;
  color: #94a3b8;
  font-weight: 500;
  display: block;
  margin-top: 4px;
}

/* Reviewers & Collaborator Avatars Group */
.dash-head-avatars .avatar-group {
  display: flex;
  align-items: center;
}

.mini-collab-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid #ffffff;
  margin-left: -8px;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}

.mini-collab-avatar:first-child {
  margin-left: 0;
}

.mini-collab-avatar.letter-av.blue {
  background: #3b82f6;
}

.mini-collab-avatar.letter-av.green {
  background: #10b981;
}

.btn-avatar-add {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid #ffffff;
  margin-left: -8px;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-avatar-add svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5px;
}

.btn-avatar-add:hover {
  background: #2563eb;
  color: #ffffff;
  transform: scale(1.05);
}

/* Activity Bar Chart Visualizer */
.dash-activity-chart-box {
  margin: 6px 0 2px 0;
}

.dash-activity-bars-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 52px;
  gap: 6px;
}

.dash-activity-bar {
  flex: 1;
  max-width: 10px;
  background: #cce1fa;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.dash-activity-bar:hover {
  background: #93c5fd;
  transform: scaleY(1.08);
}

.dash-activity-bar.active-highlight {
  background: #1d4ed8;
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.35);
}

/* Grouped Activity Feeds */
.dash-feed-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feed-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2px;
}

.feed-group-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

.btn-more-dots {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: all 0.15s ease;
}

.btn-more-dots svg {
  width: 16px;
  height: 16px;
}

.btn-more-dots:hover {
  color: #475569;
  background: #f1f5f9;
}

.feed-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash-feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 14px;
  transition: background 0.15s ease;
  cursor: pointer;
}

.dash-feed-item:hover {
  background: #f8fafc;
}

.feed-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.feed-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feed-icon-circle.blue { background: #38bdf8; color: #ffffff; }
.feed-icon-circle.purple { background: #a855f7; color: #ffffff; }
.feed-icon-circle.orange { background: #f97316; color: #ffffff; }
.feed-icon-circle.green { background: #10b981; color: #ffffff; }
.feed-icon-circle.amber { background: #f59e0b; color: #ffffff; }
.feed-icon-circle.rose { background: #f43f5e; color: #ffffff; }

.feed-icon-circle svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2px;
}

.feed-text-stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.feed-item-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.feed-item-meta {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

.feed-item-mono-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.feed-item-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.feed-score-badge {
  font-size: 14px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.feed-score-badge.score-high { color: #1e293b; }
.feed-score-badge.score-safe { color: #059669; }
.feed-score-badge.score-mid { color: #d97706; }

.btn-feed-action {
  background: transparent;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}

.btn-feed-action svg {
  width: 16px;
  height: 16px;
}

.dash-feed-item:hover .btn-feed-action {
  color: #2563eb;
}

.dash-feed-footer-link {
  margin-top: auto;
  padding-top: 6px;
}

.btn-view-all-history {
  background: transparent;
  border: none;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 0;
}

.btn-view-all-history svg {
  width: 14px;
  height: 14px;
}

.btn-view-all-history:hover {
  text-decoration: underline;
}

/* RIGHT COLUMN: Vault Distribution & Promo Card */
.dash-col-side {
  background: #ffffff;
  border-left: 1px solid #f1f5f9;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.side-panel-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.side-panel-sub {
  display: block;
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 3px;
}

.side-panel-badge {
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #a7f3d0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

/* Multi-Segment Proportional Distribution Bar */
.vault-distribution-bar {
  display: flex;
  height: 6px;
  width: 100%;
  border-radius: 999px;
  overflow: hidden;
  background-color: #f1f5f9;
  gap: 2px;
  margin: 2px 0 6px 0;
}

.vdb-seg {
  height: 100%;
  transition: opacity 0.2s ease, transform 0.2s ease;
  border-radius: 2px;
}

.vdb-seg:hover {
  opacity: 0.85;
}

/* Clean Micro-Card List of Vaults */
.vault-progress-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vault-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8.5px 10px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
}

.vault-item-row:hover {
  background: #f8fafc;
  border-color: #f1f5f9;
  transform: translateX(2px);
}

.vi-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.vault-item-row:hover .vi-icon-box {
  transform: scale(1.05);
}

.vi-icon-box svg {
  width: 16px;
  height: 16px;
  stroke-width: 2px;
}

.vi-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.vi-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vi-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vi-meta {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  margin-top: 1px;
}

.vi-stat-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  gap: 2px;
}

.vi-count {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  font-family: inherit;
  background: #f1f5f9;
  padding: 1.5px 7px;
  border-radius: 6px;
  line-height: 1.25;
}

.vi-latency {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.latency-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #10b981;
  display: inline-block;
}

/* Bottom Promo Card (Save More Money Reference Equivalent) */
.dash-side-promo-card {
  background: #f8fafc;
  border: 1px solid #eef2f6;
  border-radius: 18px;
  padding: 20px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.promo-card-icon-iso {
  margin-bottom: 2px;
}

.promo-iso-svg {
  width: 36px;
  height: 36px;
}

.promo-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.promo-card-text {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 6px;
}

.btn-promo-action {
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  text-align: center;
}

.btn-promo-action:hover {
  background: #1e293b;
}

/* ==========================================================================
   PAGE 2: CEK PLAGIARISME WORKSPACE STYLES
   ========================================================================== */
.checker-workspace {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
}

@media (max-width: 1024px) {
  .checker-workspace { grid-template-columns: 1fr; }
}

.card-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-box.no-padding {
  padding: 0;
  overflow: hidden;
}

.mode-tab-bar {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 14px;
  gap: 8px;
}

.mode-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid transparent;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.mode-tab-btn svg {
  width: 16px;
  height: 16px;
}

.mode-tab-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.mode-tab-btn.active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-border);
}

/* Dropzone */
.dropzone-area {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 44px 20px;
  text-align: center;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.dropzone-area:hover, .dropzone-area.dragover {
  background: #eff6ff;
  border-color: var(--primary);
}

.file-hidden-input {
  display: none;
}

.dropzone-circle-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.dropzone-circle-icon svg {
  width: 24px;
  height: 24px;
}

.dropzone-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.dropzone-or {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-browse-link {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
}

.dropzone-supported {
  font-size: 11.5px;
  color: var(--text-hint);
  margin-top: 10px;
  display: block;
}

.file-chosen-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.chosen-file-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chosen-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chosen-meta h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}

.chosen-meta span {
  font-size: 11px;
  color: var(--text-muted);
}

.btn-remove-choice {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

/* Raw Text Input */
.raw-text-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.raw-text-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
}

.text-counts {
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.raw-text-panel textarea {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-main);
  background: #ffffff;
  resize: vertical;
  min-height: 220px;
  line-height: 1.6;
}

.raw-text-panel textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}

/* Sidebar Settings Card */
.sidebar-settings-card {
  gap: 16px;
}

.sidebar-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-card-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.meta-helper-pill {
  font-size: 10px;
  font-weight: 700;
  color: #dc2626;
  background: #fee2e2;
  padding: 1.5px 6px;
  border-radius: var(--radius-sm);
}

.meta-inputs-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-body);
}

.form-field .req {
  color: #dc2626;
}

.clean-input-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  background: #ffffff;
  transition: all 0.15s ease;
}

.clean-input-box svg {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.clean-input-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-main);
  background: transparent;
}

.clean-input-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}

.sidebar-divider {
  height: 1px;
  background: var(--border-light);
  margin: 4px 0;
}

.settings-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.group-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.setting-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.setting-info {
  display: flex;
  flex-direction: column;
}

.setting-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
}

.setting-desc {
  font-size: 11px;
  color: var(--text-hint);
}

/* Modern Switch Control */
.clean-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}

.clean-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  border-radius: 34px;
  transition: 0.2s ease;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.clean-switch input:checked + .switch-slider {
  background-color: var(--primary);
}

.clean-switch input:checked + .switch-slider:before {
  transform: translateX(16px);
}

.setting-select-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.filter-item-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}

.clean-select-wrapper {
  position: relative;
  min-width: 140px;
}

.clean-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
}

.clean-select-trigger svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.clean-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 30;
  overflow: hidden;
}

.clean-option {
  padding: 7px 10px;
  font-size: 12px;
  color: var(--text-body);
  cursor: pointer;
  transition: background 0.1s ease;
}

.clean-option:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.clean-option.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.btn-submit-scan {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary-hover);
  padding: 11px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.btn-submit-scan:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-submit-scan svg {
  width: 17px;
  height: 17px;
}

.scan-guarantee-note {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
}

.scan-guarantee-note svg {
  width: 14px;
  height: 14px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ==========================================================================
   PAGE 3: FEEDBACK STUDIO STYLES
   ========================================================================== */
.studio-page-inner {
  gap: 16px;
}

.studio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-xs);
  gap: 16px;
}

.studio-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.studio-doc-meta h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.studio-meta-chips {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.studio-meta-chips span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.studio-meta-chips svg {
  width: 12px;
  height: 12px;
}

.studio-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-topbar-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary-hover);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.btn-topbar-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: var(--text-body);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-topbar-outline:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.btn-topbar-outline svg, .btn-topbar-primary svg {
  width: 14px;
  height: 14px;
}

/* Studio Split Layout */
.studio-content-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 1024px) {
  .studio-content-layout { grid-template-columns: 1fr; }
}

/* A4 Paper Canvas */
.studio-canvas {
  display: flex;
  justify-content: center;
  background: #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  min-height: 800px;
  overflow-x: auto;
}

.sheet-paper {
  background: #ffffff;
  width: 100%;
  max-width: 820px;
  min-height: 1050px;
  border-radius: 4px;
  box-shadow: var(--shadow-paper);
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 12px;
}

.sheet-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sheet-tii-logo {
  height: 20px;
  width: auto;
}

.brand-studio {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: -0.01em;
}

.sheet-meta-right {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.sheet-body {
  font-size: 14px;
  line-height: 1.85;
  color: #1e293b;
  font-family: 'Georgia', 'Times New Roman', serif;
}

.studio-empty-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
  gap: 12px;
}

.studio-empty-placeholder svg {
  width: 48px;
  height: 48px;
  color: #cbd5e1;
}

.studio-empty-placeholder h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.studio-empty-placeholder p {
  font-size: 13px;
  max-width: 400px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Highlighted match spans */
.hl-match {
  padding: 1px 2px;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

.hl-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  font-size: 9px;
  font-weight: 800;
  color: #ffffff;
  border-radius: 2px;
  margin-right: 2px;
  vertical-align: middle;
  font-family: 'JetBrains Mono', monospace;
}

/* Studio Match Overview Sidebar */
.studio-sidebar {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}

.sidebar-heading svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.badge-count {
  font-size: 11px;
  font-weight: 600;
  background: #f1f5f9;
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Circular Similarity Gauge */
.gauge-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.gauge-center-dial {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}

.gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-track {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 8;
}

.gauge-fill {
  fill: none;
  stroke: #3b82f6;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 264;
  transition: stroke-dashoffset 0.8s ease, stroke 0.3s ease;
}

.gauge-number-box {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 16px;
  color: var(--text-main);
}

.gauge-percent {
  font-size: 11px;
}

.gauge-label-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gauge-sub {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-hint);
  letter-spacing: 0.04em;
}

.gauge-status-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--success);
}

/* Category Breakdown */
.categories-breakdown-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cat-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cat-progress-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cat-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-body);
}

.cat-progress-header strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}

.cat-track {
  height: 6px;
  background: #f1f5f9;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.cat-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.cat-fill.internet { background: #3b82f6; }
.cat-fill.pub { background: #10b981; }
.cat-fill.student { background: #8b5cf6; }

/* Primary Matches List */
.sources-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sources-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.sources-sub-hint {
  font-size: 10px;
  color: var(--text-hint);
  text-transform: none;
}

.sources-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
}

.source-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  gap: 10px;
}

.source-item-card:hover {
  background: var(--bg-subtle);
  border-color: var(--border-hover);
}

.source-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.src-badge-num {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
}

.source-info-stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.source-title-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-vault-tag {
  font-size: 10.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.source-pct-pill {
  font-size: 11px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-main);
}

.mini-vault-logo, .chip-mini-logo {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Match Popover Tooltip */
.match-popover {
  position: absolute;
  width: 330px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 60;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.popover-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.popover-badge-pill {
  width: 22px;
  height: 22px;
  background: #2563eb;
  color: #ffffff;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.popover-title-stack {
  flex: 1;
  min-width: 0;
}

.popover-title-stack h5 {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.popover-vault-chip {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.btn-popover-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.popover-snippet {
  font-size: 12px;
  color: var(--text-body);
  line-height: 1.45;
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}

.popover-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
}

.score-chip {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
}

.popover-link {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   PAGE 4: BRANKAS JURNAL DUNIA (CLEAN INTEGRATION CARDS - NO AI CLUTTER)
   ========================================================================== */
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.table-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 7px 12px;
  background: #ffffff;
  min-width: 320px;
}

.table-search-box svg {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
}

.table-search-input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--text-main);
  background: transparent;
}

.table-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  padding: 3px;
  border-radius: var(--radius-md);
}

.table-filter-btn {
  background: transparent;
  border: none;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.table-filter-btn:hover {
  color: var(--text-main);
}

.table-filter-btn.active {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* ==========================================================================
   COMPACT & PROFESSIONAL VAULTS DIRECTORY
   ========================================================================== */
.vault-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.vaults-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 12px;
}

.vault-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 13px 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  transition: all 0.15s ease;
  min-height: 136px;
}

.vault-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-1.5px);
}

.vault-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.vault-brand-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.vault-logo-box {
  width: 48px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 3px 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.vault-logo-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.vault-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.vault-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vault-provider-name {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

/* Single Professional Clean Badge */
.vault-clean-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 2.5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #475569;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.vault-card:hover .vault-clean-badge {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.status-dot-emerald {
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Compact 2-Line Description */
.vault-desc-text {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 32px;
}

/* Compact Bottom Row */
.vault-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 8px;
  margin-top: auto;
  gap: 8px;
}

.vault-compact-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vault-metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
  font-family: 'JetBrains Mono', monospace;
}

.vault-metric-chip svg {
  width: 12px;
  height: 12px;
  color: #2563eb;
}

.vault-latency-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 1px 6px;
  border-radius: 999px;
}

.vault-latency-chip svg {
  width: 10px;
  height: 10px;
}

.btn-vault-clean-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-vault-clean-link svg {
  width: 12px;
  height: 12px;
  transition: transform 0.15s ease;
}

.btn-vault-clean-link:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.btn-vault-clean-link:hover svg {
  transform: translate(1px, -1px);
}

/* ==========================================================================
   PAGE 5 & 6: TABLES & REPOSITORY CARDS
   ========================================================================== */
.table-container {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.data-table th {
  padding: 12px 16px;
  background: #f8fafc;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-light);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-body);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: #f8fafc;
}

.table-doc-title {
  font-weight: 700;
  color: var(--text-main);
  display: block;
}

.table-sub-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--primary);
  font-weight: 600;
}

.table-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

.table-score-badge.low { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.table-score-badge.mid { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.table-score-badge.high { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

.table-actions-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.btn-table-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-body);
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-table-action:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.btn-table-action.primary {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-border);
}

.btn-table-action.primary:hover {
  background: #dbeafe;
}

.btn-table-action.danger:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.btn-table-action svg {
  width: 13px;
  height: 13px;
}

.table-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-muted);
}

.table-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #059669;
  font-weight: 600;
}

.table-footer-badge svg {
  width: 14px;
  height: 14px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.empty-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px auto;
}

.empty-state h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.empty-state p {
  font-size: 12.5px;
}

/* ==========================================================================
   COMPACT & PROFESSIONAL REPOSITORY CARDS
   ========================================================================== */
.history-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #1e293b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.history-stat-chip svg {
  width: 14px;
  height: 14px;
  color: #475569;
}

.history-stat-chip strong {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #0f172a;
}

.corpus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 12px;
}

.corpus-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 146px;
}

.corpus-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-1.5px);
}

.corpus-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.corpus-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2.5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-family: 'JetBrains Mono', monospace;
}

.corpus-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.corpus-dot.sinta { background-color: #0f766e; box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.2); }
.corpus-dot.repository { background-color: #7c3aed; box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2); }
.corpus-dot.global { background-color: #0284c7; box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2); }
.corpus-dot.web { background-color: #4f46e5; box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2); }

.corpus-year-tag {
  font-size: 10.5px;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

.corpus-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.corpus-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 36px;
}

.corpus-meta-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.corpus-meta-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #64748b;
  min-width: 0;
}

.corpus-meta-row svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: #94a3b8;
}

.corpus-meta-row span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.corpus-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 8px;
  margin-top: auto;
  gap: 8px;
}

.corpus-word-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  font-family: 'JetBrains Mono', monospace;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 1.5px 7px;
  border-radius: 6px;
}

.corpus-word-chip svg {
  width: 11px;
  height: 11px;
  color: #64748b;
}

.btn-corpus-view {
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: #2563eb;
  padding: 2px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-corpus-view svg {
  width: 12px;
  height: 12px;
  transition: transform 0.15s ease;
}

.corpus-card:hover .btn-corpus-view {
  background: #eff6ff;
  color: #1d4ed8;
}

.corpus-card:hover .btn-corpus-view svg {
  transform: translate(1px, -1px);
}

/* ==========================================================================
   PAGE 7: TURNITIN BOT CONNECTOR STYLES
   ========================================================================== */
.bot-settings-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
}

@media (max-width: 960px) {
  .bot-settings-grid { grid-template-columns: 1fr; }
}

.bot-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bot-logo-img {
  height: 24px;
  width: auto;
}

.card-box-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 14px;
}

.card-box-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.card-box-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.bot-status-tag {
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.bot-config-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 6px;
}

.native-styled-select {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 9px 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-main);
  background: #ffffff;
}

.bot-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
}

.btn-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary-hover);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all 0.15s ease;
}

.btn-primary-action:hover {
  background: var(--primary-hover);
}

.btn-primary-action svg {
  width: 14px;
  height: 14px;
}

.info-sidebar-card {
  background: #f8fafc;
  gap: 12px;
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}

.info-card-header svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.info-card-header h4 {
  font-size: 13.5px;
  font-weight: 700;
}

.info-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-body);
  line-height: 1.55;
}

/* ==========================================================================
   RADAR SCANNER LIVE HUD MODAL OVERLAY
   ========================================================================== */
.scanner-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 15, 29, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modal-overlay-fade 0.25s ease-out;
}

@keyframes modal-overlay-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.scanner-modal-card {
  width: 100%;
  max-width: 490px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 15, 30, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 24px 26px 20px;
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.75), 0 0 35px -5px rgba(56, 189, 248, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #ffffff;
  animation: modal-card-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-card-pop {
  from { transform: scale(0.96) translateY(8px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.scanner-hud-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.hud-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.scanner-icon-bubble {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.scanner-icon-bubble svg {
  width: 18px;
  height: 18px;
}

.scanner-title-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.scanner-modal-title {
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.scanner-modal-subtitle {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 400;
}

.hud-phase-label {
  font-size: 11px;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Scanner Step Milestones */
.scanner-steps-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 6px;
}

.scan-step-chip {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 4px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: #64748b;
  transition: all 0.25s ease;
}

.scan-step-chip .step-num {
  font-size: 10px;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.scan-step-chip .step-title {
  font-weight: 500;
  white-space: nowrap;
}

.scan-step-chip.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

.scan-step-chip.active .step-num {
  background: #0284c7;
  color: #ffffff;
}

.scan-step-chip.done {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.scan-step-chip.done .step-num {
  background: #059669;
  color: #ffffff;
}

/* Isometric Stage & Canvas */
.iso-scanner-stage {
  width: 100%;
  max-width: 380px;
  height: 165px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0;
}

.iso-scanner-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Central Levitating Prism Core */
.iso-central-prism {
  animation: iso-prism-float 3s ease-in-out infinite;
  transform-origin: 160px 70px;
}

@keyframes iso-prism-float {
  0%, 100% {
    transform: translateY(0px);
    filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.4));
  }
  50% {
    transform: translateY(-7px);
    filter: drop-shadow(0 12px 18px rgba(56, 189, 248, 0.7));
  }
}

/* Laser Plane Sweep Animation */
.iso-laser-plane-wrap {
  animation: iso-laser-sweep 2.4s ease-in-out infinite;
  transform-origin: 160px 62px;
}

@keyframes iso-laser-sweep {
  0% {
    transform: translateY(-26px);
    opacity: 0.35;
  }
  50% {
    transform: translateY(42px);
    opacity: 0.95;
  }
  100% {
    transform: translateY(-26px);
    opacity: 0.35;
  }
}

/* Stacked Layers Subtle Levitation */
.plate-top {
  animation: plate-float-top 3s ease-in-out infinite;
  animation-delay: 0.2s;
}

.plate-middle {
  animation: plate-float-mid 3s ease-in-out infinite;
  animation-delay: 0.5s;
}

.plate-bottom {
  animation: plate-float-bot 3s ease-in-out infinite;
  animation-delay: 0.8s;
}

@keyframes plate-float-top {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes plate-float-mid {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.5px); }
}

@keyframes plate-float-bot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}

/* Radar Rotating Dash */
.iso-radar-ring {
  animation: radar-dash-rotate 8s linear infinite;
}

@keyframes radar-dash-rotate {
  to { stroke-dashoffset: 40; }
}

/* Data Stream Flow */
.iso-data-stream {
  animation: data-stream-flow 1.2s linear infinite;
}

@keyframes data-stream-flow {
  from { stroke-dashoffset: 12; }
  to { stroke-dashoffset: 0; }
}

/* Node Ping */
.iso-node-pulse {
  animation: node-ping 1.6s ease-in-out infinite;
}

@keyframes node-ping {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.35); opacity: 1; filter: drop-shadow(0 0 5px currentColor); }
}

/* Progress bar in scanner */
.scanner-progress-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.progress-labels-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #94a3b8;
}

.progress-status-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scanner-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: dot-pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 10px #38bdf8; }
}

.progress-labels-row strong {
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
}

.scanner-progress-box .progress-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.scanner-progress-box .progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #38bdf8, #10b981);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.6);
  position: relative;
}

.scanner-progress-box .progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: bar-shimmer 1.8s infinite;
}

@keyframes bar-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Minimal Live Activity Line (Replaces bulky retro console) */
.scanner-live-ticker {
  width: 100%;
  min-height: 36px;
  max-height: 36px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.scanner-live-ticker .terminal-line {
  font-size: 11.5px;
  line-height: 1.4;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: ticker-slide-in 0.25s ease-out;
}

@keyframes ticker-slide-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.scanner-live-ticker .terminal-line.init { color: #38bdf8; }
.scanner-live-ticker .terminal-line.success { color: #34d399; }
.scanner-live-ticker .terminal-line.warn { color: #fbbf24; }

/* Backward compatibility for terminal class */
.scanner-terminal {
  width: 100%;
  min-height: 36px;
  max-height: 36px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.scanner-footer-hint {
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 2px;
}

.scanner-footer-hint svg {
  width: 13px;
  height: 13px;
  color: #10b981;
}

/* Filter Drawer Modal */
.drawer-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 90;
  display: flex;
  justify-content: flex-end;
}

.drawer-sheet {
  width: 100%;
  max-width: 380px;
  height: 100%;
  background: #ffffff;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 14px;
}

.drawer-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-title-group h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.btn-close-drawer {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.drawer-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer-helper {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.drawer-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.switch-label-wrap {
  display: flex;
  flex-direction: column;
}

.switch-label-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.switch-label-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.btn-apply-recheck {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
}

.btn-apply-recheck svg {
  width: 14px;
  height: 14px;
}

/* Generic Clean Dialogs */
.clean-modal {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  background: transparent;
  max-width: 620px;
  width: 90%;
  margin: auto;
}

.clean-modal::backdrop {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.modal-shell {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.modal-title-stack h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.modal-title-stack p {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-form-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.clean-input {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-main);
}

.clean-input:focus, .clean-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}

.clean-textarea {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-main);
  resize: vertical;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}

.btn-subtle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-subtle:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.btn-subtle svg {
  width: 14px;
  height: 14px;
}

/* Detail Modal Text Box */
.detail-text-paper {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  max-height: 350px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  color: var(--text-body);
}

.detail-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.detail-cat-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #7c3aed;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  padding: 1.5px 6px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 4px;
}

/* Utility Helpers */
.hidden {
  display: none !important;
}

.spin-anim {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   EXECUTIVE TOAST NOTIFICATION SYSTEM
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 440px;
  width: calc(100vw - 48px);
  pointer-events: none;
}

.toast-card {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 14px 16px;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: #ffffff;
  overflow: hidden;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.25s ease, opacity 0.25s ease, margin-bottom 0.25s ease;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(110%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.toast-card.toast-removing {
  opacity: 0;
  transform: translateX(60px) scale(0.92);
  margin-bottom: -60px;
  pointer-events: none;
}

/* Toast Variants */
.toast-card.toast-success {
  border-left: 4px solid #10b981;
}
.toast-card.toast-success .toast-icon-wrap {
  background: rgba(16, 185, 129, 0.16);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.toast-card.toast-success .toast-progress-bar {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.toast-card.toast-error {
  border-left: 4px solid #f43f5e;
}
.toast-card.toast-error .toast-icon-wrap {
  background: rgba(244, 63, 94, 0.16);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
}
.toast-card.toast-error .toast-progress-bar {
  background: linear-gradient(90deg, #f43f5e, #fb7185);
}

.toast-card.toast-warn {
  border-left: 4px solid #f59e0b;
}
.toast-card.toast-warn .toast-icon-wrap {
  background: rgba(245, 158, 11, 0.16);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.toast-card.toast-warn .toast-progress-bar {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.toast-card.toast-info {
  border-left: 4px solid #3b82f6;
}
.toast-card.toast-info .toast-icon-wrap {
  background: rgba(59, 130, 246, 0.16);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.toast-card.toast-info .toast-progress-bar {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

/* Internal elements */
.toast-icon-wrap {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.toast-icon-wrap svg {
  width: 17px;
  height: 17px;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.toast-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.toast-time {
  font-size: 10px;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
}

.toast-message {
  font-size: 12px;
  line-height: 1.5;
  color: #cbd5e1;
  white-space: pre-line;
  word-break: break-word;
}

.toast-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 3px;
  margin: -3px -3px 0 2px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}
.toast-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}
.toast-close-btn svg {
  width: 14px;
  height: 14px;
}

.toast-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.toast-progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left;
  transition: transform linear;
}

/* ==========================================================================
   CUSTOM CONFIRMATION MODAL
   ========================================================================== */
.confirm-modal {
  max-width: 440px;
  width: 90%;
}

.confirm-modal-shell {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid var(--border-light);
}

.confirm-modal-top {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.confirm-modal-badge {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-modal-badge.danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.confirm-modal-badge.primary {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
}

.confirm-modal-badge svg {
  width: 22px;
  height: 22px;
}

.confirm-modal-info h3 {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.confirm-modal-info p {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.5;
}

.confirm-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.btn-danger-action {
  background: #dc2626;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(220, 38, 38, 0.2);
}

.btn-danger-action:hover {
  background: #b91c1c;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
}

/* ==========================================================================
   SIDEBAR EXTERNAL NAV LINK & USER PROFILE CARD
   ========================================================================== */
.sidebar-nav-btn.external-nav-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin: 0;
  min-width: 0;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.sidebar-user-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.user-avatar-circle {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.user-meta-stack {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5px;
}

.user-fullname {
  font-size: 11.5px;
  font-weight: 700;
  color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.user-role-badge {
  display: inline-block;
  max-width: 100%;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 1px 5px;
  border-radius: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
  box-sizing: border-box;
  vertical-align: middle;
}

.user-role-badge.role-admin {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.user-role-badge.role-client {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.btn-sidebar-logout {
  flex-shrink: 0;
  margin-left: auto;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 5px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.btn-sidebar-logout:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.25);
}

.btn-sidebar-logout svg {
  width: 15px;
  height: 15px;
}

/* ==========================================================================
   ROLE-BASED BADGES & SIDEBAR QUOTA WIDGET
   ========================================================================== */
.sidebar-quota-box {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 9px;
  padding: 8px 10px;
  margin: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 6px rgba(0, 0, 0, 0.2);
}

.quota-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.quota-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.04em;
}

.quota-title svg {
  width: 11px;
  height: 11px;
  color: #f59e0b;
  flex-shrink: 0;
}

.quota-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
}

.quota-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 7px;
}

.quota-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.btn-sidebar-topup {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.1);
  color: #e0f2fe;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.btn-sidebar-topup:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.4);
  color: #ffffff;
}

.btn-sidebar-topup svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.sidebar-admin-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.05) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 9px;
  margin: 0;
}

.sidebar-admin-badge svg {
  width: 16px;
  height: 16px;
  color: #fbbf24;
  flex-shrink: 0;
}

.sidebar-admin-badge div {
  min-width: 0;
  flex: 1;
}

.sidebar-admin-badge strong {
  display: block;
  font-size: 11px;
  color: #fbbf24;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-admin-badge span {
  display: block;
  font-size: 9.5px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   PAGE: BILLING & TAGIHAN KUOTA (CLIENT & ADMIN SHARED)
   ========================================================================== */
.billing-banner-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: linear-gradient(135deg, #090d16 0%, #111827 45%, #1e1b4b 100%);
  border: 1px solid rgba(129, 140, 248, 0.28);
  border-radius: 18px;
  padding: 26px 32px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px -12px rgba(15, 23, 42, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.billing-banner-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(56, 189, 248, 0.08) 50%, transparent 75%);
  border-radius: 50%;
  pointer-events: none;
}

.billing-banner-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.billing-banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  width: fit-content;
}

.billing-banner-tag i,
.billing-banner-tag svg {
  width: 13.5px;
  height: 13.5px;
  color: #34d399;
}

.billing-banner-title {
  font-size: 21px;
  font-weight: 700;
  color: #ffffff;
  margin: 2px 0 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.billing-banner-title span#billingCurrentQuotaVal {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 800;
  color: #38bdf8 !important;
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
}

.billing-banner-desc {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
  max-width: 640px;
}

.billing-banner-desc em {
  color: #ffffff;
  font-style: normal;
  font-weight: 600;
}

.billing-banner-action {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.quota-stat-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.quota-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.quota-stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
}

/* In-App Pricing Tiers Bento Grid (4 Cards) */
.dash-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
  align-items: stretch;
}

.dash-price-card,
.dash-pricing-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dash-price-card:hover,
.dash-pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
}

/* Featured Card (Tier 5 - Best Value) */
.dash-price-card.featured,
.dash-pricing-card.is-popular {
  border: 2px solid #6366f1;
  background: linear-gradient(180deg, #fcfdff 0%, #ffffff 100%);
  box-shadow: 0 12px 32px -4px rgba(99, 102, 241, 0.18);
}

.dash-price-card.featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px -8px rgba(99, 102, 241, 0.28);
  border-color: #4f46e5;
}

.dash-featured-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  z-index: 2;
}

.dash-featured-ribbon svg,
.dash-featured-ribbon i {
  width: 11px;
  height: 11px;
}

.dash-card-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.dash-price-badge,
.dash-card-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  width: fit-content;
}

.dash-price-badge.badge-save,
.dash-card-badge.badge-save {
  background: #ecfdf5;
  color: #059669;
}

.dash-price-badge.featured,
.dash-card-badge.badge-popular {
  background: #ede9fe;
  color: #6366f1;
}

.dash-price-badge.badge-value,
.dash-card-badge.badge-value {
  background: #e0f2fe;
  color: #0284c7;
}

.dash-price-checks,
.dash-card-checks {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 6px 0 0;
  line-height: 1.25;
}

.dash-card-checks.text-lavender {
  color: #4338ca;
}

.dash-card-checks.text-sky {
  color: #0369a1;
}

.dash-card-price-box {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-price-nominal,
.dash-card-nominal {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.dash-price-rp,
.dash-card-rp {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

.dash-price-amount,
.dash-card-amount {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1;
}

.dash-card-amount.text-lavender {
  color: #4f46e5;
}

.dash-card-amount.text-sky {
  color: #0284c7;
}

.dash-price-unit,
.dash-card-unit {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  margin-left: 2px;
}

.dash-card-rate-pill {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}

.dash-card-rate-pill.rate-green {
  color: #059669;
}

.dash-card-rate-pill.rate-lavender {
  color: #6366f1;
}

.dash-card-rate-pill.rate-sky {
  color: #0284c7;
}

/* CRITICAL RESET: Remove double bullets (list-style disc) from pricing features */
ul.dash-price-features,
.dash-price-features,
.dash-tier-features {
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin: 12px 0 20px !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

ul.dash-price-features li,
.dash-price-features li,
.dash-tier-features li {
  list-style: none !important;
  list-style-type: none !important;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  color: #334155;
  line-height: 1.45;
}

ul.dash-price-features li::marker,
.dash-price-features li::marker,
.dash-tier-features li::marker {
  content: none !important;
  display: none !important;
}

ul.dash-price-features li i,
ul.dash-price-features li svg,
.dash-price-features li i,
.dash-price-features li svg,
.dash-tier-features li i,
.dash-tier-features li svg {
  width: 15px;
  height: 15px;
  min-width: 15px;
  color: #10b981;
  margin-top: 2px;
  flex-shrink: 0;
}

ul.dash-price-features li strong,
.dash-price-features li strong {
  color: #0f172a;
  font-weight: 700;
}

/* CTA Buy Tier Buttons */
.btn-dash-buy-tier {
  width: 100%;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  margin-top: auto;
}

.btn-dash-buy-tier:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
}

.btn-dash-buy-tier.primary,
.btn-dash-buy-tier.btn-primary-tier {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  border: 1px solid #4f46e5;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
  font-weight: 700;
}

.btn-dash-buy-tier.primary:hover,
.btn-dash-buy-tier.btn-primary-tier:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-dash-buy-tier i,
.btn-dash-buy-tier svg {
  width: 15px;
  height: 15px;
}

/* ==========================================================================
   PAGE: ADMIN MANAGEMENT (USERS & BILLING) — EXECUTIVE SAAS DESIGN
   ========================================================================== */

/* Eyebrow & Badges */
.admin-page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.admin-shield-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.admin-shield-tag svg {
  width: 13px;
  height: 13px;
}

/* Metric Row & Cards */
.admin-metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.admin-metric-row.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.admin-kpi-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
  overflow: hidden;
}

.admin-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.admin-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  border-color: #cbd5e1;
}

.admin-kpi-card:hover::before {
  opacity: 1;
}

.admin-kpi-card.blue::before { background: #3b82f6; }
.admin-kpi-card.cyan::before { background: #06b6d4; }
.admin-kpi-card.purple::before { background: #8b5cf6; }
.admin-kpi-card.emerald::before { background: #10b981; }
.admin-kpi-card.amber::before { background: #f59e0b; }

.kpi-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kpi-card-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.admin-kpi-card:hover .kpi-card-icon {
  transform: scale(1.06);
}

.kpi-card-icon svg {
  width: 18px;
  height: 18px;
}

.kpi-card-icon.blue { background: #eff6ff; color: #2563eb; border: 1px solid #dbeafe; }
.kpi-card-icon.cyan { background: #ecfeff; color: #0891b2; border: 1px solid #cffafe; }
.kpi-card-icon.purple { background: #f5f3ff; color: #7c3aed; border: 1px solid #ede9fe; }
.kpi-card-icon.emerald { background: #ecfdf5; color: #059669; border: 1px solid #d1fae5; }
.kpi-card-icon.amber { background: #fffbeb; color: #d97706; border: 1px solid #fef3c7; }

.kpi-card-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.kpi-card-value.text-cyan { color: #0284c7; }
.kpi-card-value.text-purple { color: #7c3aed; }
.kpi-card-value.text-emerald { color: #059669; }
.kpi-card-value.text-blue { color: #2563eb; }
.kpi-card-value.text-amber { color: #d97706; }

.kpi-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  padding-top: 6px;
  border-top: 1px dashed #f1f5f9;
}

.kpi-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1.5px 7px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.kpi-card-badge svg {
  width: 11px;
  height: 11px;
}

.kpi-card-badge.blue { background: #eff6ff; color: #1d4ed8; }
.kpi-card-badge.cyan { background: #ecfeff; color: #0e7490; }
.kpi-card-badge.purple { background: #f5f3ff; color: #6d28d9; }
.kpi-card-badge.emerald { background: #ecfdf5; color: #047857; }
.kpi-card-badge.amber { background: #fffbeb; color: #b45309; }

.kpi-card-sub {
  font-size: 11.5px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card Box & Table Container */
.admin-card-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  margin-top: 4px;
}

.admin-toolbar-row {
  padding: 16px 20px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 280px;
}

.admin-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 320px;
}

.admin-search-wrapper .search-icon {
  position: absolute;
  left: 12px;
  width: 15px;
  height: 15px;
  color: #94a3b8;
  pointer-events: none;
}

.admin-search-input {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 36px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-main);
  font-family: inherit;
  transition: all 0.15s ease;
}

.admin-search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.admin-search-input::placeholder {
  color: #94a3b8;
}

.admin-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-select-wrapper .select-icon {
  position: absolute;
  left: 11px;
  width: 14px;
  height: 14px;
  color: #94a3b8;
  pointer-events: none;
}

.admin-filter-select {
  height: 38px;
  padding: 0 32px 0 32px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 13px;
  transition: all 0.15s ease;
}

.admin-filter-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.admin-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

.admin-count-pill svg {
  width: 14px;
  height: 14px;
  color: #94a3b8;
}

/* Executive Clean Table */
.admin-table-container {
  width: 100%;
  overflow-x: auto;
  background: #ffffff;
}

.admin-clean-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-clean-table th {
  background: #f8fafc;
  padding: 13px 18px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.admin-clean-table td {
  padding: 14px 18px;
  font-size: 13px;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.admin-clean-table tr:last-child td {
  border-bottom: none;
}

.admin-clean-table tbody tr {
  transition: background-color 0.15s ease;
}

.admin-clean-table tbody tr:hover td {
  background: #fbfcfe;
}

/* User cell details */
.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.user-avatar.avatar-blue {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.user-avatar.avatar-purple {
  background: #faf5ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}

.user-meta-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 13.5px;
  line-height: 1.25;
}

.user-meta-email {
  font-size: 11.5px;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
}

/* Role Badges */
.table-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.table-role-badge svg {
  width: 12px;
  height: 12px;
}

.table-role-badge.client {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.table-role-badge.admin {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

/* Institution Cell */
.institution-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #475569;
  max-width: 240px;
}

.institution-cell svg {
  width: 14px;
  height: 14px;
  color: #94a3b8;
  flex-shrink: 0;
}

/* Quota Cell */
.quota-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quota-value-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  font-weight: 800;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 8px;
  border-radius: 6px;
  min-width: 32px;
  text-align: center;
}

.btn-quota-edit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-quota-edit svg {
  width: 12px;
  height: 12px;
  color: #64748b;
}

.btn-quota-edit:hover {
  background: #f8fafc;
  border-color: #3b82f6;
  color: #2563eb;
}

.btn-quota-edit:hover svg {
  color: #2563eb;
}

/* Stat & Date Cells */
.stat-check-cell {
  font-size: 13px;
  color: #334155;
}

.stat-check-cell strong {
  font-weight: 700;
  color: #0f172a;
}

.date-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}

.date-cell svg {
  width: 13px;
  height: 13px;
  color: #94a3b8;
}

/* Action Buttons */
.btn-role-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-role-action svg {
  width: 13px;
  height: 13px;
}

.btn-role-action.to-admin:hover {
  background: #f5f3ff;
  border-color: #c4b5fd;
  color: #6d28d9;
}

.btn-role-action.to-client:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.badge-self-account {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.badge-self-account svg {
  width: 12px;
  height: 12px;
}

/* Table empty & loading states */
.table-empty-wrap {
  text-align: center;
  padding: 48px 24px;
  color: #64748b;
}

.table-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.table-empty-icon svg {
  width: 24px;
  height: 24px;
}

.table-empty-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.table-empty-desc {
  font-size: 12.5px;
  color: #94a3b8;
  max-width: 320px;
  margin: 0 auto;
}

/* Table Actions Legacy Support */
.btn-table-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-table-action:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-table-action.btn-approve {
  background: #10b981;
  color: #ffffff;
  border-color: #059669;
}

.btn-table-action.btn-approve:hover {
  background: #059669;
}

.btn-table-action.btn-delete:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.spin-anim {
  animation: spin 0.75s linear infinite;
}

/* ==========================================================================
   EXECUTIVE MODAL DESIGN SYSTEM (LIGHT THEME FIRST)
   ========================================================================== */
.executive-modal-shell {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
}

.modal-hdr {
  padding: 20px 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-hdr-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-icon-badge.blue {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
}

.modal-icon-badge.indigo {
  background: #eef2ff;
  color: #4f46e5;
  border: 1px solid #e0e7ff;
}

.modal-icon-badge.emerald {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #d1fae5;
}

.modal-icon-badge svg {
  width: 22px;
  height: 22px;
}

.modal-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
}

.modal-subtitle {
  font-size: 12.5px;
  color: #64748b;
  margin: 3px 0 0 0;
}

.modal-btn-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-btn-close:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #e2e8f0;
}

.modal-btn-close svg {
  width: 18px;
  height: 18px;
}

.modal-bdy {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #ffffff;
}

.modal-user-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-user-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.modal-user-email {
  font-size: 11.5px;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
}

.modal-quota-badge {
  font-size: 12px;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.modal-radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modal-radio-card {
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-radio-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.modal-radio-card.active,
.modal-radio-card:has(input:checked) {
  border-color: #3b82f6;
  background: #eff6ff;
}

.modal-radio-card input[type="radio"] {
  margin-top: 3px;
  accent-color: #2563eb;
  cursor: pointer;
}

.radio-card-content {
  display: flex;
  flex-direction: column;
}

.radio-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.radio-card-sub {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}

.modal-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 7px;
}

.modal-label .required-star {
  color: #ef4444;
}

.modal-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.modal-input-wrap .input-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: #94a3b8;
  pointer-events: none;
}

.modal-input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font-size: 13.5px;
  color: #0f172a;
  font-family: inherit;
  transition: all 0.15s ease;
}

.modal-input-wrap .modal-input {
  padding-left: 38px;
}

.modal-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.modal-select {
  width: 100%;
  height: 42px;
  padding: 0 36px 0 38px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: #0f172a;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  transition: all 0.15s ease;
}

.modal-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.quota-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.quick-quota-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-quick-quota {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-quick-quota:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

.btn-quick-quota.active {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
}

.modal-notice-box {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #1e40af;
  line-height: 1.45;
}

.modal-notice-box svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #2563eb;
}

.modal-ftr {
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

@media (max-width: 1024px) {
  .dash-pricing-grid,
  .admin-metric-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .dash-pricing-grid,
  .admin-metric-row {
    grid-template-columns: 1fr;
  }
  .billing-banner-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

