/* ============================================================
   ScamShield AI — Portal stylesheet
   Fonts: Gabarito (display) · Onest (body) · Fragment Mono (code)
   ============================================================ */

:root {
  --ink: #121F16;
  --cream: #FBFAF6;
  --green: #16A34A;
  --green-dark: #15803D;
  --green-bright: #4ADE80;
  --green-tint: #EBF7EE;
  --green-tint-border: #CBEAD4;
  --muted: #50685A;
  --faint: #71867A;
  --hint: #9CA89B;
  --line: rgba(18, 31, 22, 0.09);
  --line-soft: rgba(18, 31, 22, 0.06);
  --row-line: #EEF1EA;
  --red: #DC2626;
  --red-bg: #FEF2F2;
  --red-border: #FBD5D5;
  --amber: #D97706;
  --amber-deep: #B45309;
  --amber-bg: #FFFBEB;
  --amber-border: #F8E5B9;
  --blue: #1D4ED8;
  --blue-bg: #EFF4FF;
  --font-display: 'Gabarito', sans-serif;
  --font-body: 'Onest', sans-serif;
  --font-mono: 'Fragment Mono', monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
}

input::placeholder, textarea::placeholder { color: var(--hint); }
button { font-family: var(--font-body); }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 256px;
  background: #FFFFFF;
  border-right: 1.5px solid rgba(18,31,22,0.08);
  display: flex;
  flex-direction: column;
  z-index: 40;
}
.sidebar__brand {
  padding: 20px 20px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar__brand img { width: 30px; height: 32px; object-fit: contain; }
.sidebar__brand-name { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.sidebar__brand-name em { font-style: normal; color: var(--green); }

.workspace {
  margin: 0 14px 10px;
  background: #F3F6F1;
  border: 1.5px solid var(--line-soft);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.workspace__avatar {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--green);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.workspace__meta { flex: 1; min-width: 0; }
.workspace__name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspace__plan { font-family: var(--font-mono); font-size: 10px; color: var(--faint); letter-spacing: 0.06em; }
.workspace__caret { color: var(--hint); font-size: 11px; }

.sidebar__nav { flex: 1; overflow-y: auto; padding: 4px 14px; }
.nav-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--hint);
  padding: 14px 10px 7px;
}
.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: none;
  cursor: pointer;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  text-decoration: none;
}
.nav-item:hover { background: #F3F6F1; }
.nav-item.is-active { background: var(--green-tint); color: var(--green-dark); font-weight: 700; }
.nav-item__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--red);
  background: var(--red-bg);
  border-radius: 999px;
  padding: 2px 8px;
}
.nav-item__ext { font-size: 11px; color: var(--hint); }

.sidebar__user {
  border-top: 1.5px solid var(--line-soft);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar__user-avatar {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--green-tint);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}
.sidebar__user-meta { flex: 1; }
.sidebar__user-name { font-size: 13.5px; font-weight: 600; }
.sidebar__user-role { font-size: 11.5px; color: var(--faint); }
.sidebar__logout {
  background: none; border: none; cursor: pointer;
  color: var(--faint); font-size: 16px; padding: 4px 6px;
  border-radius: 6px; line-height: 1;
  transition: color 0.15s, background 0.15s;
}
.sidebar__logout:hover { color: var(--red); background: rgba(220,50,50,0.08); }

/* ---------- Main / topbar ---------- */
.main { margin-left: 256px; min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251,250,246,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1.5px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  height: 62px;
}
.crumb { font-size: 13.5px; color: var(--faint); }
.crumb i { font-style: normal; color: #C2CCC0; padding: 0 4px; }
.crumb b { color: var(--ink); font-weight: 600; }
.topbar__spacer { flex: 1; }
.searchbox {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #FFFFFF;
  border: 1.5px solid rgba(18,31,22,0.10);
  border-radius: 999px;
  padding: 8px 16px;
  width: 320px;
  color: var(--hint);
  font-size: 13.5px;
}
.searchbox kbd {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: #F3F6F1;
  border-radius: 6px;
  padding: 2px 6px;
}
.iconbtn {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1.5px solid rgba(18,31,22,0.10);
  background: #FFFFFF;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
}
.iconbtn:hover { border-color: var(--green); }
.scan-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green-tint);
  border: 1px solid var(--green-tint-border);
  color: var(--green-dark);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  /* Fixed width so the live countdown ticking does not reflow the
     search box / notification bell beside it in the flex topbar. */
  width: 258px;
  flex: 0 0 auto;
  justify-content: flex-start;
  overflow: hidden;
}
.scan-status .dot { flex: 0 0 auto; }
#scan-status-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; flex-shrink: 0; }

.content { flex: 1; padding: 28px; max-width: 1280px; width: 100%; }

/* ---------- Screens ---------- */
.screen { display: none; }
.screen.is-active { display: block; }

/* ---------- Shared bits ---------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.page-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.page-sub { font-size: 14.5px; color: var(--muted); }

.card {
  background: #FFFFFF;
  border: 1.5px solid var(--line);
  border-radius: 24px;
}
.card--pad { padding: 24px; }

.btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn--primary { color: #FFFFFF; background: var(--green); }
.btn--primary:hover { background: var(--green-dark); }
.btn--outline {
  color: var(--ink);
  background: #FFFFFF;
  border: 1.5px solid rgba(18,31,22,0.12);
  font-weight: 600;
}
.btn--outline:hover { border-color: var(--green); color: var(--green-dark); }
.btn--danger { color: #FFFFFF; background: var(--red); }
.btn--danger-outline { color: var(--red); background: transparent; border: 1.5px solid var(--red-border); font-weight: 700; }
.btn--danger-outline:hover { background: var(--red-bg); }
.btn--disabled { color: var(--faint); background: #F3F6F1; cursor: not-allowed; font-weight: 600; }
.btn--ink { color: #FFFFFF; background: var(--ink); }
.btn--ink:hover { background: var(--green); }
.btn--block { display: block; width: 100%; text-align: center; }

.pill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 999px;
  padding: 4px 9px;
  white-space: nowrap;
}
.pill--high { color: var(--red); background: var(--red-bg); }
.pill--med { color: var(--amber); background: var(--amber-bg); }
.pill--low { color: var(--green); background: #F0FAF2; }
.pill--neutral { color: var(--muted); background: #F3F6F1; }
.pill--amber { color: var(--amber-deep); background: var(--amber-bg); }
.pill--green { color: var(--green-dark); background: var(--green-tint); }
.pill--blue { color: var(--blue); background: var(--blue-bg); }

.mono { font-family: var(--font-mono); }
.kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--hint);
}

/* Segmented control */
.seg { display: flex; gap: 4px; background: #F3F6F1; border-radius: 999px; padding: 4px; flex-wrap: wrap; }
.seg button {
  font-size: 12.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 6px 13px;
  background: transparent;
  color: var(--muted);
}
.seg button.is-active { background: var(--ink); color: #FFFFFF; }

/* Toggle switch */
.switch {
  position: relative;
  width: 42px; height: 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: #D8E0D8;
  flex-shrink: 0;
  transition: background 0.2s;
}
.switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  transition: left 0.2s;
}
.switch.is-on { background: var(--green); }
.switch.is-on::after { left: 21px; }

/* Settings-style rows */
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--row-line);
}
.setting-row:last-child { border-bottom: none; }
.setting-row__name { font-size: 14.5px; font-weight: 600; }
.setting-row__desc { font-size: 12.5px; color: var(--hint); margin-top: 2px; max-width: 460px; }

.input, .select, .textarea {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 15px;
  border: 1.5px solid rgba(18,31,22,0.12);
  border-radius: 12px;
  outline: none;
  background: #FFFFFF;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
}
.input--mono { font-family: var(--font-mono); font-size: 12.5px; }
.input--w300 { width: 300px; max-width: 100%; }
.textarea { resize: vertical; }

.field-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }

.section-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin: 26px 0 4px; }
.section-desc { font-size: 13px; color: var(--faint); margin-bottom: 8px; line-height: 1.6; }

/* ---------- Overview ---------- */
.grid-2-1 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; margin-bottom: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.hero-card {
  background: var(--ink);
  border-radius: 24px;
  padding: 34px;
  color: #FFFFFF;
}
.hero-card__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #7FA98C;
  margin-bottom: 14px;
}
.hero-card__title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.hero-card__title em { font-style: normal; color: var(--green-bright); }
.hero-card__sub { font-size: 15px; line-height: 1.6; color: #9DBCA9; margin: 0 0 22px; max-width: 480px; }
.hero-card__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card .btn--bright { color: var(--ink); background: var(--green-bright); }
.hero-card .btn--bright:hover { background: #6CE99B; }
.hero-card .btn--ghost { color: #FFFFFF; background: transparent; border: 1.5px solid rgba(255,255,255,0.22); font-weight: 600; }
.hero-card .btn--ghost:hover { border-color: var(--green-bright); }

.chart-bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; margin-bottom: 12px; }
.chart-bars > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart-bars i {
  display: block;
  width: 100%;
  border-radius: 7px 7px 3px 3px;
  background: var(--green-tint-border);
}
.chart-bars > div:last-child i { background: var(--green); }
.chart-bars span { font-family: var(--font-mono); font-size: 10px; color: var(--hint); }
.chart-note { font-size: 13px; color: var(--muted); }
.chart-note b { color: var(--green-dark); font-weight: 700; }

.stat-card { background: #FFFFFF; border: 1.5px solid var(--line); border-radius: 20px; padding: 22px; }
.stat-card__value { font-family: var(--font-display); font-size: 34px; font-weight: 800; }
.stat-card__value--red { color: var(--red); }
.stat-card__value--amber { color: var(--amber); }
.stat-card__value--green { color: var(--green); }
.stat-card__note { font-size: 12.5px; color: var(--faint); margin-top: 4px; }
.stat-card__note--up { color: var(--green-dark); font-weight: 600; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1.5px solid var(--line-soft);
}
.card-head__title { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.card-head__link { font-size: 13px; font-weight: 600; color: var(--green-dark); background: none; border: none; cursor: pointer; }

.queue-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 24px;
  border-bottom: 1px solid rgba(18,31,22,0.04);
}
.queue-row:last-child { border-bottom: none; }
.queue-row__body { flex: 1; min-width: 0; }
.queue-row__desc { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-row__sender { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); }
.queue-row__score { font-family: var(--font-display); font-size: 18px; font-weight: 800; }

.cat-row { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.cat-row:last-child { margin-bottom: 0; }
.cat-row__id { font-family: var(--font-mono); font-size: 10.5px; color: var(--hint); width: 52px; flex-shrink: 0; }
.cat-row__main { flex: 1; }
.cat-row__name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.cat-row__track { height: 5px; border-radius: 999px; background: var(--row-line); }
.cat-row__fill { height: 5px; border-radius: 999px; background: var(--green); }
.cat-row__n { font-family: var(--font-display); font-size: 16px; font-weight: 800; width: 26px; text-align: right; }

.model-box { border: 1.5px solid rgba(18,31,22,0.08); border-radius: 16px; padding: 18px; }
.model-box__kicker { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--green-dark); margin-bottom: 8px; }
.model-box__name { font-size: 15px; font-weight: 700; }
.model-box__meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); margin-top: 3px; }

.health-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-dark);
  background: var(--green-tint);
  border-radius: 999px;
  padding: 4px 10px;
}
.health-pill .dot { width: 6px; height: 6px; }

/* ---------- Threats table ---------- */
.table-wrap { overflow-x: auto; }
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 22px;
  border-bottom: 1.5px solid var(--line-soft);
  min-width: 960px;
  flex-wrap: wrap;
}
.filter-bar__note { margin-left: auto; font-size: 12.5px; color: var(--hint); }
.filter-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  border: 1.5px solid rgba(18,31,22,0.12);
  background: #FFFFFF;
  color: var(--muted);
}
.filter-chip.is-active { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }

.t-header, .t-row {
  display: grid;
  grid-template-columns: 86px 150px 1.4fr 1.1fr 64px 110px 90px;
  gap: 14px;
  min-width: 960px;
  align-items: center;
}
.t-header {
  padding: 12px 22px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--hint);
  border-bottom: 1px solid rgba(18,31,22,0.05);
}
.t-row { padding: 15px 22px; border-bottom: 1px solid rgba(18,31,22,0.04); }
.t-row:hover { background: #FAFBF8; }
.t-row__cat { font-size: 12.5px; color: var(--muted); }
.t-row__cat code { font-family: var(--font-mono); font-size: 10.5px; color: var(--hint); }
.t-row__desc { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-row__sender { font-family: var(--font-mono); font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-row__score { font-family: var(--font-display); font-size: 16px; font-weight: 800; }
.t-row__time { font-family: var(--font-mono); font-size: 11.5px; color: var(--hint); text-align: right; }
.status-pill { display: inline-block; font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 4px 10px; }
.status-pill--open { color: var(--red); background: var(--red-bg); }
.status-pill--quarantined { color: var(--amber-deep); background: var(--amber-bg); }
.status-pill--review { color: var(--blue); background: var(--blue-bg); }
.status-pill--monitored { color: var(--muted); background: #F3F6F1; }

/* ---------- Inbox ---------- */
.inbox-split { display: grid; grid-template-columns: 1fr 1.1fr; overflow: hidden; }
.inbox-list { border-right: 1.5px solid var(--line-soft); }
.inbox-list__filters {
  display: flex;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1.5px solid var(--line-soft);
  flex-wrap: wrap;
}
.msg-row {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  cursor: pointer;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(18,31,22,0.04);
  background: #FFFFFF;
}
.msg-row:hover { background: #FAFBF8; }
.msg-row.is-selected { background: #F0FAF2; }
.msg-row__top { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.msg-row__subject {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.msg-row__time { font-family: var(--font-mono); font-size: 10.5px; color: var(--hint); }
.msg-row__sender { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); }

.inbox-preview { padding: 26px; }
.inbox-preview__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.inbox-preview__cat { font-family: var(--font-mono); font-size: 11px; color: var(--hint); }
.inbox-preview__subject { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.inbox-preview__sender { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.inbox-preview__body {
  background: #FAFBF8;
  border: 1.5px solid var(--line-soft);
  border-radius: 14px;
  padding: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #3C5446;
  margin-bottom: 18px;
}
.inbox-preview__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.inbox-preview__actions .btn { font-size: 13.5px; padding: 10px 18px; }

/* ---------- Scan / Voice ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: var(--ink);
  color: #FFFFFF;
  border-radius: 22px 22px 0 0;
}
.panel-head__title { font-size: 14px; font-weight: 600; }
.panel-head__tag { font-family: var(--font-mono); font-size: 10.5px; color: #7FA98C; letter-spacing: 0.06em; }
.panel-body { padding: 22px; display: flex; flex-direction: column; gap: 15px; }

.result-empty { text-align: center; padding: 70px 20px; color: var(--faint); }
.result-empty__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--green-tint);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
}
.result-empty__title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.result-empty__sub { font-size: 13.5px; line-height: 1.6; }

.verdict-box { border-radius: 16px; padding: 20px; margin-bottom: 16px; border: 1.5px solid; }
.verdict-box--high { border-color: var(--red-border); background: var(--red-bg); }
.verdict-box--med { border-color: var(--amber-border); background: var(--amber-bg); }
.verdict-box--low { border-color: var(--green-tint-border); background: #F0FAF2; }
.verdict-box__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.verdict-box__kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }
.verdict-box__label { font-family: var(--font-display); font-size: 23px; font-weight: 700; }
.verdict-box__score { font-family: var(--font-display); font-size: 34px; font-weight: 800; text-align: right; }
.verdict-box__cap { font-size: 10.5px; color: var(--muted); letter-spacing: 0.05em; }
.verdict-box--high .accent { color: var(--red); }
.verdict-box--med .accent { color: var(--amber); }
.verdict-box--low .accent { color: var(--green); }

.indicators-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--faint); margin-bottom: 9px; }
.indicator { display: flex; gap: 9px; font-size: 13.5px; color: #3C5446; align-items: baseline; margin-bottom: 8px; }
.result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1.5px solid var(--line-soft);
  padding-top: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.result-footer__rec { font-size: 13px; color: var(--muted); }
.result-footer__meta { font-family: var(--font-mono); font-size: 11px; color: var(--hint); }

.dropzone {
  border: 2px dashed rgba(18,31,22,0.14);
  border-radius: 18px;
  padding: 52px 24px;
  text-align: center;
  margin-bottom: 18px;
}
.dropzone__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--green-tint);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 14px;
}
.dropzone__title { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.dropzone__sub { font-size: 13.5px; color: var(--faint); }
.dropzone__sub b { color: var(--green-dark); font-weight: 600; cursor: pointer; }

.detect-box { border: 1.5px solid rgba(18,31,22,0.08); border-radius: 14px; padding: 14px; }
.detect-box__name { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.detect-box__desc { font-size: 11.5px; color: var(--faint); line-height: 1.5; }

.spectral-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(18,31,22,0.10);
  font-size: 13.5px;
}
.spectral-row span:first-child { color: var(--muted); }
.spectral-row span:last-child { font-weight: 600; }
.spectral--bad { color: var(--red); }
.spectral--warn { color: var(--amber); }
.spectral--ok { color: var(--green); }

/* ---------- Integrations ---------- */
.ig-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(18,31,22,0.04);
}
.ig-row:last-child { border-bottom: none; }
.ig-row__glyph {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--green-tint);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}
.ig-row__main { flex: 1; }
.ig-row__name { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 700; }
.ig-row__desc { font-size: 13px; color: var(--faint); margin-top: 2px; }
.ig-row .btn { font-size: 13.5px; padding: 10px 20px; }
.btn--connected { color: var(--green-dark); background: var(--green-tint); border: 1.5px solid var(--green-tint-border); font-weight: 700; }

.dpdp-panel {
  background: var(--ink);
  border-radius: 24px;
  padding: 32px;
  color: #FFFFFF;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 18px;
}
.dpdp-panel__kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: #7FA98C; margin-bottom: 10px; }
.dpdp-panel__title { font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.dpdp-list { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.dpdp-list > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  padding-bottom: 11px;
}
.dpdp-list > div:last-child { border-bottom: none; padding-bottom: 0; }
.dpdp-list code { font-family: var(--font-mono); font-size: 12px; color: #7FA98C; }
.dpdp-list code.never { color: #F87171; }
.dpdp-list span { color: #C8DCCF; }

/* ---------- Settings ---------- */
.settings-layout { display: grid; grid-template-columns: 230px 1fr; gap: 22px; align-items: start; }
.settings-tabs { display: flex; flex-direction: column; gap: 3px; }
.settings-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  border: none;
  cursor: pointer;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
}
.settings-tab:hover { background: #F3F6F1; }
.settings-tab.is-active { background: var(--green-tint); color: var(--green-dark); font-weight: 700; }
.settings-tab__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: #F3F6F1;
  border-radius: 999px;
  padding: 2px 8px;
}
.settings-panel { background: #FFFFFF; border: 1.5px solid var(--line); border-radius: 24px; padding: 30px; }
.settings-pane { display: none; }
.settings-pane.is-active { display: block; }
.pane-title { font-family: var(--font-display); font-size: 21px; font-weight: 700; margin: 0 0 4px; }
.pane-sub { font-size: 13.5px; color: var(--faint); margin: 0 0 18px; line-height: 1.6; }

.avatar-lg {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--green);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
}

.member-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--row-line); }
.member-row__avatar {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}
.member-row__main { flex: 1; }
.member-row__name { font-size: 14px; font-weight: 600; }
.member-row__email { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); }
.member-row__seen { font-size: 12.5px; color: var(--hint); width: 80px; text-align: right; }
.role-pill { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; border-radius: 999px; padding: 4px 10px; }
.role-pill--admin { color: var(--green-dark); background: var(--green-tint); }
.role-pill--member { color: var(--muted); background: #F3F6F1; }
.role-pill--pending { color: var(--amber-deep); background: var(--amber-bg); }

.audit-row {
  display: grid;
  grid-template-columns: 90px 1fr 80px 130px;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--row-line);
  font-size: 13px;
  align-items: baseline;
}
.audit-row b { font-weight: 600; }
.audit-row .what { color: var(--muted); }
.audit-row .when, .audit-row .ip { font-family: var(--font-mono); font-size: 11.5px; color: var(--hint); }
.audit-row .ip { text-align: right; }

.key-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1.5px solid rgba(18,31,22,0.08);
  border-radius: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.key-row__name { font-size: 14px; font-weight: 700; }
.key-row__created { font-size: 12px; color: var(--hint); }
.key-row__masked { flex: 1; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); min-width: 200px; }
.key-row__used { font-family: var(--font-mono); font-size: 11.5px; color: var(--hint); }
.key-row__del { font-size: 14px; color: var(--red); background: none; border: none; cursor: pointer; }

.danger-zone {
  border: 1.5px solid var(--red-border);
  border-radius: 16px;
  padding: 4px 20px;
  background: #FFFCFC;
}
.danger-zone .setting-row { border-color: var(--red-border); }
.danger-title { color: var(--red); }

.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button {
  width: 30px; height: 30px;
  border-radius: 999px;
  border: 1.5px solid rgba(18,31,22,0.12);
  background: #FFFFFF;
  cursor: pointer;
  font-weight: 700;
}
.stepper .val { font-family: var(--font-mono); font-size: 14px; width: 44px; text-align: center; }
.stepper .sub { font-family: var(--font-mono); font-size: 12px; color: var(--hint); }

/* ---------- Placeholder ---------- */
.placeholder-card { padding: 90px 32px; text-align: center; }
.placeholder-card__title { font-family: var(--font-display); font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.placeholder-card__sub { font-size: 14px; color: var(--faint); }

/* ============================================================
   Auth pages — login / forgot-password / verify-email
   No sidebar, no topbar. Standalone split-panel layout.
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: var(--cream);
}

/* ---------- Left dark panel ---------- */
.auth-panel {
  width: 420px;
  flex-shrink: 0;
  background: var(--ink);
  color: #FFFFFF;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.auth-panel__glow {
  position: absolute;
  bottom: -140px; left: -80px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,222,128,0.20), transparent 70%);
  filter: blur(32px);
  pointer-events: none;
}
.auth-panel__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 52px;
}
.auth-panel__brand img { width: 34px; height: 36px; object-fit: contain; }
.auth-panel__brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}
.auth-panel__brand-name em { font-style: normal; color: var(--green-bright); }
.auth-panel__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #7FA98C;
  margin-bottom: 16px;
}
.auth-panel__title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}
.auth-panel__title em { font-style: normal; color: var(--green-bright); }
.auth-panel__sub {
  font-size: 15px;
  line-height: 1.65;
  color: #9DBCA9;
  margin: 0 0 32px;
}
.auth-panel__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.auth-panel__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #C8DCCF;
}
.auth-panel__list li b { color: var(--green-bright); font-weight: 700; font-size: 15px; }

/* ---------- Right form area ---------- */
.auth-form {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}
.auth-form__inner { width: 100%; max-width: 400px; }
.auth-form__logo {
  display: none;
  align-items: center;
  gap: 9px;
  margin-bottom: 40px;
}
.auth-form__logo img { width: 28px; height: 30px; object-fit: contain; }
.auth-form__logo span {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}
.auth-form__logo em { font-style: normal; color: var(--green); }
.auth-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.auth-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.auth-sub {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 0 30px;
  line-height: 1.6;
}
.auth-fields { display: flex; flex-direction: column; gap: 18px; }
.auth-field { display: flex; flex-direction: column; }
.auth-field label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}
.auth-field input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 13px 16px;
  border: 1.5px solid rgba(18,31,22,0.13);
  border-radius: 14px;
  outline: none;
  background: #FFFFFF;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
}
.auth-field input.has-error { border-color: var(--red-border); }
.auth-field__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}
.auth-field__link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: none;
}
.auth-field__link:hover { text-decoration: underline; }
.auth-field__error {
  font-size: 12.5px;
  color: var(--red);
  margin-top: 6px;
  display: none;
}
.auth-field.has-error .auth-field__error { display: block; }
.auth-submit {
  margin-top: 26px;
  font-size: 15px;
  padding: 14px;
  border-radius: 14px;
}
.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 13.5px;
  color: var(--faint);
}
.auth-footer a { color: var(--green-dark); font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--hint);
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- Centered card layout (forgot-pw, verify-email) ---------- */
.auth-center {
  min-height: 100vh;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}
.auth-center__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 32px;
  text-decoration: none;
}
.auth-center__logo img { width: 30px; height: 32px; }
.auth-center__logo span {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.auth-center__logo em { font-style: normal; color: var(--green); }
.auth-card {
  background: #FFFFFF;
  border: 1.5px solid var(--line);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 8px 40px rgba(18,31,22,0.07);
}
.auth-card__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 22px;
}
.auth-card__icon--green { background: var(--green-tint); }
.auth-card__icon--amber { background: var(--amber-bg); }
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  margin-top: 22px;
}
.auth-back:hover { color: var(--green-dark); }

/* ---------- Verify states ---------- */
.verify-state { display: none; }
.verify-state.is-active { display: block; }
.verify-icon {
  width: 72px; height: 72px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 24px;
}
.verify-icon--success { background: var(--green-tint); color: var(--green-dark); }
.verify-icon--error { background: var(--red-bg); color: var(--red); }
.verify-icon--loading { background: #F3F6F1; font-size: 0; }

/* ---------- Auth responsive ---------- */
@media (max-width: 860px) {
  .auth-panel { display: none; }
  .auth-form { padding: 40px 24px; }
  .auth-form__logo { display: flex; }
}
@media (max-width: 480px) {
  .auth-form { padding: 24px 16px; }
  .auth-card { padding: 28px 22px; border-radius: 20px; }
  .auth-title { font-size: 26px; }
}

/* ---------- Auth misc ---------- */
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-field input::placeholder { color: var(--hint); }
.auth-field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 13px 16px;
  border: 1.5px solid rgba(18,31,22,0.13);
  border-radius: 14px;
  outline: none;
  background: #FFFFFF;
  color: var(--ink);
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-2-1, .split, .inbox-split, .settings-layout, .dpdp-panel { grid-template-columns: 1fr; }
  .inbox-list { border-right: none; border-bottom: 1.5px solid var(--line-soft); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .settings-tabs { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 800px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .searchbox { display: none; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
}

/* P5: trusted/blocked domain chips */
.domain-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.domain-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono, monospace); font-size: 12px;
  background: var(--green-tint); color: var(--green-dark);
  border: 1px solid var(--green-tint-border); border-radius: 999px;
  padding: 5px 11px;
}
.domain-chip--blocked { background: rgba(220,50,50,0.07); color: var(--red); border-color: rgba(220,50,50,0.2); }
.domain-chip button {
  background: none; border: none; cursor: pointer; padding: 0;
  color: inherit; font-size: 13px; line-height: 1; opacity: 0.6;
}
.domain-chip button:hover { opacity: 1; }

/* Threat detail + mini modals */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20, 26, 22, 0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal {
  background: var(--bg, #FDFDF9); border-radius: 16px;
  width: 640px; max-width: 100%; max-height: 86vh;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
}
.modal--sm { width: 420px; }
.modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--row-line, #ECEFE8);
}
.modal__title { font-weight: 700; font-size: 17px; }
.modal__close {
  background: none; border: none; cursor: pointer; font-size: 16px;
  color: var(--faint); padding: 4px 8px; border-radius: 6px;
}
.modal__close:hover { color: var(--ink, #1A201B); background: #F1F4EE; }
.modal__body { padding: 20px 22px; overflow-y: auto; font-size: 14px; }
.modal__foot {
  display: flex; gap: 10px; padding: 16px 22px;
  border-top: 1px solid var(--row-line, #ECEFE8);
}
.tm-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px 18px; margin: 16px 0;
}
.tm-field__label {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--hint); margin-bottom: 3px;
}
.tm-field__value { font-size: 14px; font-weight: 600; }
.tm-indicators { margin-top: 6px; }
.tm-indicators .indicator { padding: 7px 0; font-size: 13px; display: flex; gap: 8px; }
.mm-qr { display: block; width: 200px; height: 200px; margin: 12px auto; border-radius: 10px; }

/* Live search + notifications */
.searchbox--live { position: relative; cursor: text; }
.searchbox--live input {
  flex: 1; border: none; outline: none; background: none;
  font: inherit; font-size: 13px; color: var(--ink, #1A201B); min-width: 0;
}
.searchbox--live input::placeholder { color: var(--hint); }
.searchbox--live:focus-within { border-color: var(--green); }
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 150;
  background: #FFFFFF; border: 1.5px solid rgba(18,31,22,0.10);
  border-radius: 14px; box-shadow: 0 16px 44px rgba(0,0,0,0.14);
  max-height: 380px; overflow-y: auto; padding: 6px;
}
.search-result {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: none; cursor: pointer; text-align: left;
  padding: 10px 10px; border-radius: 9px; font: inherit;
}
.search-result:hover, .search-result.is-focus { background: var(--green-tint); }
.search-result__main { flex: 1; min-width: 0; }
.search-result__desc {
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-result__meta { font-size: 11.5px; color: var(--hint); margin-top: 2px; }
.search-result__score { font-weight: 800; font-size: 14px; }
.search-empty { padding: 16px 12px; font-size: 13px; color: var(--faint); text-align: center; }

.notif-wrap { position: relative; }
.notif-badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 17px; height: 17px; border-radius: 999px;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 800; line-height: 17px; text-align: center;
  padding: 0 4px; border: 2px solid #FFFFFF; box-sizing: content-box;
}
.notif-panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 150;
  width: 360px; background: #FFFFFF;
  border: 1.5px solid rgba(18,31,22,0.10); border-radius: 14px;
  box-shadow: 0 16px 44px rgba(0,0,0,0.14);
  max-height: 440px; display: flex; flex-direction: column;
}
.notif-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-bottom: 1px solid var(--row-line, #ECEFE8);
  font-weight: 700; font-size: 14px;
}
.notif-panel__head button {
  background: none; border: none; cursor: pointer;
  font-size: 12px; color: var(--green-dark); font-weight: 600; padding: 2px 4px;
}
.notif-panel__head button:hover { text-decoration: underline; }
#notif-list { overflow-y: auto; padding: 6px; }
.notif-item {
  display: flex; gap: 10px; align-items: flex-start; width: 100%;
  background: none; border: none; cursor: pointer; text-align: left;
  padding: 11px 10px; border-radius: 9px; font: inherit;
}
.notif-item:hover { background: var(--green-tint); }
.notif-item__main { flex: 1; min-width: 0; }
.notif-item__title { font-size: 13px; font-weight: 600; }
.notif-item__meta { font-size: 11.5px; color: var(--hint); margin-top: 2px; }
.notif-item--unread .notif-item__title::after {
  content: ''; display: inline-block; width: 7px; height: 7px;
  border-radius: 999px; background: var(--green); margin-left: 7px; vertical-align: 1px;
}
.notif-empty { padding: 22px 14px; font-size: 13px; color: var(--faint); text-align: center; }

/* ===================== Fraud Scanner (P7) ===================== */
.fscan-input-wrap { position: relative; }
.fscan-badge { display: inline-block; margin-top: 10px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--green-tint); color: var(--green-dark); border: 1px solid var(--green-tint-border); }
.fscan-badge--url  { background: var(--blue-bg); color: var(--blue); border-color: rgba(29,78,216,.2); }
.fscan-badge--upi  { background: #F3EEFF; color: #7C3AED; border-color: #DDD0FF; }
.fscan-badge--text { background: var(--green-tint); color: var(--green-dark); border-color: var(--green-tint-border); }
.fscan-error { margin-top: 14px; padding: 11px 14px; border-radius: 10px; background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border); font-size: 13px; }
.dropzone__icon { font-size: 26px; margin-bottom: 6px; }
.dropzone__sub  { font-size: 12px; color: var(--hint); margin-top: 4px; }
.btn--sm { padding: 7px 14px !important; font-size: 13px; }
.btn-link { background: none; border: none; color: var(--green-dark); font-weight: 600; cursor: pointer; font-size: 13px; padding: 0; }
.btn-link:disabled { color: var(--hint); cursor: default; }

.fscan-result { border-top: 4px solid var(--line); }
.fscan-result--low  { border-top-color: var(--green); }
.fscan-result--med  { border-top-color: var(--amber); }
.fscan-result--high { border-top-color: var(--red); }
.fscan-result__head { display: flex; align-items: center; gap: 16px; }
.fscan-result__icon { font-size: 34px; }
.fscan-result__head-txt { flex: 1; }
.fscan-result__verdict { font-family: var(--font-display); font-size: 24px; font-weight: 800; line-height: 1.1; }
.fscan-result__cat { font-size: 12px; color: var(--hint); font-family: var(--font-mono); margin-top: 3px; }
.fscan-gauge { text-align: center; min-width: 78px; }
.fscan-gauge__num { font-family: var(--font-display); font-size: 30px; font-weight: 800; line-height: 1; }
.fscan-gauge__cap { font-size: 10px; letter-spacing: .06em; color: var(--hint); margin-top: 2px; }
.fscan-block { margin-top: 20px; }
.fscan-block__title { font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--hint); font-weight: 700; margin-bottom: 8px; }
.fscan-explain { font-size: 15px; line-height: 1.55; color: var(--ink); margin: 0; }
.fscan-signals { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fscan-signals li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink); }
.fscan-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: none; }
.fscan-sig-val { color: var(--hint); font-size: 12px; }
.fscan-detail { width: 100%; border-collapse: collapse; font-size: 14px; }
.fscan-detail td { padding: 7px 0; border-bottom: 1px solid var(--row-line); }
.fscan-detail td:first-child { color: var(--faint); }
.fscan-detail td:last-child { text-align: right; }
.fscan-advice { margin-top: 12px; font-size: 13px; color: var(--faint); line-height: 1.5; }
.fscan-result__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--row-line); }
.fscan-time { font-size: 12px; color: var(--hint); }

.fscan-hhead, .fscan-hrow { display: grid; grid-template-columns: 90px 120px 60px 110px 1fr 80px; align-items: center; gap: 10px; padding: 12px 18px; }
.fscan-hhead { font-size: 11px; letter-spacing: .06em; color: var(--hint); font-weight: 700; border-bottom: 1px solid var(--line); }
.fscan-hrow { border-bottom: 1px solid var(--row-line); font-size: 14px; color: var(--ink); }
.fscan-hrow:last-child { border-bottom: none; }
.fscan-itype { display: inline-block; padding: 3px 9px; border-radius: 6px; background: var(--green-tint); font-size: 11px; font-weight: 700; color: var(--green-dark); }
.fscan-when { color: var(--faint); font-size: 13px; }
.fscan-pag { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.fscan-pag__info { font-size: 12px; color: var(--hint); }
.fscan-empty, .fscan-hloading { padding: 36px 20px; text-align: center; color: var(--hint); font-size: 14px; }
.fscan-empty p { margin: 4px 0; }

/* ── Plan quota bar ──────────────────────────────────────────────── */
.quota-bar-wrap {
  margin: 0 0 1.25rem;
  padding: .875rem 1rem;
  background: var(--faint);
  border: 1px solid var(--row-line);
  border-radius: 8px;
}
.quota-bar-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: .5rem;
}
.quota-bar-label {
  font-size: .8125rem;
  color: var(--hint);
}
.quota-bar-pct {
  font-size: .75rem;
  font-weight: 600;
  color: var(--hint);
}
.quota-bar-track {
  height: 6px;
  background: var(--row-line);
  border-radius: 3px;
  overflow: hidden;
}
.quota-bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: 3px;
  transition: width .4s ease;
}
.quota-bar-fill.warn  { background: var(--amber); }
.quota-bar-fill.crit  { background: #e84c3d; }
.quota-warn-msg {
  margin: .5rem 0 0;
  font-size: .8125rem;
  color: var(--amber);
}
.quota-warn-msg.crit  { color: #e84c3d; }

/* Disabled scan form state */
.fscan-quota-blocked .fscan-input-wrap,
.fscan-quota-blocked .fscan-dropzone { opacity: .45; pointer-events: none; }
.quota-upgrade-card {
  margin-top: 1rem;
  padding: 1rem;
  background: #fff8f0;
  border: 1px solid #f5c69a;
  border-radius: 8px;
  text-align: center;
}
.quota-upgrade-card p {
  margin: 0 0 .75rem;
  font-size: .875rem;
  color: var(--ink);
}
.quota-upgrade-card .btn--upgrade {
  display: inline-block;
  padding: .5rem 1.25rem;
  background: var(--green-dark);
  color: #fff;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
