/* ==========================================================================
   LabDNS Design System & Dashboard Stylesheet
   Theme: High-Tech Dark Mode (Midnight Slate + Cyan/Blue/Emerald Accents)
   ========================================================================== */

:root {
  /* Farbpalette - Dark Slate & Contrast */
  --bg-base: #0B0F17;
  --bg-sidebar: #0E1424;
  --bg-card: rgba(17, 24, 39, 0.85);
  --bg-card-solid: #111827;
  --bg-card-hover: rgba(24, 34, 53, 0.95);
  --bg-input: rgba(15, 23, 42, 0.8);
  --bg-badge: rgba(30, 41, 59, 0.7);

  /* Konturen & Abgrenzungen */
  --border-subtle: #1E293B;
  --border-card: rgba(255, 255, 255, 0.08);
  --border-active: #06B6D4;
  --border-focus: rgba(6, 182, 212, 0.4);

  /* Akzentfarben */
  --cyan: #06B6D4;
  --cyan-glow: rgba(6, 182, 212, 0.25);
  --blue: #3B82F6;
  --blue-glow: rgba(59, 130, 246, 0.25);
  --green: #10B981;
  --green-glow: rgba(16, 185, 129, 0.2);
  --amber: #F59E0B;
  --amber-glow: rgba(245, 158, 11, 0.2);
  --purple: #8B5CF6;
  --purple-glow: rgba(139, 92, 246, 0.2);
  --red: #EF4444;

  /* Typografie-Farben */
  --text-white: #FFFFFF;
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-faint: #64748B;

  /* Schriften */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radien & Schatten */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.45), inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 25px -4px var(--cyan-glow);
  --shadow-modal: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);

  /* Layout */
  --sidebar-width: 250px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ==========================================================================
   Layout Shell
   ========================================================================== */
.app-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ==========================================================================
   Sidebar Navigation
   ========================================================================== */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px 20px;
}

.brand-icon-wrapper {
  position: relative;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.3));
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
}

.brand-icon {
  width: 20px;
  height: 20px;
  position: relative;
  z-index: 2;
}

.brand-glow {
  position: absolute;
  inset: -4px;
  background: var(--cyan);
  filter: blur(10px);
  opacity: 0.35;
  border-radius: inherit;
  z-index: 1;
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

.brand-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  letter-spacing: 0.05em;
}

.nav-menu {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-item:hover {
  color: var(--text-white);
  background-color: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
  color: var(--text-white);
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.15) 0%, rgba(6, 182, 212, 0.03) 100%);
  border-left: 3px solid var(--cyan);
  padding-left: 9px;
  font-weight: 600;
}

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

.nav-counter {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background-color: rgba(11, 16, 28, 0.5);
}

.status-pill-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  background-color: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
}

.status-pill-btn:hover {
  background-color: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
}

.status-pill-text {
  font-size: 12px;
  font-weight: 600;
  color: #34D399;
}

.status-dot-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--green);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 8px var(--green);
}

.status-dot-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background-color: var(--green);
  opacity: 0.4;
  animation: pulse-ring 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E293B, #334155);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-white);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
}

.user-role {
  font-size: 11px;
  color: var(--text-faint);
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-content {
  flex: 1;
  padding: 28px 36px 48px;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Topbar Header */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.sub-label {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 280px;
}

.search-box input {
  width: 100%;
  height: 38px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0 40px 0 36px;
  font-size: 13px;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

.search-box input::placeholder {
  color: var(--text-faint);
}

.search-icon {
  position: absolute;
  left: 11px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-kbd {
  position: absolute;
  right: 10px;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 2px 5px;
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
}

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

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-white);
}

.btn-primary {
  background: linear-gradient(135deg, #0284C7 0%, #06B6D4 100%);
  color: var(--text-white);
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.45);
  transform: translateY(-1px);
}

/* ==========================================================================
   KPI-Grid (4 Karten)
   ========================================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.kpi-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.kpi-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.kpi-body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.kpi-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

.kpi-footer {
  font-size: 12px;
  color: var(--text-muted);
}

.kpi-sparkline {
  width: 70px;
  height: 24px;
}

.spark-svg {
  width: 100%;
  height: 100%;
  color: var(--blue);
}

.spark-cyan {
  color: var(--cyan);
}

.spark-green {
  color: var(--green);
}

/* Mini Histogram */
.mini-histogram {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
  width: 70px;
}

.mini-histogram .bar {
  flex: 1;
  background-color: rgba(6, 182, 212, 0.4);
  border-radius: 1.5px;
  transition: height 0.3s ease, background-color 0.2s ease;
}

.mini-histogram .bar:hover {
  background-color: var(--cyan);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: var(--radius-pill);
}

.badge-cyan {
  background-color: rgba(6, 182, 212, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.badge-green {
  background-color: rgba(16, 185, 129, 0.12);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

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

.status-summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

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

.dot-green {
  background-color: var(--green);
  box-shadow: 0 0 5px var(--green);
}

.dot-amber {
  background-color: var(--amber);
  box-shadow: 0 0 5px var(--amber);
}

.text-green { color: #34D399; }
.text-amber { color: #FBBF24; }
.text-cyan { color: var(--cyan); }
.text-white { color: var(--text-white); }
.mono { font-family: var(--font-mono); }

/* ==========================================================================
   PowerDNS Status & Integrität Panel (Volle Breite)
   ========================================================================== */
.health-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px 24px 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.health-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green) 0%, var(--cyan) 50%, transparent 100%);
  opacity: 0.8;
}

.health-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.health-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.health-icon-box {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}

.health-icon-box svg {
  width: 22px;
  height: 22px;
}

.health-title-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.01em;
}

.badge-status-operational {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background-color: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: #34D399;
}

.health-backend-info {
  font-size: 12.5px;
  color: var(--text-muted);
}

.telemetry-items {
  display: flex;
  align-items: center;
  gap: 32px;
}

.telemetry-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tele-val {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tele-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.telemetry-graph-container {
  position: relative;
  width: 100%;
  height: 65px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.telemetry-chart {
  width: 100%;
  height: 100%;
  display: block;
}

.graph-live-indicator {
  position: absolute;
  top: 8px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--cyan);
  font-weight: 500;
}

.ping-dot {
  width: 6px;
  height: 6px;
  background-color: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--cyan);
}

/* ==========================================================================
   2-Spalten-Raster für DNS-Daten und DDNS-Stream
   ========================================================================== */
.content-columns-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.01em;
}

.card-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.filter-pills {
  display: flex;
  gap: 4px;
  background-color: rgba(0, 0, 0, 0.25);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-pill {
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 500;
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  color: var(--text-white);
}

.filter-pill.active {
  background-color: var(--bg-card-solid);
  color: var(--cyan);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.btn-text-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-text-action:hover {
  background-color: rgba(6, 182, 212, 0.1);
}

.btn-text-action svg {
  width: 14px;
  height: 14px;
}

/* Records Table */
.records-table-wrapper {
  overflow-x: auto;
}

.records-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.records-table th {
  padding: 10px 20px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background-color: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid var(--border-subtle);
}

.records-table td {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13.5px;
  vertical-align: middle;
}

.records-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

.hostname-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.host-name {
  font-weight: 600;
  color: var(--text-white);
}

.host-tag {
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.tag-cyan {
  background-color: rgba(6, 182, 212, 0.12);
  color: var(--cyan);
}

.tag-blue {
  background-color: rgba(59, 130, 246, 0.12);
  color: #60A5FA;
}

.tag-purple {
  background-color: rgba(139, 92, 246, 0.12);
  color: #A78BFA;
}

.ip-badge {
  display: inline-block;
  padding: 4px 8px;
  background-color: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--cyan);
}

.ttl-text {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.text-right {
  text-align: right;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-copy svg {
  width: 13px;
  height: 13px;
}

.btn-copy:hover {
  background-color: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.35);
  color: var(--cyan);
}

.btn-copy.copied {
  background-color: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34D399;
}

/* Updates Feed */
.updates-feed {
  display: flex;
  flex-direction: column;
  padding: 10px 16px;
  gap: 6px;
  max-height: 380px;
  overflow-y: auto;
}

.feed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background-color: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all var(--transition-fast);
}

.feed-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.feed-indicator {
  flex-shrink: 0;
}

.feed-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feed-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.client-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}

.client-fritzbox {
  background-color: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.client-unifi {
  background-color: rgba(6, 182, 212, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.client-mikrotik {
  background-color: rgba(139, 92, 246, 0.15);
  color: #A78BFA;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.client-daemon {
  background-color: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.feed-time {
  font-size: 11px;
  color: var(--text-faint);
}

.feed-detail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}

.feed-host {
  color: var(--text-white);
  font-weight: 500;
}

.feed-arrow {
  color: var(--text-faint);
  font-size: 11px;
}

.feed-ip {
  color: var(--cyan);
  font-size: 12px;
}

.feed-latency {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

.modal-card {
  width: 100%;
  max-width: 500px;
  background: var(--bg-card-solid);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  padding: 24px;
  transform: translateY(20px) scale(0.98);
  transition: transform var(--transition-normal);
}

.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-white);
}

.modal-close-btn {
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.modal-close-btn:hover {
  color: var(--text-white);
}

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
}

.form-group input,
.form-group select {
  height: 40px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  color: var(--text-white);
  font-size: 13.5px;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

.input-with-addon {
  display: flex;
  align-items: center;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.input-with-addon input {
  flex: 1;
  border: none;
  background: none;
}

.input-addon {
  padding: 0 12px;
  font-size: 13px;
  color: var(--text-muted);
  background-color: rgba(255, 255, 255, 0.04);
  border-left: 1px solid var(--border-subtle);
  height: 40px;
  display: flex;
  align-items: center;
}

.form-hint {
  font-size: 11px;
  color: var(--text-faint);
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text-main);
  user-select: none;
}

.custom-checkbox input {
  display: none;
}

.checkbox-indicator {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.custom-checkbox input:checked + .checkbox-indicator {
  background-color: var(--cyan);
  border-color: var(--cyan);
}

.custom-checkbox input:checked + .checkbox-indicator::after {
  content: '✓';
  color: #000;
  font-size: 12px;
  font-weight: 800;
}

.modal-footer {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  padding: 12px 18px;
  background: #1E293B;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
  color: var(--text-white);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.toast-success {
  border-left: 3px solid var(--green);
}

.toast.toast-info {
  border-left: 3px solid var(--cyan);
}

@keyframes toast-in {
  from {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1200px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .content-columns-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 70px;
  }
  .brand-text, .nav-item span, .nav-counter, .sidebar-footer {
    display: none;
  }
  .main-content {
    padding: 16px;
  }
  .top-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .search-box {
    width: 100%;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Public Landing Page Redesign (High-Tech Infrastructure Theme)
   ========================================================================== */
.public-landing-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 64px;
  position: relative;
}

/* Background Ambient Glows */
.public-landing-container::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 20%;
  width: 500px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, rgba(59, 130, 246, 0.05) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

.public-landing-container::after {
  content: '';
  position: absolute;
  top: 350px;
  right: 10%;
  width: 450px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, rgba(6, 182, 212, 0.04) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

/* 1. Hero Section */
.landing-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-top: 20px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background-color: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  width: fit-content;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-headline {
  font-size: 46px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.03em;
}

.hero-gradient-text {
  background: linear-gradient(135deg, #06B6D4 0%, #3B82F6 50%, #60A5FA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 24px;
  background: linear-gradient(135deg, #0284C7 0%, #06B6D4 100%);
  color: #FFFFFF !important;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
  transition: all var(--transition-fast);
}

.btn-hero-primary:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(6, 182, 212, 0.55);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 14.5px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn-hero-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 46px;
  padding: 0 16px;
  color: var(--cyan);
  font-size: 13.5px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.btn-hero-ghost:hover {
  color: #FFFFFF;
}

.hero-trust-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-trust-item svg {
  width: 14px;
  height: 14px;
  color: var(--green);
  flex-shrink: 0;
}

/* Hero Terminal Box */
.terminal-window {
  background: #090D16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7), 0 0 30px -5px rgba(6, 182, 212, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.terminal-top-bar {
  background-color: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background-color: #EF4444; }
.dot-yellow { background-color: #F59E0B; }
.dot-green { background-color: #10B981; }

.terminal-tabs {
  display: flex;
  gap: 4px;
}

.terminal-tab-btn {
  padding: 4px 10px;
  font-size: 11.5px;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.terminal-tab-btn:hover {
  color: var(--text-white);
  background-color: rgba(255, 255, 255, 0.05);
}

.terminal-tab-btn.active {
  background-color: rgba(6, 182, 212, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.terminal-code-body {
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: #E2E8F0;
  position: relative;
  min-height: 140px;
}

.terminal-code-body pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
}

.code-keyword { color: #38BDF8; font-weight: 600; }
.code-flag { color: #A78BFA; }
.code-str { color: #34D399; }
.code-comment { color: #64748B; font-style: italic; }
.code-success { color: #10B981; font-weight: 700; }

.terminal-copy-action {
  position: absolute;
  top: 14px;
  right: 14px;
}

.terminal-meta-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background-color: rgba(0, 0, 0, 0.2);
}

.meta-pill-item {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.meta-pill-item:last-child {
  border-right: none;
}

.meta-pill-label {
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.meta-pill-val {
  font-size: 12.5px;
  font-family: var(--font-mono);
  color: var(--cyan);
  font-weight: 600;
}

/* 2. Section Headers */
.landing-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-main-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

.section-subtext {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 3. Setup Flow (4 Steps) */
.setup-step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.setup-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: all var(--transition-fast);
}

.setup-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px -3px var(--cyan-glow);
}

.step-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-number-badge {
  font-size: 12px;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background-color: rgba(6, 182, 212, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.step-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
}

.step-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

.step-code-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background-color: rgba(0, 0, 0, 0.35);
  color: var(--cyan);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-block;
}

/* 4. Interactive Router Configurator */
.router-guide-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.router-tabs-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background-color: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.router-tab-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.router-tab-pill:hover {
  color: var(--text-white);
  background-color: rgba(255, 255, 255, 0.04);
}

.router-tab-pill.active {
  background-color: var(--bg-card-solid);
  color: var(--cyan);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.router-param-table-wrapper {
  padding: 24px;
}

.router-param-table {
  width: 100%;
  border-collapse: collapse;
}

.router-param-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.router-param-table tr:last-child {
  border-bottom: none;
}

.router-param-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  width: 200px;
  vertical-align: middle;
}

.router-param-table td {
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--text-main);
  vertical-align: middle;
}

.router-param-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.param-code-val {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 6px 10px;
  background-color: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--cyan);
  word-break: break-all;
}

.router-info-alert {
  margin: 0 24px 24px;
  padding: 14px 18px;
  background-color: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: #E2E8F0;
  line-height: 1.5;
}

.alert-icon {
  width: 18px;
  height: 18px;
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 1px;
}

/* 5. Feature & Trust Grid */
.trust-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.trust-feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all var(--transition-fast);
}

.trust-feature-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.trust-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-cyan {
  background-color: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--cyan);
}

.icon-blue {
  background-color: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60A5FA;
}

.icon-green {
  background-color: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34D399;
}

.icon-purple {
  background-color: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #A78BFA;
}

.trust-feature-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
}

.trust-feature-content p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* 6. Call to Action Banner */
.landing-cta-banner {
  background: linear-gradient(135deg, rgba(14, 20, 36, 0.9) 0%, rgba(17, 24, 39, 0.95) 100%);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6), 0 0 25px -4px var(--cyan-glow);
  position: relative;
  overflow: hidden;
}

.landing-cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan) 0%, #3B82F6 50%, var(--purple) 100%);
}

.cta-banner-text h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 6px;
}

.cta-banner-text p {
  font-size: 14.5px;
  color: var(--text-muted);
}

.cta-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .landing-hero-grid {
    grid-template-columns: 1fr;
  }
  .setup-step-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-cards-grid {
    grid-template-columns: 1fr;
  }
  .landing-cta-banner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero-headline {
    font-size: 34px;
  }
  .setup-step-grid {
    grid-template-columns: 1fr;
  }
}
