/* ==========================================================================
   IMMIGRATION.SITE — "TOOLS & STUFF" FOR US IMMIGRATION LAWYERS
   Design System & Terminal / Hacker UI Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,700;0,800;1,400&family=Inter:wght@300;400;500;600;700&family=Fira+Code:wght@400;500;600;700&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Color Palette: Terminal Obsidian & Neon Accents */
  --bg-core: #070a0f;
  --bg-surface: #0c1118;
  --bg-card: #111823;
  --bg-card-hover: #16202e;
  --bg-terminal: #090e15;
  --bg-header: rgba(7, 10, 15, 0.88);

  /* Borders & Dividers */
  --border-subtle: #1c2738;
  --border-medium: #263850;
  --border-bright: #385375;
  --border-glow: rgba(0, 255, 102, 0.35);

  /* Accent Colors */
  --accent-green: #77ff00;
  --accent-green-dim: rgba(106, 255, 0, 0.201);
  --accent-green-bright: #8fff33;
  --accent-cyan: #00e5ff;
  --accent-cyan-dim: rgba(0, 229, 255, 0.15);
  --accent-amber: #ffb84d;
  --accent-amber-dim: rgba(255, 184, 77, 0.15);
  --accent-red: #ff4d6a;
  --accent-red-dim: rgba(255, 77, 106, 0.15);
  --accent-purple: #b388ff;
  --accent-purple-dim: rgba(179, 136, 255, 0.15);

  /* Text & Typography */
  --text-primary: #e6edf3;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-highlight: #ffffff;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows & Glows */
  --glow-green: 0 0 20px rgba(0, 255, 102, 0.22);
  --glow-cyan: 0 0 20px rgba(0, 229, 255, 0.22);
  --glow-amber: 0 0 20px rgba(255, 184, 77, 0.22);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  --shadow-popup: 0 20px 40px -15px rgba(0, 0, 0, 0.85);

  /* Layout & Spacing */
  --max-width: 1280px;
  --header-height: 72px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-core);
  color: var(--text-primary);
  font-family: var(--font-mono);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Custom Terminal Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-core);
}

::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
}

/* CRT Scanline Overlay Effect */
.scanlines-overlay {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.32) 50%);
  background-size: 100% 4px;
  z-index: 999;
  pointer-events: none;
  opacity: 0.44;
}

/* --- Typography Utilities --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-highlight);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.3rem;
}

h4 {
  font-size: 1.1rem;
}

@media (min-width: 768px) {
  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 1.5rem;
  }
}

p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

a {
  color: var(--accent-green);
  text-decoration: none;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

a:hover {
  color: var(--accent-green-bright);
  text-shadow: 0 0 8px var(--accent-green);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}

code,
pre {
  font-family: var(--font-mono);
}

.text-accent-green {
  color: var(--accent-green) !important;
}

.text-accent-cyan {
  color: var(--accent-cyan) !important;
}

.text-accent-amber {
  color: var(--accent-amber) !important;
}

.text-accent-red {
  color: var(--accent-red) !important;
}

.text-accent-purple {
  color: var(--accent-purple) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

/* Prompt Badge / Monospace Token */
.prompt-prefix {
  color: var(--accent-green);
  font-weight: 700;
  user-select: none;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tag-badge.green {
  background: var(--accent-green-dim);
  border-color: rgba(0, 255, 102, 0.4);
  color: var(--accent-green);
}

.tag-badge.cyan {
  background: var(--accent-cyan-dim);
  border-color: rgba(0, 229, 255, 0.4);
  color: var(--accent-cyan);
}

.tag-badge.amber {
  background: var(--accent-amber-dim);
  border-color: rgba(255, 184, 77, 0.4);
  color: var(--accent-amber);
}

.tag-badge.purple {
  background: var(--accent-purple-dim);
  border-color: rgba(179, 136, 255, 0.4);
  color: var(--accent-purple);
}

/* Status Ping Pulse */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid rgba(0, 255, 102, 0.3);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-green);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(145, 255, 0, 0.843);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(0, 255, 102, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 255, 102, 0);
  }
}

/* --- Container & Layout --- */
.site-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  flex: 1;
}

.section-spacing {
  padding: 5rem 0;
  position: relative;
}

.section-spacing-sm {
  padding: 3rem 0;
}

.section-header {
  margin-bottom: 3rem;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 650px;
}

/* --- Navigation Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: border-color var(--transition-normal), background var(--transition-normal);
}

.site-header.scrolled {
  border-bottom-color: var(--border-medium);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  text-decoration: none;
  user-select: none;
  animation: glow-green 2s infinite;
}

@keyframes glow-green {
  0% {
    text-shadow: 0 0 5px var(--accent-green);
  }

  50% {
    text-shadow: 2px 2px 10px var(--accent-green);
  }

  100% {
    text-shadow: 4px 5px 5px var(--accent-green);
  }
}

.logo-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-highlight);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.logo-brand:hover .logo-title-wrap {
  text-shadow: 0 0 12px var(--accent-green);
}

.logo-bracket {
  color: var(--accent-green);
}

.logo-tagline {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  padding-left: 0.75rem;
  border-left: none;
  line-height: 1;
  display: block;
}

.nav-links-desktop {
  display: none;
  align-items: center;
  gap: 1rem;
  list-style: none;
}

@media (min-width: 960px) {
  .nav-links-desktop {
    display: flex;
  }
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  cursor: pointer;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-green);
  background: var(--accent-green-dim);
}

.nav-link.active {
  border-bottom: 2px solid var(--accent-green);
}

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
  list-style: none;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dropdown-chevron {
  font-size: 0.68rem;
  transition: transform var(--transition-fast);
}

.nav-dropdown:hover .dropdown-chevron,
.nav-dropdown:focus-within .dropdown-chevron,
.nav-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 220px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 255, 102, 0.08);
  z-index: 120;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  border-left: 2px solid transparent;
  text-decoration: none;
}

.dropdown-item i {
  width: 16px;
  text-align: center;
  color: var(--accent-green);
}

.dropdown-item:hover,
.dropdown-item.active {
  color: var(--text-highlight);
  background: var(--accent-green-dim);
  border-left-color: var(--accent-green);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* CLI Quick Launch Icon Button */
.cli-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--accent-green);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.95rem;
  padding: 0;
  animation: pulse2 4s infinite;
}


/* --- API Key

TEABLE API KEY: 
teable_acc3BkMI771xvu4a9kP_+sDxEhZNtIYMJbmlPkfEgctCjwcnTJ77WW9j7YWy9LQ=

--- */



@keyframes pulse2 {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(145, 255, 0, 0.843);
    border: 1px outset rgba(116, 118, 113, 0.74);
  }

  60% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    border: 1px outset rgba(100, 114, 82, 0.74);
    background: linear-gradient(45deg, var(--accent-green), rgba(0, 0, 0, 0.45), rgba(145, 255, 0, 0.15), rgba(0, 0, 0, 0.45));
  }


  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(98, 139, 4, 0.12);
    border: 1px outset rgba(0, 247, 255, 0.592);
    background: linear-gradient(45deg, black, rgba(0, 247, 255, 0.45), rgba(0, 0, 0, 0.44), rgba(145, 250, 20, 0.15), black);

  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 221, 255, 0.555);
    border: 1px outset rgba(145, 255, 120, 0.521);
  }
}




.cli-pill-btn:hover {
  border-color: var(--accent-green);
  color: var(--accent-green-bright);
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.3);
  transform: translateY(-1px);
}

/* Hamburger Toggle Button */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

@media (min-width: 960px) {
  .hamburger-btn {
    display: none;
  }
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.hamburger-btn.open .hamburger-line:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
  background-color: var(--accent-green);
}

.hamburger-btn.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.open .hamburger-line:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
  background-color: var(--accent-green);
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-medium);
  z-index: 105;
  padding: 6rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right var(--transition-slow);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-link {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--accent-green);
  border-left-color: var(--accent-green);
  background: var(--accent-green-dim);
}

.mobile-drawer-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
}

/* Backdrop for Mobile Menu */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 102;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.menu-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* --- Terminal Window Component (Chrome & Box) --- */
.terminal-window {
  background: var(--bg-terminal);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.terminal-window:hover {
  border-color: var(--border-bright);
}

.terminal-header {
  background: #0d141e;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.terminal-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

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

.term-dot.red {
  background: #ff5f56;
}

.term-dot.yellow {
  background: #ffbd2e;
}

.term-dot.green {
  background: #27c93f;
}

.terminal-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.term-action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.2rem;
  transition: color var(--transition-fast);
}

.term-action-btn:hover {
  color: var(--text-highlight);
}

.terminal-body {
  padding: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-primary);
  overflow-x: auto;
}

/* --- Buttons & UI Elements --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-green);
  color: #000000;
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.3);
}

.btn-primary:hover {
  background: var(--accent-green-bright);
  color: #000000;
  box-shadow: 0 0 25px rgba(0, 255, 102, 0.55);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-green);
  color: var(--accent-green);
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.15);
}

.btn-cyan {
  background: var(--accent-cyan-dim);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-cyan:hover {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
}

/* --- Hero Section & Particle Canvas --- */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
  overflow: hidden;
}

#heroCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.65;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1.15fr 1fr;
  }
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-heading {
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero-subtext {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
}

.metric-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-highlight);
  font-family: var(--font-mono);
}

.metric-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Interactive Hero Terminal Simulator */
.interactive-cli {
  background: var(--bg-terminal);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 255, 102, 0.08);
}

.cli-output {
  min-height: 260px;
  max-height: 380px;
  overflow-y: auto;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
}

.cli-line {
  word-break: break-word;
}

.cli-input-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
}

.cli-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.cli-input:focus {
  outline: none;
}

.cli-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px dashed var(--border-subtle);
  font-size: 0.75rem;
}

.cli-quick-cmd {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cli-quick-cmd:hover {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
}

/* --- System Status Bar --- */
.status-bar-banner {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 0;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-indicator.online {
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.status-indicator.warning {
  background: var(--accent-amber);
  box-shadow: 0 0 8px var(--accent-amber);
}

/* --- Card Grid & Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 102, 0.08);
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.tool-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent-green);
}

.tool-card-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text-highlight);
}

.tool-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
}

/* Category Filter Tabs */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-green-dim);
  border-color: var(--accent-green);
  color: var(--accent-green);
}

/* --- Interactive Micro-Tools & Widgets --- */
.interactive-widget-box {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-highlight);
  margin-bottom: 0.4rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-terminal);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.2);
  outline: none;
}

.form-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Modern HTML5 user validation states */
.form-input:user-invalid,
.form-textarea:user-invalid {
  border-color: var(--accent-red);
  box-shadow: 0 0 8px rgba(255, 77, 106, 0.3);
}

.form-input:user-valid,
.form-textarea:user-valid {
  border-color: rgba(0, 255, 102, 0.5);
}

.calc-result-box {
  background: var(--bg-terminal);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.calc-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--border-subtle);
  font-size: 0.88rem;
}

.calc-breakdown-row:last-child {
  border-bottom: none;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-green);
  padding-top: 0.75rem;
}

/* --- Visa Bulletin Table & Visualizer --- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.terminal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.terminal-table th {
  background: #0e1622;
  color: var(--accent-cyan);
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-medium);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.terminal-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  white-space: nowrap;
}

.terminal-table tr:hover td {
  background: rgba(0, 255, 102, 0.03);
}

.table-date-current {
  color: var(--accent-green);
  font-weight: 700;
}

.table-date-retro {
  color: var(--accent-amber);
}

.table-date-unavail {
  color: var(--accent-red);
}

/* --- Policy Diff Engine --- */
.diff-container {
  background: var(--bg-terminal);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  overflow: hidden;
  margin-bottom: 2rem;
}

.diff-header {
  background: #0f1621;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.diff-body {
  padding: 1rem 0;
}

.diff-line {
  padding: 0.25rem 1.25rem;
  display: flex;
  gap: 1rem;
  line-height: 1.5;
}

.diff-line.addition {
  background: rgba(0, 255, 102, 0.08);
  color: #33ff88;
  border-left: 3px solid var(--accent-green);
}

.diff-line.deletion {
  background: rgba(255, 77, 106, 0.08);
  color: #ff8097;
  border-left: 3px solid var(--accent-red);
}

.diff-line.context {
  color: var(--text-muted);
}

.diff-line-no {
  user-select: none;
  color: var(--text-muted);
  width: 35px;
  text-align: right;
  flex-shrink: 0;
}

/* --- FAQ Accordion --- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover,
.faq-item.active {
  border-color: var(--border-bright);
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-highlight);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-trigger:hover {
  color: var(--accent-green);
}

.faq-icon {
  font-size: 0.9rem;
  color: var(--accent-green);
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow) ease-out, padding var(--transition-slow);
  padding: 0 1.5rem;
}

.faq-item.active .faq-content {
  padding-bottom: 1.25rem;
}

/* --- Scroll Animation Classes --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

/* --- Footer --- */
.site-footer {
  background: #05070a;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem 0;
  margin-top: auto;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-brand-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-col-title {
  font-size: 0.95rem;
  color: var(--text-highlight);
  margin-bottom: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-green);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-icon:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.25);
  transform: translateY(-2px);
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-green);
  color: #000;
  box-shadow: 0 0 20px var(--accent-green);
  transform: translateY(-3px);
}

/* --- Toast Notification System --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 360px;
}

.terminal-toast {
  background: var(--bg-terminal);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
  font-size: 0.82rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-popup);
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.terminal-toast.error {
  border-color: var(--accent-red);
}

.terminal-toast.info {
  border-color: var(--accent-cyan);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Fullscreen Terminal Command Palette Modal (Ctrl+K or Key Icon) --- */
.cmd-palette-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.cmd-palette-modal.open {
  display: flex;
}

.cmd-palette-box {
  width: 100%;
  max-width: 640px;
  background: var(--bg-terminal);
  border: 1px solid var(--accent-green);
  border-radius: var(--radius-md);
  box-shadow: 0 0 40px rgba(0, 255, 102, 0.25);
  overflow: hidden;
  animation: modalScale 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ==========================================================================
   Organize Suite: Due Dates & Legal Calendar Styles
   ========================================================================== */

/* --- Stats & Metric Bar --- */
.org-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.org-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.org-stat-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.org-stat-card.urgent-stat {
  border-color: rgba(255, 77, 106, 0.4);
  background: rgba(255, 77, 106, 0.05);
}

.org-stat-card.urgent-stat .org-stat-value {
  color: var(--accent-red);
  text-shadow: 0 0 10px rgba(255, 77, 106, 0.4);
}

.org-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-weight: 600;
}

.org-stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-highlight);
  line-height: 1;
}

/* --- Task List & Items --- */
.task-list-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.task-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  transition: all var(--transition-fast);
  position: relative;
}

.task-card:hover {
  border-color: var(--border-medium);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.task-card.priority-urgent {
  border-left: 4px solid var(--accent-red);
  background: linear-gradient(90deg, rgba(255, 77, 106, 0.08) 0%, var(--bg-surface) 100%);
  box-shadow: 0 0 15px rgba(255, 77, 106, 0.15);
}

.task-card.priority-high {
  border-left: 4px solid var(--accent-amber);
}

.task-card.priority-normal {
  border-left: 4px solid var(--accent-cyan);
}

.task-card.priority-low {
  border-left: 4px solid var(--text-muted);
}

.task-card.status-completed {
  opacity: 0.65;
  border-left-color: var(--accent-green);
}

.task-card.status-completed .task-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.task-card.status-abandoned,
.task-card.status-cancelled {
  opacity: 0.5;
  border-left-color: var(--border-medium);
}

.task-card.status-abandoned .task-title,
.task-card.status-cancelled .task-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.task-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.task-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 260px;
}

.task-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-green);
  cursor: pointer;
  flex-shrink: 0;
}

.task-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-highlight);
  word-break: break-word;
}

.task-badges-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Priority & Status Badges */
.badge-priority,
.badge-status,
.badge-date {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-priority.urgent {
  background: var(--accent-red-dim);
  color: var(--accent-red);
  border: 1px solid rgba(255, 77, 106, 0.4);
  animation: pulse-urgent 2s infinite;
}

@keyframes pulse-urgent {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 106, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(255, 77, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 106, 0); }
}

.badge-priority.high {
  background: var(--accent-amber-dim);
  color: var(--accent-amber);
  border: 1px solid rgba(255, 184, 77, 0.4);
}

.badge-priority.normal {
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.4);
}

.badge-priority.low {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.badge-status.todo {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.badge-status.inprogress {
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.4);
}

.badge-status.completed {
  background: var(--accent-green-dim);
  color: var(--accent-green);
  border: 1px solid rgba(0, 255, 102, 0.4);
}

.badge-status.abandoned {
  background: rgba(255, 77, 106, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(255, 77, 106, 0.3);
}

.badge-status.cancelled {
  background: rgba(100, 116, 139, 0.2);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.badge-date.overdue {
  background: var(--accent-red-dim);
  color: var(--accent-red);
  border: 1px solid rgba(255, 77, 106, 0.4);
}

.badge-date.today {
  background: var(--accent-amber-dim);
  color: var(--accent-amber);
  border: 1px solid rgba(255, 184, 77, 0.4);
}

.badge-date.future {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.task-meta-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.task-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.task-details-preview {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  background: var(--bg-terminal);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

/* Subtasks container */
.subtasks-container {
  margin-top: 1rem;
  padding-left: 1.25rem;
  border-left: 2px dashed var(--border-medium);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.subtask-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  gap: 0.75rem;
}

.subtask-item.completed {
  opacity: 0.6;
}

.subtask-item.completed .subtask-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* --- Rich Text Mini Editor Toolbar --- */
.rich-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: 0.4rem 0.6rem;
  flex-wrap: wrap;
}

.rich-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}

.rich-btn:hover {
  background: var(--accent-green-dim);
  color: var(--accent-green);
  border-color: rgba(0, 255, 102, 0.3);
}

.rich-editor-content {
  width: 100%;
  min-height: 110px;
  max-height: 240px;
  overflow-y: auto;
  background: var(--bg-terminal);
  border: 1px solid var(--border-medium);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.5;
  outline: none;
}

.rich-editor-content:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.2);
}

/* ==========================================================================
   Calendar Month-View Styles
   ========================================================================== */

.calendar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.calendar-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.cal-month-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-highlight);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cal-nav-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calendar-weekdays-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  overflow: hidden;
}

.cal-weekday {
  background: var(--bg-terminal);
  padding: 0.6rem 0.4rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  overflow: hidden;
}

.cal-day-cell {
  background: var(--bg-terminal);
  min-height: 105px;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.cal-day-cell:hover {
  background: rgba(0, 255, 102, 0.03);
}

.cal-day-cell.other-month {
  background: rgba(7, 10, 15, 0.5);
  opacity: 0.4;
}

.cal-day-cell.today {
  background: rgba(0, 229, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--accent-cyan);
}

.cal-day-cell.selected-day {
  box-shadow: inset 0 0 0 2px var(--accent-green);
}

.cal-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.cal-day-number {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.cal-day-cell.today .cal-day-number {
  background: var(--accent-cyan);
  color: var(--bg-core);
  font-weight: 800;
}

.cal-events-stack {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  overflow-y: hidden;
}

/* Event Chips on Calendar Day Cell */
.cal-pill {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  padding: 0.15rem 0.35rem;
  border-radius: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  line-height: 1.2;
}

.cal-pill.pill-hearing {
  background: rgba(255, 77, 106, 0.2);
  color: var(--accent-red);
  border-left: 2px solid var(--accent-red);
}

.cal-pill.pill-callup {
  background: rgba(255, 184, 77, 0.2);
  color: var(--accent-amber);
  border-left: 2px solid var(--accent-amber);
  font-weight: 700;
}

.cal-pill.pill-task {
  background: rgba(0, 255, 102, 0.15);
  color: var(--accent-green);
  border-left: 2px solid var(--accent-green);
}

.cal-pill.pill-event {
  background: rgba(179, 136, 255, 0.2);
  color: var(--accent-purple);
  border-left: 2px solid var(--accent-purple);
}

.cal-more-badge {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-align: right;
  margin-top: auto;
}

/* --- Day Details Inspector Modal / Drawer --- */
.day-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-medium);
  z-index: 130;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right var(--transition-normal);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
  overflow-y: auto;
}

.day-drawer.open {
  right: 0;
}

/* Modals for Task / Event / Hearing creation */
.org-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}

.org-modal.active,
.org-modal.open {
  display: flex !important;
}

.org-modal-card,
.org-modal-box {
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  background: var(--bg-terminal);
  border: 1px solid var(--accent-green);
  border-radius: var(--radius-md);
  box-shadow: 0 0 40px rgba(0, 255, 102, 0.25), 0 20px 40px rgba(0, 0, 0, 0.8);
  overflow-y: auto;
  animation: modalScale 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 2001;
}

@media (max-width: 640px) {
  .cal-day-cell {
    min-height: 70px;
    padding: 0.2rem;
  }
  .cal-pill {
    font-size: 0.6rem;
    padding: 0.1rem 0.2rem;
  }
  .cal-month-title {
    font-size: 1.15rem;
  }
}