:root {
  --fias-navy: #081426;
  --fias-navy-2: #0F1F3D;
  --fias-slate: #1E293B;
  --fias-blue: #2563EB;
  --fias-blue-hover: #1D4ED8;
  --fias-sky: #38BDF8;
  --fias-bg: #F5F7FA;
  --fias-card: #FFFFFF;
  --fias-border: #E2E8F0;
  --fias-text: #0F172A;
  --fias-muted: #475569;
  --fias-success: #059669;
  --fias-warn: #D97706;
  --fias-danger: #DC2626;
  --fias-radius: 14px;
  --fias-shadow: 0 10px 30px rgba(8, 20, 38, 0.08);
}

* { box-sizing: border-box; }
body {
  background: var(--fias-bg);
  color: var(--fias-text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

.fias-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Public Header & Navigation */
.fias-nav {
  background: rgba(8, 20, 38, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.fias-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.fias-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.fias-brand-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--fias-blue), var(--fias-sky));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
}
.fias-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.fias-nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .15s;
}
.fias-nav-links a:hover { color: #fff; }
.fias-nav-actions { display: flex; align-items: center; gap: 10px; }

/* Hero & Sections */
.fias-hero {
  background: radial-gradient(circle at 80% 20%, rgba(37,99,235,0.28), transparent 45%),
              linear-gradient(135deg, var(--fias-navy) 0%, var(--fias-navy-2) 100%);
  color: #fff;
  padding: 84px 24px;
}
.fias-hero-inner { max-width: 1200px; margin: 0 auto; }
.fias-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--fias-sky);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.fias-hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.12;
  margin: 18px 0 16px;
  font-weight: 800;
  color: #fff;
}
.fias-hero p {
  font-size: 18px;
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 0 28px;
}
.fias-section { padding: 64px 24px; }
.fias-section-dark { background: var(--fias-navy); color: #fff; padding: 64px 24px; }
.fias-section-title { font-size: 30px; font-weight: 800; margin: 0 0 10px; color: var(--fias-text); }
.fias-section-sub { font-size: 16px; color: var(--fias-muted); max-width: 680px; margin: 0 0 32px; }

/* Grid & Cards */
.fias-grid { display: grid; gap: 20px; }
.fias-card {
  background: var(--fias-card);
  border: 1px solid var(--fias-border);
  border-radius: var(--fias-radius);
  padding: 22px;
  box-shadow: 0 2px 10px rgba(15,23,42,0.03);
}
.fias-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--fias-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.fias-kpi { font-size: 28px; font-weight: 800; color: var(--fias-text); margin-top: 4px; }
.fias-muted { color: var(--fias-muted); }

/* Buttons & Badges */
.fias-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all .15s;
}
.fias-btn-primary { background: var(--fias-blue); color: #fff; }
.fias-btn-primary:hover { background: var(--fias-blue-hover); color: #fff; }
.fias-btn-ghost { background: transparent; color: var(--fias-text); border-color: var(--fias-border); }
.fias-btn-ghost:hover { background: #f8fafc; }
.fias-btn-light { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.22); }
.fias-btn-light:hover { background: rgba(255,255,255,0.18); color: #fff; }

.fias-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.fias-badge-info { background: #eff6ff; color: #1d4ed8; }
.fias-badge-warn { background: #fef3c7; color: #b45309; }
.fias-badge-ok { background: #dcfce7; color: #15803d; }

/* Inputs & Auth Screens */
.fias-label { display: block; font-size: 13px; font-weight: 600; color: var(--fias-slate); margin-bottom: 6px; }
.fias-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  color: var(--fias-text);
}
.fias-input:focus { outline: none; border-color: var(--fias-blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.fias-pwd-wrap { position: relative; }
.fias-pwd-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--fias-blue);
  cursor: pointer;
}
.fias-auth-bg {
  min-height: calc(100vh - 60px);
  background: linear-gradient(135deg, var(--fias-navy) 0%, var(--fias-navy-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.fias-auth-wrap { width: 100%; max-width: 480px; }
.fias-auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(8,20,38,0.35);
}

/* Workspace Shell */
.fias-shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.fias-shell.collapsed { grid-template-columns: 72px 1fr; }
.fias-shell.collapsed .fias-side-label { display: none; }
.fias-sidebar {
  background: var(--fias-navy);
  color: #cbd5e1;
  padding: 22px 16px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.fias-nav-link {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}
.fias-nav-link:hover, .fias-nav-link.active { background: rgba(37,99,235,0.22); color: #fff; }
.fias-main { padding: 26px 28px; background: var(--fias-bg); overflow-x: hidden; }
.fias-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  background: #fff;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--fias-border);
}
.fias-panel { display: none; }
.fias-panel.active { display: block; }

/* Tables & Meters */
.fias-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.fias-table th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--fias-border);
  color: var(--fias-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.fias-table td { padding: 11px 12px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.fias-meter { height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.fias-meter > span { display: block; height: 100%; background: linear-gradient(90deg, var(--fias-blue), var(--fias-sky)); }

/* Footer */
.fias-footer {
  background: var(--fias-navy);
  color: #94a3b8;
  padding: 52px 24px 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.fias-footer a { color: #cbd5e1; text-decoration: none; font-size: 14px; }
.fias-footer a:hover { color: #fff; }

@media (max-width: 900px) {
  .fias-shell { grid-template-columns: 1fr; }
  .fias-sidebar { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
}
