/* ═══════════════════════════════════════════════════════════════
   MAVER CLOUDOPS — Global Design System
   Shared across all dashboard pages
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS VARIABLES ── */
:root {
  --red: #cc2222;
  --red-bright: #e53333;
  --red-glow: rgba(204, 34, 34, 0.18);
  --bg: #0e0e10;
  --surface: #161618;
  --surface-2: #1c1c1f;
  --border: rgba(255, 255, 255, 0.06);
  --border-active: rgba(204, 34, 34, 0.4);
  --text: #d4d4d8;
  --text-muted: #52525b;
  --text-bright: #fafafa;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", sans-serif;
  height: 100vh;
  display: flex;
  overflow: hidden;
}

/* ── GRID PATTERN ── */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* Red corner glow */
.corner-glow {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 500px;
  height: 400px;
  background: radial-gradient(
    ellipse at bottom right,
    rgba(180, 20, 20, 0.22) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* ── SIDEBAR ── */
aside {
  position: relative;
  z-index: 10;
  width: 260px;
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
}

.logo-area {
  padding: 28px 24px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-area img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: "Rajdhani", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 2px;
}

.logo-sub {
  font-size: 10px;
  color: var(--red);
  letter-spacing: 3px;
  font-weight: 500;
  text-transform: uppercase;
  margin-top: 2px;
}

nav {
  padding: 20px 12px;
  flex: 1;
}

.nav-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 0 12px;
  margin-bottom: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid transparent;
  margin-bottom: 2px;
  position: relative;
  text-decoration: none;
}

.nav-item:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}

.nav-item.active {
  background: rgba(204, 34, 34, 0.08);
  color: var(--text-bright);
  border-color: var(--border-active);
}

.nav-item.active .nav-icon {
  color: var(--red);
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav-dot {
  position: absolute;
  right: 12px;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--red);
}

.nav-back-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 12px 16px;
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Outfit", sans-serif;
  text-align: left;
}

.sidebar-btn:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}

.sidebar-btn .nav-icon {
  flex-shrink: 0;
}

/* ── SIDEBAR AUTH SECTION ── */
.sidebar-auth-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0 4px;
}

.sidebar-btn--azure {
  color: #60a5fa;
}

.sidebar-btn--azure:hover {
  background: rgba(0, 120, 212, 0.08);
  color: #93c5fd;
  border-color: rgba(0, 120, 212, 0.2);
}

.sidebar-account {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
}

.sidebar-account-avatar {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #0078d4 0%, #004ea8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Rajdhani", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.sidebar-account-info {
  flex: 1;
  min-width: 0;
}

.sidebar-account-tenant {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.sidebar-account-email {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.sidebar-account-logout {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.sidebar-account-logout:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  color: #f87171;
}

/* ── MODAL CONNECTED BANNER ── */
.modal-connected-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: rgba(34, 197, 94, 0.07);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 8px;
  font-size: 12px;
  color: #86efac;
  margin-bottom: 16px;
  line-height: 1.4;
}

.modal-connected-banner strong {
  color: #4ade80;
  font-weight: 600;
}

/* ── NAV SECTION GROUPING ── */
.nav-section {
  margin-top: 20px;
}

.nav-section:first-of-type {
  margin-top: 0;
}

.nav-section-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 0 12px;
  margin-bottom: 6px;
  margin-top: 2px;
}

/* ── CATEGORY HEADER (main content) ── */
.category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  margin-top: 52px;
}

.category-header:first-of-type {
  margin-top: 0;
}

.category-header-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: #71717a;
  text-transform: uppercase;
  white-space: nowrap;
}

.category-header-count {
  font-family: "Rajdhani", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(204, 34, 34, 0.55);
  background: rgba(204, 34, 34, 0.07);
  border: 1px solid rgba(204, 34, 34, 0.15);
  border-radius: 20px;
  padding: 1px 10px;
  letter-spacing: 0;
}

.category-header-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.08) 0%, transparent 100%);
}

/* ── MAIN ── */
main {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 5;
  overflow-y: auto;
  padding: 48px;
}

.page-header {
  margin-bottom: 48px;
}

.breadcrumb {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb span {
  color: var(--red);
}

.page-title {
  font-family: "Rajdhani", sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 1px;
  line-height: 1;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ── STATS ROW ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.stat-val {
  font-family: "Rajdhani", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1;
}

.stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ── SECTION DIVIDER ── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.section-divider-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  white-space: nowrap;
}

.section-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── CARDS GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.assess-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  cursor: pointer;
  transition: all 0.25s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.assess-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Left accent bar — reveals on hover */
.assess-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--red) 0%, rgba(204, 34, 34, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 12px 0 0 12px;
}

.assess-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(204, 34, 34, 0.12);
}

.assess-card:hover::before { opacity: 1; }
.assess-card:hover::after  { opacity: 1; }

.assess-card:hover .card-icon-wrap {
  background: rgba(204, 34, 34, 0.18);
  border-color: rgba(204, 34, 34, 0.35);
  box-shadow: 0 0 16px rgba(204, 34, 34, 0.12);
}

.assess-card.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.assess-card.card-soon {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-icon-wrap {
  width: 40px;
  height: 40px;
  background: rgba(204, 34, 34, 0.08);
  border: 1px solid rgba(204, 34, 34, 0.18);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  transition: all 0.25s ease;
}

.card-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
}

.badge-available {
  background: rgba(204, 34, 34, 0.1);
  color: var(--red-bright);
  border: 1px solid rgba(204, 34, 34, 0.2);
}

.badge-soon {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.badge-active {
  background: rgba(204, 34, 34, 0.1);
  color: var(--red-bright);
  border: 1px solid rgba(204, 34, 34, 0.2);
}

.card-title {
  font-family: "Rajdhani", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tag {
  font-size: 10px;
  padding: 3px 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
}

.card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.btn-launch {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--red);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Outfit", sans-serif;
  letter-spacing: 0.2px;
}

.btn-launch:hover {
  background: var(--red-bright);
  box-shadow: 0 4px 18px rgba(204, 34, 34, 0.4);
}

.btn-launch:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--surface-2);
  color: var(--text-muted);
  box-shadow: none;
}

.card-scope {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ── MODAL OVERLAY ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  width: 460px;
  max-width: 90vw;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.25s ease;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(204, 34, 34, 0.1);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.modal-icon {
  width: 44px;
  height: 44px;
  background: rgba(204, 34, 34, 0.1);
  border: 1px solid rgba(204, 34, 34, 0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}

.modal-title {
  font-family: "Rajdhani", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-bright);
}

.modal-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.permissions-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 24px;
}

.permissions-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.permission-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text);
  margin-bottom: 6px;
}

.permission-item:last-child {
  margin-bottom: 0;
}

.perm-dot {
  width: 5px;
  height: 5px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}

.btn-primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--red);
  color: white;
  font-weight: 600;
  font-size: 14px;
  padding: 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Outfit", sans-serif;
  margin-bottom: 10px;
}

.btn-primary:hover {
  background: var(--red-bright);
  box-shadow: 0 6px 24px rgba(204, 34, 34, 0.35);
}

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

.btn-secondary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Outfit", sans-serif;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

/* ── STATUS FEED ── */
.status-feed {
  margin-top: 20px;
  display: none;
}

.status-feed.active {
  display: block;
}

.status-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  animation: fadeIn 0.3s ease;
}

.status-line:last-child {
  border-bottom: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

.status-prefix-ok   { color: var(--red-bright); }
.status-prefix-wait { color: #888; }
.status-prefix-err  { color: #ff4444; }
.status-prefix-info { color: #60a5fa; }

.status-text-ok   { color: var(--text); }
.status-text-wait { color: var(--text-muted); }
.status-text-err  { color: #ff4444; }

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(204, 34, 34, 0.2);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
  margin-top: 1px;
}

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

/* ── ANIMATIONS ── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION LAYOUT — list + right panel
   ═══════════════════════════════════════════════════════════════ */

.section-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 20px;
  align-items: start;
}

/* ── Compact assessment list ── */
.assess-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.assess-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  overflow: hidden;
  text-decoration: none;
}

.assess-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--red);
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: 10px 0 0 10px;
}

.assess-item:hover {
  border-color: var(--border-active);
  background: rgba(204, 34, 34, 0.03);
  transform: translateX(2px);
}

.assess-item:hover::before { opacity: 1; }

.assess-item:hover .assess-item-icon {
  background: rgba(204, 34, 34, 0.15);
  border-color: rgba(204, 34, 34, 0.3);
}

.assess-item-icon {
  width: 36px;
  height: 36px;
  background: rgba(204, 34, 34, 0.07);
  border: 1px solid rgba(204, 34, 34, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

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

.assess-item-title {
  font-family: "Rajdhani", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.assess-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
}

.assess-item-sep {
  width: 1px;
  height: 9px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

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

/* ── Arrow button (list items) ── */
.btn-arrow {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-arrow:hover {
  background: rgba(204, 34, 34, 0.1);
  border-color: rgba(204, 34, 34, 0.3);
  color: var(--red-bright);
}

/* ── Featured card (Governance) ── */
.assess-featured {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  cursor: pointer;
  transition: all 0.25s ease;
  overflow: hidden;
}

.assess-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red-glow) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.assess-featured::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--red) 0%, rgba(204,34,34,0.25) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 12px 0 0 12px;
}

.assess-featured:hover {
  border-color: var(--border-active);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.3), 0 0 0 1px rgba(204,34,34,0.1);
}

.assess-featured:hover::before { opacity: 1; }
.assess-featured:hover::after  { opacity: 1; }

.assess-featured-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.assess-featured-info {
  flex: 1;
  min-width: 0;
}

.assess-featured-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.assess-featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

/* ── Section overview panel (right column) ── */
.section-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  position: sticky;
  top: 16px;
}

.section-panel-header {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.01);
}

.section-panel-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.section-panel-title {
  font-family: "Rajdhani", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.3px;
}

.section-stat {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}

.section-stat:last-child { border-bottom: none; }

.section-stat:hover { background: rgba(255,255,255,0.015); }

.section-stat-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.section-stat-value {
  font-family: "Rajdhani", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.2;
}

.section-stat-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
  font-family: "JetBrains Mono", monospace;
}

.section-stat-ok {
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════════
   HERO CARD — rotating featured assessment
   ═══════════════════════════════════════════════════════════════ */
.hero-card {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(204, 34, 34, 0.22);
  border-top: 2px solid var(--red);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  cursor: pointer;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
  box-shadow:
    0 0 0 1px rgba(204, 34, 34, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Dot-grid texture */
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* Red radial glow top-left */
.hero-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 55%; height: 100%;
  background: radial-gradient(ellipse at top left, rgba(204, 34, 34, 0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-card:hover {
  border-color: rgba(204, 34, 34, 0.45);
  border-top-color: var(--red-bright);
  box-shadow:
    0 0 0 1px rgba(204, 34, 34, 0.1),
    0 28px 72px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(204, 34, 34, 0.05);
}

.hero-body {
  display: grid;
  grid-template-columns: 1fr auto;
  position: relative;
  z-index: 1;
}

.hero-left {
  padding: 36px 40px;
}

/* Icon + status row at top */
.hero-top-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.hero-icon-wrap {
  width: 56px;
  height: 56px;
  background: rgba(204, 34, 34, 0.1);
  border: 1px solid rgba(204, 34, 34, 0.22);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.hero-card:hover .hero-icon-wrap {
  background: rgba(204, 34, 34, 0.17);
  box-shadow: 0 0 20px rgba(204, 34, 34, 0.15);
}

.hero-status-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--red);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.hero-status-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hero-sep {
  width: 1px;
  height: 10px;
  background: var(--border);
}

.hero-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 1.5px;
  background: rgba(204, 34, 34, 0.1);
  color: var(--red-bright);
  border: 1px solid rgba(204, 34, 34, 0.25);
}

.hero-title {
  font-family: "Rajdhani", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 18px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 26px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Outfit", sans-serif;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.btn-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

.btn-hero:hover {
  background: var(--red-bright);
  box-shadow: 0 6px 28px rgba(204, 34, 34, 0.45), 0 2px 8px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}

.btn-hero:active {
  transform: translateY(0);
}

.hero-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Right metrics panel */
.hero-metrics {
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  min-width: 148px;
}

.hero-metric {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease;
}

.hero-metric:last-child {
  border-bottom: none;
}

.hero-metric:hover {
  background: rgba(204, 34, 34, 0.03);
}

.hero-metric-val {
  font-family: "Rajdhani", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(204, 34, 34, 0.15);
}

.hero-metric-lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 5px;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 1024px) / Mobile (≤ 768px / ≤ 480px)
   ═══════════════════════════════════════════════════════════════ */

/* ── Tablet: sidebar mais estreita, padding menor ── */
@media (max-width: 1024px) {
  .section-layout { grid-template-columns: 1fr 190px; }
  aside { width: 220px; }

  main { padding: 32px 28px; }

  .hero-left { padding: 28px 28px; }

  .hero-title { font-size: 26px; }

  .hero-desc { font-size: 13px; max-width: 100%; }

  .hero-metrics { min-width: 124px; }

  .hero-metric { padding: 16px 18px; }

  .hero-metric-val { font-size: 22px; }

  .page-header { margin-bottom: 32px; }

  .page-title { font-size: 32px; }
}

/* ── Mobile: layout vertical, sidebar como topbar ── */
@media (max-width: 768px) {

  /* Body vira coluna, scroll no próprio documento */
  body {
    flex-direction: column;
    height: auto;
    overflow: visible;
    overflow-x: hidden;
  }

  /* Sidebar vira barra topo sticky */
  aside {
    width: 100%;
    height: auto;
    min-height: unset;
    flex-direction: row;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
    overflow: visible;
    overflow-x: auto;
    overflow-y: visible;
  }

  /* Logo compacto */
  .logo-area {
    padding: 14px 16px;
    border-bottom: none;
    border-right: 1px solid var(--border);
    flex-shrink: 0;
  }

  .logo-area img { width: 30px; height: 30px; }

  .logo-name { font-size: 16px; letter-spacing: 1.5px; }

  .logo-sub { display: none; }

  /* Nav vira linha horizontal */
  nav {
    padding: 0 8px;
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar { display: none; }

  .nav-label { display: none; }

  .nav-back-divider {
    width: 1px;
    height: 20px;
    margin: 0 6px;
    flex-shrink: 0;
  }

  .nav-item {
    white-space: nowrap;
    padding: 8px 12px;
    margin-bottom: 0;
    font-size: 13px;
  }

  .nav-dot { right: 6px; }

  /* Footer sidebar → row no canto direito */
  .sidebar-footer {
    flex-direction: row;
    padding: 6px 10px;
    border-top: none;
    border-left: 1px solid var(--border);
    flex-shrink: 0;
    gap: 2px;
  }

  .sidebar-btn {
    padding: 8px 10px;
    font-size: 0; /* esconde texto, mostra só ícone */
    gap: 0;
  }

  /* Main: scroll normal do documento */
  main {
    height: auto;
    overflow-y: visible;
    padding: 24px 16px 40px;
  }

  /* Grid: coluna única */
  .cards-grid { grid-template-columns: 1fr; }

  /* Section layout: empilha verticalmente, oculta painel */
  .section-layout { grid-template-columns: 1fr; }
  .section-panel  { display: none; }

  /* Hero card: empilha verticalmente */
  .hero-body {
    grid-template-columns: 1fr;
  }

  .hero-left { padding: 22px 20px; }

  .hero-title { font-size: 24px; }

  .hero-desc {
    font-size: 12.5px;
    max-width: 100%;
    -webkit-line-clamp: 3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
  }

  /* Métricas viram linha horizontal abaixo do conteúdo */
  .hero-metrics {
    flex-direction: row;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    min-width: unset;
  }

  .hero-metric {
    flex: 1;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    padding: 14px 12px;
  }

  .hero-metric:last-child { border-right: none; }

  .hero-metric-val { font-size: 20px; }

  .hero-actions {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
  }

  .btn-hero { font-size: 13px; padding: 11px 22px; }

  .hero-meta { font-size: 10.5px; }

  /* Page header */
  .page-header { margin-bottom: 28px; }

  .page-title { font-size: 28px; }

  .page-subtitle { font-size: 13px; }

  /* Category header */
  .category-header { margin-top: 36px; margin-bottom: 18px; }

  /* Stats row: 2 colunas em vez de 3 */
  .stats-row { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* Modal: tela cheia no mobile */
  .modal {
    width: 100%;
    max-width: 100vw;
    border-radius: 20px 20px 0 0;
    padding: 28px 20px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-overlay {
    align-items: flex-end;
  }

  .modal-overlay.active .modal {
    transform: translateY(0);
  }
}

/* ── Very small: ≤ 480px ── */
@media (max-width: 480px) {
  main { padding: 16px 12px 40px; }

  .hero-left { padding: 18px 16px; }

  .hero-title { font-size: 21px; }

  .hero-top-row { gap: 10px; margin-bottom: 14px; }

  .hero-icon-wrap { width: 44px; height: 44px; border-radius: 11px; }

  .hero-status-label { display: none; }

  .hero-sep { display: none; }

  .btn-hero { padding: 10px 18px; font-size: 12px; }

  .page-title { font-size: 24px; }

  .card-desc { -webkit-line-clamp: 2; }

  .stats-row { grid-template-columns: 1fr; }

  .category-header-title { font-size: 10px; letter-spacing: 2px; }
}
