/* Mobidev Factory Design System
   Adapted from the Helaplus design system.
   Theme: deep green sidebar, warm off-white canvas, card-based dashboard. */

:root {
  --mf-teal-900: #0d2b1f;
  --mf-teal-800: #143c2b;
  --mf-teal-700: #1d5b41;
  --mf-teal-600: #2e7d55;
  --mf-teal-500: #4d9973;
  --mf-teal-100: #e4efe7;
  --mf-teal-50:  #f2f7f3;
  --mf-gold:      #f0a832;
  --mf-gold-soft: #fdf3dd;
  --mf-ink:       #14201a;
  --mf-text:      #1e2b22;
  --mf-muted:     #6b7a70;
  --mf-bg:        #f2f2ee;
  --mf-surface:   #ffffff;
  --mf-border:    #e3e6e0;
  --mf-danger:    #c0392b;
  --mf-success:   #1e8a5a;
  --mf-warning:   #c98a1b;
  --mf-info:      #2563eb;
  --mf-radius:    14px;
  --mf-radius-lg: 22px;
  --mf-shadow-sm: 0 1px 3px rgba(30,58,55,0.06);
  --mf-shadow:    0 4px 14px rgba(30,58,55,0.08);
  --mf-shadow-lg: 0 12px 32px rgba(30,58,55,0.14);
  --mf-transition: 150ms ease-in-out;
}

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

html, body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--mf-text);
  background: var(--mf-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--mf-teal-700); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.mf-app { display: flex; min-height: 100vh; }

.mf-sidebar {
  width: 232px;
  background: transparent;
  color: var(--mf-ink);
  position: fixed;
  inset: 16px auto 16px 16px;
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  z-index: 100;
}

.mf-sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  padding: 8px 16px 28px;
  letter-spacing: -0.02em;
  color: var(--mf-teal-800);
}

.mf-sidebar .brand .brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--mf-teal-800);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.mf-sidebar nav { flex: 1; overflow-y: auto; }

.mf-sidebar a {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0;
  padding: 11px 16px;
  color: var(--mf-muted);
  font-size: 14px;
  font-weight: 500;
  border-radius: 0 var(--mf-radius) var(--mf-radius) 0;
  transition: var(--mf-transition);
}

.mf-sidebar a svg { flex-shrink: 0; opacity: 0.8; }

.mf-sidebar a:hover { color: var(--mf-teal-800); background: var(--mf-teal-100); text-decoration: none; }

.mf-sidebar a.active {
  background: var(--mf-teal-800);
  color: #fff;
  border-radius: var(--mf-radius);
  margin-right: 12px;
}
.mf-sidebar a.active svg { opacity: 1; }

.mf-sidebar .nav-group {
  padding: 18px 16px 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mf-muted);
}

.mf-sidebar .sidebar-foot {
  padding: 16px;
  font-size: 11px;
  color: var(--mf-muted);
}

.mf-main {
  flex: 1;
  margin-left: 232px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.mf-topbar {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--mf-bg);
}

.mf-topbar .search {
  flex: 1;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--mf-surface);
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius);
  padding: 9px 14px;
  color: var(--mf-muted);
}

.mf-topbar .search input {
  border: none; outline: none; background: transparent;
  font-size: 14px; width: 100%; color: var(--mf-text);
}

.mf-topbar .top-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.mf-topbar .icon-btn {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--mf-border);
  background: var(--mf-surface);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--mf-muted); cursor: pointer;
}

.mf-content {
  flex: 1;
  padding: 8px 28px 40px;
  max-width: 1400px;
  width: 100%;
}

.mf-page-title { font-size: 20px; font-weight: 800; color: var(--mf-teal-900); letter-spacing: -0.02em; }
.mf-page-sub { color: var(--mf-muted); font-size: 13px; margin-top: 2px; }

/* Cards */
.mf-card {
  background: var(--mf-surface);
  border-radius: var(--mf-radius-lg);
  border: 1px solid var(--mf-border);
  box-shadow: var(--mf-shadow-sm);
  overflow: hidden;
}

.mf-card-header {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mf-card-title { font-size: 15px; font-weight: 700; color: var(--mf-teal-900); }
.mf-card-body { padding: 4px 22px 22px; }
.mf-card-body.flush { padding: 0; }

/* Dashboard grid */
.mf-grid { display: grid; gap: 20px; }
.mf-grid-top { grid-template-columns: 1.6fr 1fr 1fr; }
.mf-grid-mid { grid-template-columns: 1.6fr 1.4fr; }
.mf-grid-bottom { grid-template-columns: 1.8fr 1.2fr; }

@media (max-width: 1100px) {
  .mf-grid-top, .mf-grid-mid, .mf-grid-bottom { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .mf-sidebar { display: none; }
  .mf-main { margin-left: 0; }
  .mf-grid-top, .mf-grid-mid, .mf-grid-bottom { grid-template-columns: 1fr; }
}

/* Stats */
.mf-stat {
  background: var(--mf-surface);
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-lg);
  padding: 20px 22px;
  box-shadow: var(--mf-shadow-sm);
}
.mf-stat-value { font-size: 26px; font-weight: 800; color: var(--mf-teal-900); letter-spacing: -0.02em; }
.mf-stat-label { font-size: 13px; color: var(--mf-muted); margin-top: 4px; }
.mf-stat-sub { font-size: 12px; margin-top: 8px; color: var(--mf-muted); }
.mf-stat-sub .up { color: var(--mf-success); font-weight: 600; }
.mf-stat-sub .down { color: var(--mf-danger); font-weight: 600; }

/* Bar chart (pure CSS) */
.mf-bars { display: flex; align-items: flex-end; gap: 14px; height: 170px; padding: 8px 6px 0; }
.mf-bars .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.mf-bars .bar {
  width: 60%;
  max-width: 34px;
  background: var(--mf-teal-700);
  border-radius: 7px 7px 4px 4px;
  min-height: 6px;
  transition: var(--mf-transition);
}
.mf-bars .bar:hover { background: var(--mf-teal-500); }
.mf-bars .bar-label { font-size: 11px; color: var(--mf-muted); }

/* Mini calendar strip */
.mf-mini-cal { display: flex; gap: 6px; margin-bottom: 14px; }
.mf-mini-cal .day {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  border-radius: 9px;
  font-size: 11px;
  color: var(--mf-muted);
  cursor: pointer;
}
.mf-mini-cal .day b { display: block; font-size: 14px; color: var(--mf-text); font-weight: 700; margin-bottom: 2px; }
.mf-mini-cal .day.today { background: var(--mf-teal-800); color: #d7e6e2; }
.mf-mini-cal .day.today b { color: #fff; }
.mf-mini-cal .day.has-event b::after { content: '•'; color: var(--mf-gold); }

/* Row lists */
.mf-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--mf-border);
}
.mf-row:last-child { border-bottom: none; }
.mf-row .row-main { flex: 1; min-width: 0; }
.mf-row .row-title { font-size: 14px; font-weight: 600; color: var(--mf-ink); }
.mf-row .row-sub { font-size: 12px; color: var(--mf-muted); margin-top: 1px; }
.mf-row .row-check {
  width: 20px; height: 20px; border-radius: 6px;
  border: 1.5px solid var(--mf-teal-700);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--mf-teal-700); font-size: 12px; flex-shrink: 0;
}
.mf-row .row-kebab { color: var(--mf-muted); letter-spacing: 2px; font-weight: 700; cursor: pointer; }

.mf-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--mf-teal-800); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.mf-avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.mf-avatar.gold { background: var(--mf-gold); }
.mf-avatar.muted { background: #9db5b0; }

/* Badges */
.mf-badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  white-space: nowrap;
}
.mf-badge-success { background: #dff3e9; color: var(--mf-success); }
.mf-badge-warning { background: var(--mf-gold-soft); color: var(--mf-warning); }
.mf-badge-danger  { background: #fbe4e0; color: var(--mf-danger); }
.mf-badge-info    { background: #e0eafc; color: var(--mf-info); }
.mf-badge-neutral { background: #eef2f1; color: var(--mf-muted); }
.mf-badge-teal    { background: var(--mf-teal-100); color: var(--mf-teal-800); }

/* Buttons */
.mf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--mf-radius);
  border: 1px solid transparent; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: var(--mf-transition);
  background: transparent; color: var(--mf-text);
}
.mf-btn-primary { background: var(--mf-teal-800); color: #fff; border-color: var(--mf-teal-800); }
.mf-btn-primary:hover { background: var(--mf-teal-700); border-color: var(--mf-teal-700); }
.mf-btn-outline { color: var(--mf-teal-800); border-color: var(--mf-teal-800); background: transparent; }
.mf-btn-outline:hover { background: var(--mf-teal-800); color: #fff; }
.mf-btn-ghost { color: var(--mf-teal-800); }
.mf-btn-ghost:hover { background: var(--mf-teal-100); }
.mf-btn-danger { background: var(--mf-danger); color: #fff; }
.mf-btn-sm { padding: 6px 12px; font-size: 13px; }

/* Forms */
.mf-form { display: flex; flex-direction: column; gap: 16px; }
.mf-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mf-form-group { display: flex; flex-direction: column; gap: 6px; }
.mf-label { font-size: 13px; font-weight: 600; color: var(--mf-text); }
.mf-input, .mf-select, .mf-textarea {
  padding: 10px 14px; border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius); font-size: 14px;
  background: var(--mf-surface); color: var(--mf-text);
  transition: var(--mf-transition); width: 100%;
}
.mf-input:focus, .mf-select:focus, .mf-textarea:focus {
  outline: none; border-color: var(--mf-teal-600);
  box-shadow: 0 0 0 3px rgba(63,114,105,0.15);
}
.mf-textarea { min-height: 110px; resize: vertical; }
.mf-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232a4f4b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
  padding-right: 40px;
}
.mf-select.auto { width: auto; font-size: 13px; padding: 7px 34px 7px 12px; }
.mf-hint { font-size: 12px; color: var(--mf-muted); }
.mf-error { color: var(--mf-danger); font-size: 12px; }

/* Tables */
.mf-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mf-table th {
  text-align: left; padding: 12px 16px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--mf-muted);
  background: var(--mf-teal-50); border-bottom: 1px solid var(--mf-border);
}
.mf-table td { padding: 13px 16px; border-bottom: 1px solid var(--mf-border); }
.mf-table tr:last-child td { border-bottom: none; }
.mf-table tr:hover td { background: var(--mf-teal-50); }

/* Tabs */
.mf-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--mf-border); margin-bottom: 22px; flex-wrap: wrap; }
.mf-tab {
  padding: 10px 16px; border: none; background: transparent;
  font-size: 14px; font-weight: 600; color: var(--mf-muted);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  text-decoration: none;
}
.mf-tab:hover { color: var(--mf-teal-800); }
.mf-tab.active { color: var(--mf-teal-800); border-bottom-color: var(--mf-teal-800); }

/* Alerts */
.mf-alert {
  padding: 14px 18px; border-radius: var(--mf-radius);
  border-left: 4px solid; display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 16px; font-size: 14px;
}
.mf-alert-success { background: #edf7f2; border-color: var(--mf-success); color: #14532d; }
.mf-alert-danger  { background: #fdf0ee; border-color: var(--mf-danger); color: #7f1d1d; }
.mf-alert-warning { background: #fdf8ec; border-color: var(--mf-warning); color: #78350f; }
.mf-alert-info    { background: #eef4fd; border-color: var(--mf-info); color: #1e3a8a; }

/* Progress */
.mf-progress { height: 7px; background: var(--mf-border); border-radius: 999px; overflow: hidden; }
.mf-progress-bar { height: 100%; background: var(--mf-teal-700); border-radius: 999px; }

/* Calendar month grid */
.mf-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.mf-cal-head { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--mf-muted); text-align: center; padding: 6px 0; }
.mf-cal-cell {
  min-height: 88px; border: 1px solid var(--mf-border); border-radius: 10px;
  padding: 7px; font-size: 12px; background: var(--mf-surface);
}
.mf-cal-cell.out { opacity: 0.35; }
.mf-cal-cell.today { border-color: var(--mf-teal-700); box-shadow: 0 0 0 1px var(--mf-teal-700) inset; }
.mf-cal-num { font-weight: 700; color: var(--mf-ink); font-size: 12px; }
.mf-cal-ev {
  margin-top: 4px; font-size: 10.5px; line-height: 1.3;
  background: var(--mf-teal-100); color: var(--mf-teal-900);
  padding: 3px 6px; border-radius: 5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mf-cal-ev.court { background: var(--mf-gold-soft); color: #7a5410; }
.mf-cal-ev.deadline { background: #fbe4e0; color: var(--mf-danger); }

/* Chat / messages */
.mf-chat-item { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--mf-border); }
.mf-chat-item:last-child { border-bottom: none; }
.mf-chat-item .c-main { flex: 1; min-width: 0; }
.mf-chat-item .c-name { font-size: 14px; font-weight: 600; }
.mf-chat-item .c-msg { font-size: 12.5px; color: var(--mf-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* AI assistant panel */
.mf-ai-answer {
  background: var(--mf-teal-50); border: 1px solid var(--mf-teal-100);
  border-radius: var(--mf-radius); padding: 18px 20px; font-size: 14px; line-height: 1.65;
}
.mf-citation {
  display: block; padding: 10px 14px; border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius); margin-bottom: 8px; font-size: 13px;
  background: var(--mf-surface);
}
.mf-citation .cit-name { font-weight: 600; color: var(--mf-teal-800); }
.mf-citation .cit-meta { color: var(--mf-muted); font-size: 12px; }

/* Dictation recorder */
.mf-recorder {
  border: 2px dashed var(--mf-border); border-radius: var(--mf-radius-lg);
  padding: 34px; text-align: center; background: var(--mf-surface);
}
.mf-rec-dot {
  width: 66px; height: 66px; border-radius: 50%;
  background: var(--mf-danger); color: #fff; border: 6px solid #fbe4e0;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 22px; margin-bottom: 12px;
}
.mf-rec-dot.recording { animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(192,57,43,0.35);} 50% { box-shadow: 0 0 0 14px rgba(192,57,43,0);} }

/* Utilities */
.mf-flex { display: flex; align-items: center; gap: 12px; }
.mf-flex-between { display: flex; align-items: center; justify-content: space-between; }
.mf-mb-1 { margin-bottom: 8px; } .mf-mb-2 { margin-bottom: 16px; } .mf-mb-3 { margin-bottom: 24px; }
.mf-mt-1 { margin-top: 8px; } .mf-mt-2 { margin-top: 16px; }
.mf-muted { color: var(--mf-muted); }
.mf-sm { font-size: 12.5px; }
.mf-money { font-variant-numeric: tabular-nums; font-weight: 700; }
.mf-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mf-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mf-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .mf-grid-2, .mf-grid-3, .mf-grid-4 { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------
   Florai-inspired public surfaces (landing + auth)
   Deep forest green, warm off-white canvas, oversized type, pill CTAs.
------------------------------------------------------------------------- */
:root {
  --fl-bg:        #f2f2ee;
  --fl-surface:   #ffffff;
  --fl-ink:       #14201a;
  --fl-muted:     #6b7a70;
  --fl-border:    #e3e6e0;
  --fl-green-900: #0d2b1f;
  --fl-green-800: #143c2b;
  --fl-green-700: #1d5b41;
  --fl-green-100: #e4efe7;
  --fl-lime:      #b9e33c;
  --fl-lime-soft: #eef7d0;
  --fl-dark:      #0c1a13;
  --fl-radius:    22px;
  --fl-radius-lg: 30px;
  --fl-shadow:    0 10px 34px rgba(13,43,31,0.10);
}

.fl-page { background: var(--fl-bg); color: var(--fl-ink); font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }

/* Nav */
.fl-nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 28px; max-width: 1280px; margin: 0 auto; }
.fl-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.fl-brand .fl-mark {
  width: 34px; height: 34px; border-radius: 11px; background: var(--fl-green-800);
  color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
}
.fl-nav .links { display: flex; gap: 26px; font-size: 14px; color: var(--fl-muted); }
.fl-nav .links a:hover { color: var(--fl-ink); text-decoration: none; }

/* Pill buttons */
.fl-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: 150ms ease-in-out;
}
.fl-btn-primary { background: var(--fl-green-800); color: #fff; }
.fl-btn-primary:hover { background: var(--fl-green-700); text-decoration: none; color: #fff; }
.fl-btn-dark { background: var(--fl-dark); color: #fff; }
.fl-btn-dark:hover { background: var(--fl-green-900); text-decoration: none; color: #fff; }
.fl-btn-ghost { color: var(--fl-ink); }
.fl-btn-ghost:hover { background: var(--fl-green-100); text-decoration: none; }
.fl-btn .fl-arrow {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.18); font-size: 13px;
}
.fl-btn-ghost .fl-arrow { background: var(--fl-green-100); color: var(--fl-green-800); }

/* Split hero */
.fl-hero { max-width: 1280px; margin: 0 auto; padding: 26px 28px 70px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 22px; }
.fl-hero-left {
  background: var(--fl-surface); border: 1px solid var(--fl-border); border-radius: var(--fl-radius-lg);
  padding: 56px 52px; display: flex; flex-direction: column;
}
.fl-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fl-muted); font-weight: 500; }
.fl-eyebrow::before { content: '⊕'; color: var(--fl-green-700); }
.fl-h1 { font-size: clamp(38px, 4.6vw, 62px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; margin-top: 18px; }
.fl-h1 .fl-accent { color: var(--fl-green-700); }
.fl-hero-sub { margin-top: 20px; font-size: 15px; line-height: 1.7; color: var(--fl-muted); max-width: 46ch; }
.fl-hero-cta { margin-top: 30px; display: flex; align-items: center; gap: 18px; }
.fl-hero-cards { margin-top: auto; padding-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fl-mini-card {
  border: 1px solid var(--fl-border); border-radius: var(--fl-radius);
  padding: 18px 20px; font-size: 13px; position: relative; overflow: hidden;
}
.fl-mini-card .num { font-size: 11px; color: var(--fl-muted); font-weight: 600; }
.fl-mini-card .t { font-weight: 700; margin-top: 6px; font-size: 14.5px; }
.fl-mini-card p { color: var(--fl-muted); margin-top: 6px; line-height: 1.55; font-size: 12.5px; }
.fl-mini-card .go {
  position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--fl-dark); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
}
.fl-mini-card.lime { background: var(--fl-lime-soft); border-color: #dce9b8; }

/* Dark control panel */
.fl-panel {
  background: radial-gradient(120% 120% at 80% 0%, #173d2a 0%, var(--fl-dark) 60%);
  border-radius: var(--fl-radius-lg); color: #dfe8e1;
  padding: 26px; position: relative; overflow: hidden; min-height: 560px;
}
.fl-panel .panel-top { display: flex; justify-content: space-between; align-items: center; }
.fl-panel .toggle {
  display: inline-flex; gap: 6px; background: rgba(255,255,255,0.07); border-radius: 999px; padding: 5px;
}
.fl-panel .toggle span { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: #9fb3a7; }
.fl-panel .toggle span.on { background: rgba(255,255,255,0.14); color: #fff; }
.fl-widget {
  background: rgba(20,60,43,0.72); border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(6px); border-radius: 18px; padding: 14px 18px;
  font-size: 12.5px;
}
.fl-widget .w-title { display: flex; align-items: center; gap: 8px; color: #cfe0d4; font-weight: 600; font-size: 12px; }
.fl-widget .w-val { font-size: 30px; font-weight: 800; color: var(--fl-lime); letter-spacing: -0.02em; }
.fl-widget .w-sub { color: #8fa89a; font-size: 11.5px; }
.fl-badge-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--fl-green-700); color: #d8ecd0; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.fl-spark { display: flex; align-items: flex-end; gap: 3px; height: 26px; margin-top: 10px; }
.fl-spark i { flex: 1; max-width: 5px; border-radius: 3px; background: var(--fl-lime); opacity: 0.85; }
.fl-mono-feed { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; line-height: 1.9; color: #9fb3a7; }
.fl-mono-feed .ok { color: #7ddba0; }
.fl-mono-feed .no { color: #e07b6a; }
.fl-mono-feed .hot { color: var(--fl-lime); }
.fl-dots { display: flex; gap: 6px; justify-content: center; margin-top: 18px; }
.fl-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.fl-dots i.on { background: #fff; }

/* Sections */
.fl-section { max-width: 1280px; margin: 0 auto; padding: 0 28px 70px; }
.fl-section-head { text-align: center; margin-bottom: 44px; }
.fl-section-head .k { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fl-green-700); }
.fl-section-head h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin-top: 10px; }
.fl-section-head p { color: var(--fl-muted); font-size: 14.5px; margin-top: 10px; max-width: 52ch; margin-left: auto; margin-right: auto; }
.fl-card { background: var(--fl-surface); border: 1px solid var(--fl-border); border-radius: var(--fl-radius-lg); padding: 28px; }
.fl-card .k { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fl-muted); }
.fl-card .t { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; margin-top: 8px; }
.fl-card p { font-size: 13px; line-height: 1.65; color: var(--fl-muted); margin-top: 8px; }
.fl-terminal { background: var(--fl-dark); border-radius: 16px; padding: 18px; font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; line-height: 1.9; margin-top: 18px; }
.fl-terminal .ok { color: #7ddba0; } .fl-terminal .no { color: #e07b6a; }
.fl-terminal .tx { color: #cfe0d4; } .fl-terminal .dim { color: #7d9284; }

/* Manifesto band */
.fl-manifesto {
  background: radial-gradient(120% 140% at 50% 0%, #1d5b41 0%, var(--fl-dark) 62%);
  border-radius: var(--fl-radius-lg); color: #fff; text-align: center;
  padding: 70px 40px; max-width: 1280px; margin: 0 auto 70px;
}
.fl-manifesto h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; max-width: 22ch; margin: 0 auto; }
.fl-manifesto p { color: #9fb3a7; font-size: 14px; margin-top: 16px; }
.fl-manifesto .fl-lime-word { color: var(--fl-lime); }

/* Auth card */
.fl-auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 20px; }
.fl-auth-card {
  width: 100%; max-width: 430px; background: var(--fl-surface);
  border: 1px solid var(--fl-border); border-radius: var(--fl-radius-lg);
  box-shadow: var(--fl-shadow); padding: 40px 38px; margin-top: 26px;
}
.fl-input {
  width: 100%; padding: 12px 18px; border-radius: 999px;
  border: 1px solid var(--fl-border); background: #fafaf7;
  font-size: 14px; color: var(--fl-ink); transition: 150ms;
}
.fl-input:focus { outline: none; border-color: var(--fl-green-700); box-shadow: 0 0 0 3px rgba(29,91,65,0.14); }
.fl-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fl-muted); }

@media (max-width: 960px) {
  .fl-hero { grid-template-columns: 1fr; }
  .fl-hero-left { padding: 40px 28px; }
  .fl-hero-cards { grid-template-columns: 1fr; }
  .fl-nav .links { display: none; }
}

/* -------------------------------------------------------------------------
   Neural dark hero — particle orb, deep black card, gold accent
------------------------------------------------------------------------- */
:root {
  --fd-bg:      #0a0a09;
  --fd-card:    #0f0f0d;
  --fd-ink:     #f2f0ea;
  --fd-muted:   #8b8a80;
  --fd-gold:    #f0a832;
  --fd-gold-dim:#c98a1b;
  --fd-border:  #232320;
}

.fd-shell {
  background: var(--fd-card);
  border-radius: 34px;
  margin: 14px auto 60px;
  max-width: 1360px;
  padding: 0 10px 60px;
  position: relative; overflow: hidden;
  border: 1px solid var(--fd-border);
}
.fd-shell::before {
  content: ''; position: absolute; inset: -20% -10% auto; height: 70%;
  background: radial-gradient(60% 60% at 78% 38%, rgba(240,168,50,0.10), transparent 70%);
  pointer-events: none;
}
.fd-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 34px; position: relative; z-index: 2;
}
.fd-nav .links { display: flex; gap: 30px; font-size: 14px; }
.fd-nav .links a { color: var(--fd-muted); }
.fd-nav .links a:hover { color: var(--fd-ink); text-decoration: none; }
.fd-nav .links a.on { color: var(--fd-gold); }
.fd-brand { display: flex; align-items: center; gap: 10px; color: var(--fd-ink); font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.fd-brand .fl-mark { background: var(--fd-gold); color: #161310; }

.fd-hero {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 20px;
  align-items: center; padding: 30px 40px 10px 54px; position: relative; z-index: 2;
}
.fd-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fd-gold); }
.fd-h1 {
  font-size: clamp(40px, 5.2vw, 72px); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.02; color: var(--fd-ink); margin-top: 18px;
}
.fd-h1 em { font-style: italic; font-weight: 600; color: var(--fd-gold); font-family: Georgia, 'Times New Roman', serif; }
.fd-sub { margin-top: 22px; font-size: 14.5px; line-height: 1.7; color: var(--fd-muted); max-width: 46ch; }
.fd-cta { margin-top: 32px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fd-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: 150ms;
}
.fd-btn-gold { background: var(--fd-gold); color: #171310; }
.fd-btn-gold:hover { background: #ffc14d; color: #171310; text-decoration: none; }
.fd-btn-ghost { border-color: var(--fd-border); color: var(--fd-ink); background: rgba(255,255,255,0.04); }
.fd-btn-ghost:hover { background: rgba(255,255,255,0.09); text-decoration: none; }

.fd-orb { position: relative; }
.nb-orb { width: 100%; height: auto; display: block; }
@keyframes nbTwinkle { 0%,100% { opacity: 0.15; } 50% { opacity: 1; } }
.nb-twinkle { animation: nbTwinkle 3.4s ease-in-out infinite; }
@keyframes nbSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.nb-orb { animation: nbSpin 240s linear infinite; transform-origin: 50% 46%; }

@media (max-width: 960px) {
  .fd-hero { grid-template-columns: 1fr; padding: 20px 26px; }
  .fd-nav .links { display: none; }
  .fd-shell { padding-bottom: 30px; }
}
