/* ===== LEGALITY OS™ 4.9 · v34 Login Gate, Hub Dropdowns, Quick Actions & Email Center ===== */

/* 1. Executive Access 4.9 Login Screen (Matches legality-os-4.9-login-preview.png) */
html[data-nx-build] #gate.nx-gate {
  display: grid !important;
  place-items: center !important;
  min-height: 100vh !important;
  padding: 24px !important;
  background:
    radial-gradient(ellipse 68% 58% at 18% 18%, rgba(16, 98, 94, 0.34), transparent 68%),
    radial-gradient(ellipse 60% 55% at 82% 76%, rgba(44, 48, 108, 0.32), transparent 66%),
    linear-gradient(160deg, #061823 0%, #071320 48%, #0d1329 100%) !important;
}
html[data-nx-build] #gate.nx-gate[hidden] {
  display: none !important;
}
html[data-nx-build] #gate .gate-art,
html[data-nx-build] #gate .nx-gate-floor,
html[data-nx-build] #gate .nx-gate-scan,
html[data-nx-build] #gate .orb,
html[data-nx-build] #gate .nx-gate-mark {
  display: none !important;
}
html[data-nx-build] #gate .gate-panel {
  width: min(460px, 92vw) !important;
  margin: 0 auto !important;
  padding: 34px 36px 32px !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(6, 20, 33, 0.92), rgba(7, 22, 36, 0.94)) !important;
  border: 1px solid rgba(79, 209, 217, 0.38) !important;
  box-shadow:
    0 0 0 1px rgba(79, 209, 217, 0.12),
    0 0 55px rgba(47, 211, 181, 0.18),
    0 28px 75px rgba(0, 0, 0, 0.72) !important;
  text-align: left !important;
}
.v34-gate-eyebrow {
  display: block;
  font: 600 12.5px "Times New Roman", Times, serif;
  letter-spacing: 0.14em;
  color: #a9cbd6;
  margin-bottom: 8px;
  text-transform: uppercase;
}
html[data-nx-build] #gate .gate-panel h2 {
  margin: 0 0 10px !important;
  font: 700 32px/1.12 "Times New Roman", Times, serif !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #f0f9fc !important;
  text-shadow: 0 0 22px rgba(124, 226, 240, 0.45) !important;
}
html[data-nx-build] #gate .gate-panel p {
  font: 400 15px/1.5 "Times New Roman", Times, serif !important;
  color: #b4cad6 !important;
  margin: 0 0 18px !important;
}
html[data-nx-build] #gate .gate-panel input {
  background: rgba(3, 11, 20, 0.92) !important;
  border: 1px solid rgba(79, 209, 217, 0.34) !important;
  border-radius: 9px !important;
  color: #e8f5f8 !important;
  min-height: 46px !important;
}
html[data-nx-build] #gate .ms-btn {
  width: 100% !important;
  margin-top: 12px !important;
  min-height: 48px !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, #167a87, #0f5e6a) !important;
  border: 1px solid rgba(111, 221, 230, 0.45) !important;
  color: #f4fcfd !important;
  font: 600 16px "Times New Roman", Times, serif !important;
  box-shadow: 0 0 26px rgba(47, 211, 181, 0.22) !important;
}
.v34-build-Watermark {
  position: fixed;
  right: 22px;
  bottom: 18px;
  z-index: 50;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(6, 20, 33, 0.85);
  border: 1px solid rgba(79, 209, 217, 0.38);
  color: #b8e4ec;
  font: 600 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.14em;
  box-shadow: 0 0 20px rgba(47, 211, 181, 0.18);
  pointer-events: none;
}

/* 2. Futuristic Quick Action Deck on Dashboard */
.v34-quick-deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.v34-qbtn {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(12, 31, 48, 0.86), rgba(8, 21, 34, 0.9));
  border: 1px solid rgba(95, 214, 232, 0.28);
  color: var(--v33-text, #e3eff3);
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.v34-qbtn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #2fd3b5, #6fd6e6, transparent);
}
.v34-qbtn:hover {
  transform: translateY(-2px);
  border-color: #6fd6e6;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 18px rgba(47, 211, 181, 0.22);
}
.v34-qbtn small {
  font: 600 11px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
  color: #6fd6e6;
  text-transform: uppercase;
}
.v34-qbtn strong {
  font: 700 16.5px "Times New Roman", Times, serif;
  color: #f2fbfd;
}
.v34-qbtn span {
  font-size: 13px;
  color: #a9bfca;
}

/* 3. Top Navigation Dropdowns (FPOA Hubs, U.S. Agencies, Command) */
.nx-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
/* Hide Poverty Scout from top bar & side rail so it lives cleanly inside Community Hub */
.nx-tabs a[href="#scout"],
.nx-tabs a[data-nx-tab="scout"],
.side a[href="#scout"] {
  display: none !important;
}

/* 4. Full-Screen Workspace Grid & Voucher / Counseling / Email Cards */
.v34-workspace {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.v34-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}
.v34-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.v34-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 10px 0;
}
.v34-stat-box {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(95, 214, 232, 0.2);
  background: rgba(5, 16, 27, 0.65);
}
.v34-stat-box small {
  display: block;
  font-size: 12.5px;
  color: #a9bfca;
}
.v34-stat-box b {
  font: 700 20px ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #6fd6e6;
}
@media (max-width: 980px) {
  .v34-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ===== v35 Login Branding, Corporate Header & Red New Client Intake Notice ===== */
html[data-nx-build] #gate .gate-panel {
  width: min(540px, 94vw) !important;
  padding: 36px 38px 34px !important;
}
.v35-gate-brand {
  border-bottom: 1px solid rgba(79, 209, 217, 0.28);
  padding-bottom: 14px;
  margin-bottom: 16px;
}
.v35-gate-corp {
  display: block;
  font: 700 15.5px/1.35 "Times New Roman", Times, serif;
  letter-spacing: 0.04em;
  color: #6fd6e6;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.v35-gate-os {
  display: block;
  font: 700 28px/1.15 "Times New Roman", Times, serif;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-shadow: 0 0 22px rgba(111, 214, 230, 0.45);
}
.v35-gate-auth {
  font: 400 15.5px/1.55 "Times New Roman", Times, serif !important;
  color: #d6e8f0 !important;
  margin: 8px 0 12px !important;
}
.v35-gate-intake-alert {
  display: block;
  padding: 12px 14px;
  margin: 0 0 16px;
  border-radius: 10px;
  background: rgba(185, 28, 28, 0.16);
  border: 1px solid rgba(248, 113, 113, 0.55);
  color: #ff6b6b !important;
  font: 700 15.5px/1.5 "Times New Roman", Times, serif !important;
}
.v35-intake-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(185, 28, 28, 0.9), rgba(145, 20, 20, 0.95));
  border: 1px solid rgba(252, 165, 165, 0.65);
  color: #ffffff !important;
  font: 700 15.5px "Times New Roman", Times, serif;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.28);
  box-sizing: border-box;
}
.v35-intake-btn:hover {
  filter: brightness(1.08);
  border-color: #fecaca;
}
