/**
 * Aurelius Design System v1.0
 * Complete design system for the Aurelius MCP platform
 * Dark theme only, production-ready, no build step required
 *
 * Usage: <link rel="stylesheet" href="../_shared/design-system.css">
 */

/* ============================================================================
   FONT IMPORTS
   ============================================================================ */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ============================================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================================ */
:root {
  /* Surfaces */
  --au-bg-base: #06080b;
  --au-bg-surface: #0d1117;
  --au-bg-elevated: #161b22;
  --au-bg-overlay: #1c2128;

  /* Brand - Teal/Jade accent */
  --au-accent: rgba(90, 140, 135, 1);
  --au-accent-hover: rgba(100, 155, 148, 1);
  --au-accent-subtle: rgba(90, 140, 135, 0.12);
  --au-accent-glow: rgba(90, 140, 135, 0.3);

  /* Text */
  --au-text-primary: #e6edf3;
  --au-text-secondary: #8b949e;
  --au-text-muted: #6e7681;

  /* Borders */
  --au-border: rgba(240, 246, 252, 0.1);
  --au-border-hover: rgba(240, 246, 252, 0.2);

  /* Semantic colors */
  --au-success: #3fb950;
  --au-success-subtle: rgba(63, 185, 80, 0.15);
  --au-warning: #d29922;
  --au-warning-subtle: rgba(210, 153, 34, 0.15);
  --au-error: #f85149;
  --au-error-subtle: rgba(248, 81, 73, 0.15);
  --au-info: #58a6ff;
  --au-info-subtle: rgba(88, 166, 255, 0.15);

  /* Spacing scale (4px base unit) */
  --au-space-1: 4px;
  --au-space-2: 8px;
  --au-space-3: 12px;
  --au-space-4: 16px;
  --au-space-5: 24px;
  --au-space-6: 32px;
  --au-space-7: 48px;
  --au-space-8: 64px;

  /* Typography */
  --au-font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --au-font-mono: 'IBM Plex Mono', 'JetBrains Mono', 'Consolas', monospace;
  --au-font-size-xs: 0.75rem;      /* 12px */
  --au-font-size-sm: 0.8125rem;    /* 13px */
  --au-font-size-md: 0.875rem;     /* 14px */
  --au-font-size-lg: 1rem;         /* 16px */
  --au-font-size-xl: 1.25rem;      /* 20px */
  --au-font-size-2xl: 1.5rem;      /* 24px */
  --au-font-size-3xl: 2rem;        /* 32px */

  --au-line-height-tight: 1.25;
  --au-line-height-normal: 1.5;
  --au-line-height-relaxed: 1.75;

  /* Border radius */
  --au-radius-sm: 6px;
  --au-radius-md: 8px;
  --au-radius-lg: 12px;
  --au-radius-xl: 16px;
  --au-radius-full: 9999px;

  /* Shadows */
  --au-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --au-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --au-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --au-shadow-glow: 0 0 20px rgba(90, 140, 135, 0.15);
  --au-shadow-glow-strong: 0 0 30px rgba(90, 140, 135, 0.3);

  /* Transitions */
  --au-transition-fast: 150ms ease;
  --au-transition-normal: 200ms ease;
  --au-transition-slow: 300ms ease;

  /* Z-index scale */
  --au-z-base: 0;
  --au-z-dropdown: 1000;
  --au-z-sticky: 1100;
  --au-z-fixed: 1200;
  --au-z-modal-backdrop: 1300;
  --au-z-modal: 1400;
  --au-z-popover: 1500;
  --au-z-tooltip: 1600;
}

/* ============================================================================
   MODERN CSS RESET
   ============================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--au-font-sans);
  font-size: var(--au-font-size-md);
  line-height: var(--au-line-height-normal);
  color: var(--au-text-primary);
  background-color: var(--au-bg-base);
  min-height: 100vh;
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul, ol {
  list-style: none;
}

/* ============================================================================
   CUSTOM SCROLLBAR
   ============================================================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(20, 25, 30, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(90, 140, 135, 0.4) 0%, rgba(70, 110, 105, 0.3) 100%);
  border-radius: 4px;
  transition: background var(--au-transition-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(90, 140, 135, 0.6) 0%, rgba(70, 110, 105, 0.5) 100%);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(90, 140, 135, 0.4) rgba(20, 25, 30, 0.3);
}

/* ============================================================================
   FOCUS & SELECTION STYLES
   ============================================================================ */
*:focus-visible {
  outline: 2px solid var(--au-accent);
  outline-offset: 2px;
  border-radius: var(--au-radius-sm);
}

::selection {
  background-color: var(--au-accent-subtle);
  color: var(--au-text-primary);
}

::-moz-selection {
  background-color: var(--au-accent-subtle);
  color: var(--au-text-primary);
}

/* ============================================================================
   TYPOGRAPHY CLASSES
   ============================================================================ */
.au-text-xs { font-size: var(--au-font-size-xs); }
.au-text-sm { font-size: var(--au-font-size-sm); }
.au-text-md { font-size: var(--au-font-size-md); }
.au-text-lg { font-size: var(--au-font-size-lg); }
.au-text-xl { font-size: var(--au-font-size-xl); }
.au-text-2xl { font-size: var(--au-font-size-2xl); }
.au-text-3xl { font-size: var(--au-font-size-3xl); }

.au-font-sans { font-family: var(--au-font-sans); }
.au-font-mono { font-family: var(--au-font-mono); }

.au-font-light { font-weight: 300; }
.au-font-normal { font-weight: 400; }
.au-font-medium { font-weight: 500; }
.au-font-semibold { font-weight: 600; }
.au-font-bold { font-weight: 700; }

.au-text-primary { color: var(--au-text-primary); }
.au-text-secondary { color: var(--au-text-secondary); }
.au-text-muted { color: var(--au-text-muted); }
.au-text-accent { color: var(--au-accent); }
.au-text-success { color: var(--au-success); }
.au-text-warning { color: var(--au-warning); }
.au-text-error { color: var(--au-error); }
.au-text-info { color: var(--au-info); }

.au-text-center { text-align: center; }
.au-text-left { text-align: left; }
.au-text-right { text-align: right; }

.au-leading-tight { line-height: var(--au-line-height-tight); }
.au-leading-normal { line-height: var(--au-line-height-normal); }
.au-leading-relaxed { line-height: var(--au-line-height-relaxed); }

.au-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================================
   GLASSMORPHISM UTILITIES
   ============================================================================ */
.au-glass {
  background: rgba(13, 17, 23, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--au-border);
}

.au-glass-heavy {
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--au-border-hover);
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.au-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--au-space-2);
  padding: var(--au-space-2) var(--au-space-4);
  border-radius: var(--au-radius-md);
  font-size: var(--au-font-size-md);
  font-weight: 500;
  line-height: 1.5;
  transition: all var(--au-transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  user-select: none;
}

.au-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.au-btn-primary {
  background: var(--au-accent);
  color: var(--au-text-primary);
  border-color: var(--au-accent);
}

.au-btn-primary:hover:not(:disabled) {
  background: var(--au-accent-hover);
  border-color: var(--au-accent-hover);
  box-shadow: var(--au-shadow-glow);
  transform: translateY(-1px);
}

.au-btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

.au-btn-ghost {
  background: transparent;
  color: var(--au-text-primary);
  border-color: var(--au-border);
}

.au-btn-ghost:hover:not(:disabled) {
  background: var(--au-accent-subtle);
  border-color: var(--au-accent);
  color: var(--au-accent);
}

.au-btn-ghost:active:not(:disabled) {
  background: rgba(90, 140, 135, 0.18);
}

.au-btn-danger {
  background: var(--au-error);
  color: var(--au-text-primary);
  border-color: var(--au-error);
}

.au-btn-danger:hover:not(:disabled) {
  background: #ff6b6b;
  border-color: #ff6b6b;
  box-shadow: 0 0 20px rgba(248, 81, 73, 0.3);
  transform: translateY(-1px);
}

.au-btn-success {
  background: var(--au-success);
  color: var(--au-text-primary);
  border-color: var(--au-success);
}

.au-btn-success:hover:not(:disabled) {
  background: #4ccc5a;
  border-color: #4ccc5a;
  transform: translateY(-1px);
}

/* Button sizes */
.au-btn-sm {
  padding: var(--au-space-1) var(--au-space-3);
  font-size: var(--au-font-size-sm);
}

.au-btn-lg {
  padding: var(--au-space-3) var(--au-space-6);
  font-size: var(--au-font-size-lg);
}

.au-btn-icon {
  padding: var(--au-space-2);
  aspect-ratio: 1;
}

/* ============================================================================
   FORM INPUTS
   ============================================================================ */
.au-input-group {
  display: flex;
  flex-direction: column;
  gap: var(--au-space-2);
  width: 100%;
}

.au-label {
  font-size: var(--au-font-size-sm);
  font-weight: 500;
  color: var(--au-text-secondary);
  cursor: pointer;
}

.au-input,
.au-textarea,
.au-select {
  width: 100%;
  padding: var(--au-space-3) var(--au-space-4);
  background: var(--au-bg-elevated);
  border: 1px solid var(--au-border);
  border-radius: var(--au-radius-md);
  color: var(--au-text-primary);
  font-size: var(--au-font-size-md);
  transition: all var(--au-transition-fast);
}

.au-input:hover,
.au-textarea:hover,
.au-select:hover {
  border-color: var(--au-border-hover);
}

.au-input:focus,
.au-textarea:focus,
.au-select:focus {
  outline: none;
  border-color: var(--au-accent);
  box-shadow: 0 0 0 3px var(--au-accent-subtle);
}

.au-input::placeholder,
.au-textarea::placeholder {
  color: var(--au-text-muted);
}

.au-input:disabled,
.au-textarea:disabled,
.au-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.au-textarea {
  min-height: 120px;
  resize: vertical;
  font-family: var(--au-font-sans);
  line-height: var(--au-line-height-relaxed);
}

.au-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b949e' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--au-space-3) center;
  padding-right: var(--au-space-6);
  cursor: pointer;
}

.au-input-error {
  border-color: var(--au-error);
}

.au-input-error:focus {
  box-shadow: 0 0 0 3px var(--au-error-subtle);
}

.au-input-helper {
  font-size: var(--au-font-size-xs);
  color: var(--au-text-muted);
}

.au-input-error-text {
  font-size: var(--au-font-size-xs);
  color: var(--au-error);
}

/* Checkbox & Radio */
.au-checkbox,
.au-radio {
  width: 18px;
  height: 18px;
  border: 2px solid var(--au-border);
  background: var(--au-bg-elevated);
  cursor: pointer;
  transition: all var(--au-transition-fast);
}

.au-checkbox {
  border-radius: var(--au-radius-sm);
}

.au-radio {
  border-radius: var(--au-radius-full);
}

.au-checkbox:checked,
.au-radio:checked {
  background: var(--au-accent);
  border-color: var(--au-accent);
}

.au-checkbox:focus-visible,
.au-radio:focus-visible {
  outline: 2px solid var(--au-accent);
  outline-offset: 2px;
}

/* ============================================================================
   CARDS & PANELS
   ============================================================================ */
.au-card {
  background: var(--au-bg-elevated);
  border: 1px solid var(--au-border);
  border-radius: var(--au-radius-lg);
  box-shadow: var(--au-shadow-sm);
  overflow: hidden;
}

.au-card-header {
  padding: var(--au-space-4) var(--au-space-5);
  border-bottom: 1px solid var(--au-border);
  font-weight: 600;
  font-size: var(--au-font-size-lg);
}

.au-card-body {
  padding: var(--au-space-5);
}

.au-card-footer {
  padding: var(--au-space-4) var(--au-space-5);
  border-top: 1px solid var(--au-border);
  background: var(--au-bg-surface);
}

.au-panel {
  background: var(--au-bg-surface);
  border: 1px solid var(--au-border);
  border-radius: var(--au-radius-md);
  padding: var(--au-space-4);
}

.au-card:hover {
  border-color: var(--au-border-hover);
}

/* ============================================================================
   BADGES & TAGS
   ============================================================================ */
.au-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--au-space-1);
  padding: var(--au-space-1) var(--au-space-2);
  font-size: var(--au-font-size-xs);
  font-weight: 500;
  border-radius: var(--au-radius-full);
  white-space: nowrap;
  line-height: 1;
}

.au-badge-default {
  background: var(--au-bg-elevated);
  color: var(--au-text-secondary);
  border: 1px solid var(--au-border);
}

.au-badge-success {
  background: var(--au-success-subtle);
  color: var(--au-success);
  border: 1px solid rgba(63, 185, 80, 0.3);
}

.au-badge-warning {
  background: var(--au-warning-subtle);
  color: var(--au-warning);
  border: 1px solid rgba(210, 153, 34, 0.3);
}

.au-badge-error {
  background: var(--au-error-subtle);
  color: var(--au-error);
  border: 1px solid rgba(248, 81, 73, 0.3);
}

.au-badge-info {
  background: var(--au-info-subtle);
  color: var(--au-info);
  border: 1px solid rgba(88, 166, 255, 0.3);
}

.au-badge-accent {
  background: var(--au-accent-subtle);
  color: var(--au-accent);
  border: 1px solid var(--au-accent);
}

.au-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--au-space-2);
  padding: var(--au-space-2) var(--au-space-3);
  font-size: var(--au-font-size-sm);
  font-weight: 500;
  border-radius: var(--au-radius-md);
  background: var(--au-bg-elevated);
  border: 1px solid var(--au-border);
  white-space: nowrap;
}

.au-tag:hover {
  border-color: var(--au-border-hover);
}

/* ============================================================================
   AVATAR
   ============================================================================ */
.au-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--au-radius-full);
  background: var(--au-accent);
  color: var(--au-text-primary);
  font-weight: 600;
  overflow: hidden;
  flex-shrink: 0;
}

.au-avatar-sm {
  width: 24px;
  height: 24px;
  font-size: var(--au-font-size-xs);
}

.au-avatar-md {
  width: 36px;
  height: 36px;
  font-size: var(--au-font-size-sm);
}

.au-avatar-lg {
  width: 48px;
  height: 48px;
  font-size: var(--au-font-size-lg);
}

.au-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================================
   MODAL & DIALOG
   ============================================================================ */
.au-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 11, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--au-z-modal-backdrop);
  padding: var(--au-space-4);
  animation: au-fade-in var(--au-transition-normal);
}

.au-modal {
  background: var(--au-bg-elevated);
  border: 1px solid var(--au-border-hover);
  border-radius: var(--au-radius-xl);
  box-shadow: var(--au-shadow-lg);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: var(--au-z-modal);
  animation: au-slide-up var(--au-transition-normal);
}

.au-modal-header {
  padding: var(--au-space-5);
  border-bottom: 1px solid var(--au-border);
  font-size: var(--au-font-size-xl);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.au-modal-body {
  padding: var(--au-space-5);
  overflow-y: auto;
  flex: 1;
}

.au-modal-footer {
  padding: var(--au-space-4) var(--au-space-5);
  border-top: 1px solid var(--au-border);
  display: flex;
  gap: var(--au-space-3);
  justify-content: flex-end;
  background: var(--au-bg-surface);
}

.au-dialog {
  max-width: 400px;
}

/* ============================================================================
   SIDEBAR
   ============================================================================ */
.au-sidebar {
  width: 260px;
  height: 100vh;
  background: var(--au-bg-surface);
  border-right: 1px solid var(--au-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width var(--au-transition-normal);
  flex-shrink: 0;
}

.au-sidebar-collapsed {
  width: 60px;
}

.au-sidebar-header {
  padding: var(--au-space-4);
  border-bottom: 1px solid var(--au-border);
  font-weight: 600;
  font-size: var(--au-font-size-lg);
  flex-shrink: 0;
}

.au-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--au-space-2) 0;
}

.au-sidebar-footer {
  padding: var(--au-space-4);
  border-top: 1px solid var(--au-border);
  flex-shrink: 0;
}

.au-sidebar-item {
  display: flex;
  align-items: center;
  gap: var(--au-space-3);
  padding: var(--au-space-3) var(--au-space-4);
  color: var(--au-text-secondary);
  transition: all var(--au-transition-fast);
  cursor: pointer;
  border-left: 3px solid transparent;
}

.au-sidebar-item:hover {
  background: var(--au-accent-subtle);
  color: var(--au-text-primary);
  border-left-color: var(--au-accent);
}

.au-sidebar-item.active {
  background: var(--au-accent-subtle);
  color: var(--au-accent);
  border-left-color: var(--au-accent);
}

.au-sidebar-divider {
  height: 1px;
  background: var(--au-border);
  margin: var(--au-space-2) var(--au-space-4);
}

.au-sidebar-collapsed .au-sidebar-item {
  justify-content: center;
  padding: var(--au-space-3);
}

.au-sidebar-collapsed .au-sidebar-item span {
  display: none;
}

/* ============================================================================
   CHAT MESSAGES
   ============================================================================ */
.au-message {
  display: flex;
  gap: var(--au-space-3);
  padding: var(--au-space-4);
  border-radius: var(--au-radius-md);
  margin-bottom: var(--au-space-2);
  animation: au-slide-up var(--au-transition-normal);
}

.au-message-user {
  background: rgba(90, 140, 135, 0.08);
  border-left: 3px solid var(--au-accent);
}

.au-message-assistant {
  background: var(--au-bg-elevated);
  border-left: 3px solid var(--au-border);
}

.au-message-avatar {
  flex-shrink: 0;
}

.au-message-content {
  flex: 1;
  min-width: 0;
}

.au-message-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--au-space-2);
}

.au-message-author {
  font-weight: 600;
  font-size: var(--au-font-size-sm);
  color: var(--au-text-primary);
}

.au-message-time {
  font-size: var(--au-font-size-xs);
  color: var(--au-text-muted);
}

.au-message-body {
  color: var(--au-text-secondary);
  line-height: var(--au-line-height-relaxed);
}

.au-thinking-block {
  background: rgba(88, 166, 255, 0.08);
  border: 1px solid rgba(88, 166, 255, 0.2);
  border-radius: var(--au-radius-md);
  padding: var(--au-space-4);
  margin: var(--au-space-3) 0;
  position: relative;
}

.au-thinking-block::before {
  content: "Thinking";
  position: absolute;
  top: var(--au-space-2);
  left: var(--au-space-3);
  font-size: var(--au-font-size-xs);
  font-weight: 600;
  color: var(--au-info);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.au-thinking-content {
  margin-top: var(--au-space-5);
  font-family: var(--au-font-mono);
  font-size: var(--au-font-size-sm);
  color: var(--au-text-muted);
  white-space: pre-wrap;
}

.au-tool-block {
  background: rgba(210, 153, 34, 0.08);
  border: 1px solid rgba(210, 153, 34, 0.2);
  border-radius: var(--au-radius-md);
  padding: var(--au-space-4);
  margin: var(--au-space-3) 0;
  position: relative;
}

.au-tool-block::before {
  content: "Tool Execution";
  position: absolute;
  top: var(--au-space-2);
  left: var(--au-space-3);
  font-size: var(--au-font-size-xs);
  font-weight: 600;
  color: var(--au-warning);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.au-tool-content {
  margin-top: var(--au-space-5);
  font-family: var(--au-font-mono);
  font-size: var(--au-font-size-sm);
}

.au-tool-status {
  display: inline-flex;
  align-items: center;
  gap: var(--au-space-2);
  margin-top: var(--au-space-3);
  padding: var(--au-space-2) var(--au-space-3);
  background: var(--au-bg-overlay);
  border-radius: var(--au-radius-sm);
  font-size: var(--au-font-size-xs);
  font-weight: 500;
}

.au-tool-status-success {
  color: var(--au-success);
}

.au-tool-status-error {
  color: var(--au-error);
}

/* ============================================================================
   TOP BAR
   ============================================================================ */
.au-topbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--au-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--au-space-5);
  z-index: var(--au-z-sticky);
}

.au-topbar-brand {
  display: flex;
  align-items: center;
  gap: var(--au-space-3);
  font-weight: 600;
  font-size: var(--au-font-size-lg);
  color: var(--au-text-primary);
}

.au-topbar-brand-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--au-accent);
  border-radius: var(--au-radius-md);
  color: var(--au-text-primary);
  font-weight: 700;
}

.au-topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--au-space-3);
}

/* ============================================================================
   TABLES
   ============================================================================ */
.au-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--au-bg-elevated);
  border: 1px solid var(--au-border);
  border-radius: var(--au-radius-lg);
  overflow: hidden;
}

.au-table thead {
  background: var(--au-bg-surface);
  border-bottom: 1px solid var(--au-border);
}

.au-table th {
  padding: var(--au-space-3) var(--au-space-4);
  text-align: left;
  font-size: var(--au-font-size-sm);
  font-weight: 600;
  color: var(--au-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.au-table td {
  padding: var(--au-space-3) var(--au-space-4);
  border-top: 1px solid var(--au-border);
  color: var(--au-text-primary);
}

.au-table tbody tr:hover {
  background: var(--au-accent-subtle);
}

.au-table-striped tbody tr:nth-child(even) {
  background: rgba(240, 246, 252, 0.02);
}

/* ============================================================================
   TOOLTIPS
   ============================================================================ */
.au-tooltip {
  position: absolute;
  background: var(--au-bg-overlay);
  border: 1px solid var(--au-border-hover);
  border-radius: var(--au-radius-md);
  padding: var(--au-space-2) var(--au-space-3);
  font-size: var(--au-font-size-sm);
  color: var(--au-text-primary);
  box-shadow: var(--au-shadow-md);
  z-index: var(--au-z-tooltip);
  pointer-events: none;
  white-space: nowrap;
  animation: au-fade-in var(--au-transition-fast);
}

/* ============================================================================
   LAYOUT UTILITIES
   ============================================================================ */
.au-layout-chat {
  display: grid;
  grid-template-columns: 260px 1fr 300px;
  height: 100vh;
  overflow: hidden;
}

.au-layout-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--au-space-5);
  padding: var(--au-space-5);
}

.au-layout-centered {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--au-space-5);
}

.au-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--au-space-5);
}

/* Flexbox utilities */
.au-flex { display: flex; }
.au-flex-col { flex-direction: column; }
.au-flex-row { flex-direction: row; }
.au-flex-wrap { flex-wrap: wrap; }
.au-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.au-items-start { align-items: flex-start; }
.au-items-center { align-items: center; }
.au-items-end { align-items: flex-end; }
.au-items-stretch { align-items: stretch; }
.au-justify-start { justify-content: flex-start; }
.au-justify-center { justify-content: center; }
.au-justify-end { justify-content: flex-end; }
.au-justify-between { justify-content: space-between; }
.au-justify-around { justify-content: space-around; }

/* Gap utilities */
.au-gap-1 { gap: var(--au-space-1); }
.au-gap-2 { gap: var(--au-space-2); }
.au-gap-3 { gap: var(--au-space-3); }
.au-gap-4 { gap: var(--au-space-4); }
.au-gap-5 { gap: var(--au-space-5); }
.au-gap-6 { gap: var(--au-space-6); }

/* Spacing utilities */
.au-m-0 { margin: 0; }
.au-m-1 { margin: var(--au-space-1); }
.au-m-2 { margin: var(--au-space-2); }
.au-m-3 { margin: var(--au-space-3); }
.au-m-4 { margin: var(--au-space-4); }
.au-m-5 { margin: var(--au-space-5); }
.au-m-6 { margin: var(--au-space-6); }

.au-mt-0 { margin-top: 0; }
.au-mt-1 { margin-top: var(--au-space-1); }
.au-mt-2 { margin-top: var(--au-space-2); }
.au-mt-3 { margin-top: var(--au-space-3); }
.au-mt-4 { margin-top: var(--au-space-4); }
.au-mt-5 { margin-top: var(--au-space-5); }
.au-mt-6 { margin-top: var(--au-space-6); }

.au-mb-0 { margin-bottom: 0; }
.au-mb-1 { margin-bottom: var(--au-space-1); }
.au-mb-2 { margin-bottom: var(--au-space-2); }
.au-mb-3 { margin-bottom: var(--au-space-3); }
.au-mb-4 { margin-bottom: var(--au-space-4); }
.au-mb-5 { margin-bottom: var(--au-space-5); }
.au-mb-6 { margin-bottom: var(--au-space-6); }

.au-p-0 { padding: 0; }
.au-p-1 { padding: var(--au-space-1); }
.au-p-2 { padding: var(--au-space-2); }
.au-p-3 { padding: var(--au-space-3); }
.au-p-4 { padding: var(--au-space-4); }
.au-p-5 { padding: var(--au-space-5); }
.au-p-6 { padding: var(--au-space-6); }

/* Visibility utilities */
.au-hidden { display: none !important; }
.au-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================ */

/* Mobile first approach - base styles above are for mobile */

/* sm: 640px */
@media (max-width: 639px) {
  .au-hide-mobile { display: none !important; }
  .au-show-mobile { display: block !important; }
}

@media (min-width: 640px) {
  :root {
    --au-font-size-xs: 0.75rem;
    --au-font-size-sm: 0.8125rem;
    --au-font-size-md: 0.875rem;
    --au-font-size-lg: 1rem;
    --au-font-size-xl: 1.25rem;
    --au-font-size-2xl: 1.5rem;
  }
}

/* md: 768px */
@media (max-width: 767px) {
  .au-hide-tablet { display: none !important; }
  .au-show-tablet { display: block !important; }

  .au-layout-chat {
    grid-template-columns: 1fr;
  }

  .au-sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    z-index: var(--au-z-fixed);
    transition: left var(--au-transition-normal);
  }

  body.au-sidebar-open .au-sidebar {
    left: 0;
    box-shadow: var(--au-shadow-lg);
  }

  .au-layout-dashboard {
    grid-template-columns: 1fr;
  }

  .au-modal {
    max-width: 100%;
    border-radius: var(--au-radius-lg);
  }
}

@media (min-width: 768px) {
  .au-show-mobile { display: none !important; }
  .au-show-tablet { display: none !important; }

  .au-layout-chat {
    grid-template-columns: 260px 1fr;
  }

  .au-layout-dashboard {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* lg: 1024px */
@media (min-width: 1024px) {
  .au-layout-chat {
    grid-template-columns: 260px 1fr 300px;
  }

  .au-container {
    max-width: 1280px;
  }
}

/* xl: 1280px */
@media (min-width: 1280px) {
  .au-container {
    max-width: 1400px;
  }
}

/* 2xl: 1536px */
@media (min-width: 1536px) {
  .au-container {
    max-width: 1600px;
  }
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */
@keyframes au-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes au-slide-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes au-slide-right {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes au-slide-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes au-pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes au-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes au-skeleton {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Animation utility classes */
.au-animate-in {
  animation: au-slide-up var(--au-transition-normal);
}

.au-animate-pulse {
  animation: au-pulse 2s ease-in-out infinite;
}

.au-animate-spin {
  animation: au-spin 1s linear infinite;
}

.au-skeleton {
  background: linear-gradient(
    90deg,
    var(--au-bg-elevated) 0%,
    var(--au-bg-overlay) 50%,
    var(--au-bg-elevated) 100%
  );
  background-size: 200% 100%;
  animation: au-skeleton 1.5s ease-in-out infinite;
  border-radius: var(--au-radius-md);
}

/* ============================================================================
   DIVIDERS
   ============================================================================ */
.au-divider {
  height: 1px;
  background: var(--au-border);
  border: none;
  margin: var(--au-space-4) 0;
}

.au-divider-vertical {
  width: 1px;
  height: auto;
  background: var(--au-border);
  margin: 0 var(--au-space-4);
}

/* ============================================================================
   LOADING SPINNER
   ============================================================================ */
.au-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--au-border);
  border-top-color: var(--au-accent);
  border-radius: var(--au-radius-full);
  animation: au-spin 0.8s linear infinite;
}

.au-spinner-sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.au-spinner-lg {
  width: 32px;
  height: 32px;
  border-width: 3px;
}

/* ============================================================================
   CODE BLOCKS & MARKDOWN CONTENT
   ============================================================================ */
.au-code-inline {
  background: var(--au-accent-subtle);
  padding: 2px 6px;
  border-radius: var(--au-radius-sm);
  font-family: var(--au-font-mono);
  font-size: 0.9em;
  color: var(--au-accent);
}

.au-code-block {
  background: var(--au-bg-surface);
  border: 1px solid var(--au-border);
  border-radius: var(--au-radius-md);
  padding: var(--au-space-4);
  overflow-x: auto;
  font-family: var(--au-font-mono);
  font-size: var(--au-font-size-sm);
  line-height: var(--au-line-height-relaxed);
}

.au-markdown-content h1,
.au-markdown-content h2,
.au-markdown-content h3,
.au-markdown-content h4,
.au-markdown-content h5,
.au-markdown-content h6 {
  font-weight: 600;
  margin-top: var(--au-space-5);
  margin-bottom: var(--au-space-3);
  line-height: var(--au-line-height-tight);
}

.au-markdown-content h1 { font-size: var(--au-font-size-3xl); }
.au-markdown-content h2 { font-size: var(--au-font-size-2xl); }
.au-markdown-content h3 { font-size: var(--au-font-size-xl); }
.au-markdown-content h4 { font-size: var(--au-font-size-lg); }

.au-markdown-content p {
  margin-bottom: var(--au-space-4);
  line-height: var(--au-line-height-relaxed);
}

.au-markdown-content ul,
.au-markdown-content ol {
  margin-bottom: var(--au-space-4);
  padding-left: var(--au-space-5);
  list-style: disc;
}

.au-markdown-content ol {
  list-style: decimal;
}

.au-markdown-content li {
  margin-bottom: var(--au-space-2);
}

.au-markdown-content code {
  background: var(--au-accent-subtle);
  padding: 2px 6px;
  border-radius: var(--au-radius-sm);
  font-family: var(--au-font-mono);
  font-size: 0.9em;
}

.au-markdown-content pre {
  background: var(--au-bg-surface);
  border: 1px solid var(--au-border);
  border-radius: var(--au-radius-md);
  padding: var(--au-space-4);
  overflow-x: auto;
  margin-bottom: var(--au-space-4);
}

.au-markdown-content pre code {
  background: none;
  padding: 0;
  font-size: var(--au-font-size-sm);
}

.au-markdown-content blockquote {
  border-left: 3px solid var(--au-accent);
  padding-left: var(--au-space-4);
  margin: var(--au-space-4) 0;
  color: var(--au-text-secondary);
  font-style: italic;
}

.au-markdown-content a {
  color: var(--au-accent);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--au-transition-fast);
}

.au-markdown-content a:hover {
  text-decoration-color: var(--au-accent);
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */
@media print {
  body {
    background: white;
    color: black;
  }

  .au-sidebar,
  .au-topbar,
  .au-btn,
  .au-modal-overlay,
  .au-tooltip {
    display: none !important;
  }

  .au-card,
  .au-panel {
    border: 1px solid #ddd;
    box-shadow: none;
  }

  .au-layout-chat {
    display: block;
  }

  * {
    color: black !important;
    background: white !important;
  }

  a {
    text-decoration: underline;
  }
}

/* ============================================================================
   UTILITY OVERRIDES
   ============================================================================ */
.au-w-full { width: 100%; }
.au-h-full { height: 100%; }
.au-max-w-full { max-width: 100%; }
.au-overflow-hidden { overflow: hidden; }
.au-overflow-auto { overflow: auto; }
.au-overflow-scroll { overflow: scroll; }

.au-relative { position: relative; }
.au-absolute { position: absolute; }
.au-fixed { position: fixed; }
.au-sticky { position: sticky; }

.au-inset-0 { inset: 0; }
.au-top-0 { top: 0; }
.au-right-0 { right: 0; }
.au-bottom-0 { bottom: 0; }
.au-left-0 { left: 0; }

.au-z-0 { z-index: 0; }
.au-z-10 { z-index: 10; }
.au-z-20 { z-index: 20; }
.au-z-30 { z-index: 30; }
.au-z-40 { z-index: 40; }
.au-z-50 { z-index: 50; }

.au-opacity-0 { opacity: 0; }
.au-opacity-50 { opacity: 0.5; }
.au-opacity-100 { opacity: 1; }

.au-pointer-events-none { pointer-events: none; }
.au-cursor-pointer { cursor: pointer; }
.au-cursor-not-allowed { cursor: not-allowed; }

.au-select-none { user-select: none; }
.au-select-all { user-select: all; }

/* Border utilities */
.au-border { border: 1px solid var(--au-border); }
.au-border-t { border-top: 1px solid var(--au-border); }
.au-border-r { border-right: 1px solid var(--au-border); }
.au-border-b { border-bottom: 1px solid var(--au-border); }
.au-border-l { border-left: 1px solid var(--au-border); }

.au-rounded-sm { border-radius: var(--au-radius-sm); }
.au-rounded-md { border-radius: var(--au-radius-md); }
.au-rounded-lg { border-radius: var(--au-radius-lg); }
.au-rounded-xl { border-radius: var(--au-radius-xl); }
.au-rounded-full { border-radius: var(--au-radius-full); }

/* Background utilities */
.au-bg-base { background-color: var(--au-bg-base); }
.au-bg-surface { background-color: var(--au-bg-surface); }
.au-bg-elevated { background-color: var(--au-bg-elevated); }
.au-bg-overlay { background-color: var(--au-bg-overlay); }
.au-bg-accent { background-color: var(--au-accent); }
.au-bg-success { background-color: var(--au-success); }
.au-bg-warning { background-color: var(--au-warning); }
.au-bg-error { background-color: var(--au-error); }
.au-bg-info { background-color: var(--au-info); }

/* Shadow utilities */
.au-shadow-sm { box-shadow: var(--au-shadow-sm); }
.au-shadow-md { box-shadow: var(--au-shadow-md); }
.au-shadow-lg { box-shadow: var(--au-shadow-lg); }
.au-shadow-glow { box-shadow: var(--au-shadow-glow); }
.au-shadow-none { box-shadow: none; }

/* Transition utilities */
.au-transition { transition: all var(--au-transition-normal); }
.au-transition-fast { transition: all var(--au-transition-fast); }
.au-transition-slow { transition: all var(--au-transition-slow); }

/* ============================================================================
   NAVBAR (Landing / Marketing)
   ============================================================================ */
.au-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--au-z-sticky);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--au-space-7);
  height: 64px;
  background: rgba(6, 8, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(90, 140, 135, 0.08);
}

.au-navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--au-space-3);
  font-family: var(--au-font-mono);
  font-weight: 600;
  font-size: var(--au-font-size-lg);
  letter-spacing: 0.12em;
  color: var(--au-text-primary);
}

.au-navbar-brand img {
  width: 28px;
  height: 28px;
  border-radius: var(--au-radius-sm);
}

.au-navbar-links {
  display: flex;
  align-items: center;
  gap: var(--au-space-6);
}

.au-navbar-links a {
  font-size: var(--au-font-size-md);
  font-weight: 400;
  color: var(--au-text-secondary);
  transition: color var(--au-transition-fast);
}

.au-navbar-links a:hover {
  color: var(--au-text-primary);
}

.au-navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--au-space-3);
}

.au-navbar-hamburger {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--au-radius-md);
  color: var(--au-text-secondary);
  cursor: pointer;
}

@media (max-width: 767px) {
  .au-navbar {
    padding: 0 var(--au-space-4);
  }
  .au-navbar-links {
    display: none;
  }
  .au-navbar-hamburger {
    display: flex;
  }
}

/* ============================================================================
   HERO SPLIT LAYOUT
   ============================================================================ */
.au-hero-split {
  display: flex;
  align-items: center;
  gap: var(--au-space-8);
  min-height: 85vh;
  padding: 100px var(--au-space-7) var(--au-space-8);
  max-width: 1280px;
  margin: 0 auto;
}

.au-hero-split-text {
  flex: 1;
  min-width: 0;
}

.au-hero-split-image {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.au-hero-split-image img {
  width: 100%;
  max-width: 560px;
  border-radius: var(--au-radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(90, 140, 135, 0.1);
}

.au-hero-title {
  font-family: var(--au-font-sans);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--au-text-primary);
  margin-bottom: var(--au-space-4);
}

.au-hero-title-accent {
  color: var(--au-accent);
}

.au-hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--au-text-secondary);
  line-height: var(--au-line-height-relaxed);
  margin-bottom: var(--au-space-6);
  max-width: 520px;
}

.au-hero-stats {
  display: flex;
  gap: var(--au-space-4);
  flex-wrap: wrap;
  margin-top: var(--au-space-5);
  font-family: var(--au-font-mono);
  font-size: var(--au-font-size-sm);
  color: var(--au-text-muted);
}

.au-hero-stats strong {
  color: var(--au-accent);
  font-weight: 600;
}

@media (max-width: 960px) {
  .au-hero-split {
    flex-direction: column;
    text-align: center;
    padding: 100px var(--au-space-5) var(--au-space-7);
    gap: var(--au-space-7);
  }
  .au-hero-subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .au-hero-stats {
    justify-content: center;
  }
}

/* ============================================================================
   META PILLS (FILES, PROTOCOLS, TOOLS)
   ============================================================================ */
.au-meta-pills {
  display: flex;
  gap: var(--au-space-3);
  flex-wrap: wrap;
  margin-bottom: var(--au-space-5);
}

.au-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--au-space-2);
  padding: var(--au-space-2) var(--au-space-4);
  background: rgba(90, 140, 135, 0.08);
  border: 1px solid rgba(90, 140, 135, 0.2);
  border-radius: var(--au-radius-full);
  font-family: var(--au-font-mono);
  font-size: var(--au-font-size-sm);
  font-weight: 500;
  color: var(--au-accent);
  transition: all var(--au-transition-fast);
  cursor: default;
}

.au-meta-pill:hover {
  background: rgba(90, 140, 135, 0.14);
  border-color: var(--au-accent);
  box-shadow: var(--au-shadow-glow);
}

.au-meta-pill-icon {
  width: 6px;
  height: 6px;
  border-radius: var(--au-radius-full);
  background: var(--au-accent);
}

/* ============================================================================
   TERMINAL WINDOW
   ============================================================================ */
.au-terminal-window {
  background: var(--au-bg-surface);
  border: 1px solid var(--au-border);
  border-radius: var(--au-radius-lg);
  overflow: hidden;
  box-shadow: var(--au-shadow-lg);
}

.au-terminal-header {
  display: flex;
  align-items: center;
  gap: var(--au-space-3);
  padding: var(--au-space-3) var(--au-space-4);
  background: var(--au-bg-elevated);
  border-bottom: 1px solid var(--au-border);
}

.au-terminal-dots {
  display: flex;
  gap: 6px;
}

.au-terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--au-radius-full);
}

.au-terminal-dot-red { background: #ff5f57; }
.au-terminal-dot-yellow { background: #febc2e; }
.au-terminal-dot-green { background: #28c840; }

.au-terminal-title {
  font-family: var(--au-font-mono);
  font-size: var(--au-font-size-xs);
  color: var(--au-text-muted);
  margin-left: auto;
  margin-right: auto;
}

.au-terminal-body {
  padding: var(--au-space-5);
  font-family: var(--au-font-mono);
  font-size: var(--au-font-size-sm);
  line-height: 1.8;
  color: var(--au-text-secondary);
  min-height: 200px;
}

.au-terminal-line {
  margin-bottom: var(--au-space-2);
}

.au-terminal-prompt {
  color: var(--au-accent);
  font-weight: 500;
}

.au-terminal-cmd {
  color: var(--au-text-primary);
}

.au-terminal-output {
  color: var(--au-text-muted);
  padding-left: var(--au-space-4);
}

.au-terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--au-accent);
  margin-left: 2px;
  animation: au-pulse 1.2s ease-in-out infinite;
  vertical-align: text-bottom;
}

/* ============================================================================
   CTA BAR
   ============================================================================ */
.au-cta-bar {
  background: rgba(13, 17, 23, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(90, 140, 135, 0.1);
  border-bottom: 1px solid rgba(90, 140, 135, 0.1);
  padding: var(--au-space-7) var(--au-space-5);
  text-align: center;
}

.au-cta-bar-inner {
  max-width: 800px;
  margin: 0 auto;
}

.au-cta-bar-text {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--au-text-secondary);
  margin-bottom: var(--au-space-5);
  line-height: var(--au-line-height-relaxed);
}

.au-cta-bar-actions {
  display: flex;
  gap: var(--au-space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================================
   FULL FOOTER
   ============================================================================ */
.au-footer-full {
  border-top: 1px solid var(--au-border);
  padding: var(--au-space-7) var(--au-space-5) var(--au-space-5);
  background: var(--au-bg-surface);
}

.au-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--au-space-7);
  max-width: 1200px;
  margin: 0 auto var(--au-space-6);
}

.au-footer-brand-text {
  font-size: var(--au-font-size-sm);
  color: var(--au-text-muted);
  line-height: var(--au-line-height-relaxed);
  max-width: 300px;
}

.au-footer-col-title {
  font-size: var(--au-font-size-sm);
  font-weight: 600;
  color: var(--au-text-primary);
  margin-bottom: var(--au-space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.au-footer-col a {
  display: block;
  font-size: var(--au-font-size-sm);
  color: var(--au-text-secondary);
  margin-bottom: var(--au-space-2);
  transition: color var(--au-transition-fast);
}

.au-footer-col a:hover {
  color: var(--au-accent);
}

.au-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: var(--au-space-5);
  border-top: 1px solid var(--au-border);
  font-size: var(--au-font-size-xs);
  color: var(--au-text-muted);
}

.au-footer-social {
  display: flex;
  gap: var(--au-space-4);
}

.au-footer-social a {
  color: var(--au-text-muted);
  transition: color var(--au-transition-fast);
}

.au-footer-social a:hover {
  color: var(--au-accent);
}

@media (max-width: 767px) {
  .au-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--au-space-5);
  }
  .au-footer-bottom {
    flex-direction: column;
    gap: var(--au-space-3);
    text-align: center;
  }
}

/* ============================================================================
   SEARCH BAR
   ============================================================================ */
.au-search-bar {
  position: relative;
  width: 100%;
}

.au-search-bar input {
  width: 100%;
  padding: var(--au-space-3) var(--au-space-4) var(--au-space-3) var(--au-space-7);
  background: rgba(13, 17, 23, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--au-border);
  border-radius: var(--au-radius-lg);
  color: var(--au-text-primary);
  font-size: var(--au-font-size-md);
  transition: all var(--au-transition-fast);
}

.au-search-bar input:focus {
  outline: none;
  border-color: var(--au-accent);
  box-shadow: 0 0 0 3px var(--au-accent-subtle);
}

.au-search-bar input::placeholder {
  color: var(--au-text-muted);
}

.au-search-bar-icon {
  position: absolute;
  left: var(--au-space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--au-text-muted);
  pointer-events: none;
}

.au-search-bar-shortcut {
  position: absolute;
  right: var(--au-space-3);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  background: var(--au-bg-elevated);
  border: 1px solid var(--au-border);
  border-radius: var(--au-radius-sm);
  font-family: var(--au-font-mono);
  font-size: var(--au-font-size-xs);
  color: var(--au-text-muted);
  pointer-events: none;
}

/* ============================================================================
   GAUGE (SVG Circular)
   ============================================================================ */
.au-gauge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.au-gauge svg {
  transform: rotate(-90deg);
}

.au-gauge-bg {
  fill: none;
  stroke: var(--au-bg-elevated);
  stroke-width: 6;
}

.au-gauge-fill {
  fill: none;
  stroke: var(--au-accent);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}

.au-gauge-label {
  position: absolute;
  font-family: var(--au-font-mono);
  font-size: var(--au-font-size-lg);
  font-weight: 600;
  color: var(--au-text-primary);
}

/* ============================================================================
   STORAGE WIDGET
   ============================================================================ */
.au-storage-widget {
  padding: var(--au-space-4);
  background: var(--au-bg-elevated);
  border: 1px solid var(--au-border);
  border-radius: var(--au-radius-md);
}

.au-storage-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--au-space-3);
  font-size: var(--au-font-size-sm);
  font-weight: 500;
  color: var(--au-text-secondary);
}

.au-storage-bar {
  width: 100%;
  height: 6px;
  background: var(--au-bg-overlay);
  border-radius: var(--au-radius-full);
  overflow: hidden;
}

.au-storage-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--au-accent), var(--au-accent-hover));
  border-radius: var(--au-radius-full);
  transition: width 0.5s ease;
}

.au-storage-info {
  display: flex;
  justify-content: space-between;
  margin-top: var(--au-space-2);
  font-size: var(--au-font-size-xs);
  color: var(--au-text-muted);
}

/* ============================================================================
   SECTION CONTAINERS
   ============================================================================ */
.au-section {
  padding: var(--au-space-8) var(--au-space-5);
  position: relative;
  z-index: 1;
}

.au-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.au-section-title {
  font-size: var(--au-font-size-2xl);
  font-weight: 600;
  color: var(--au-text-primary);
  margin-bottom: var(--au-space-3);
}

.au-section-subtitle {
  font-size: var(--au-font-size-md);
  color: var(--au-text-secondary);
  margin-bottom: var(--au-space-6);
  max-width: 600px;
}

@media (max-width: 767px) {
  .au-section {
    padding: var(--au-space-7) var(--au-space-4);
  }
}

/* ============================================================================
   FEATURE CARDS GRID
   ============================================================================ */
.au-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--au-space-5);
}

.au-feature-card {
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(90, 140, 135, 0.1);
  border-radius: var(--au-radius-lg);
  padding: var(--au-space-6);
  transition: all var(--au-transition-normal);
}

.au-feature-card:hover {
  border-color: rgba(90, 140, 135, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.au-feature-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--au-accent-subtle);
  border: 1px solid rgba(90, 140, 135, 0.2);
  border-radius: var(--au-radius-md);
  margin-bottom: var(--au-space-4);
  color: var(--au-accent);
  font-size: 20px;
}

.au-feature-card h3 {
  font-size: var(--au-font-size-lg);
  font-weight: 600;
  margin-bottom: var(--au-space-2);
}

.au-feature-card p {
  font-size: var(--au-font-size-md);
  color: var(--au-text-secondary);
  line-height: var(--au-line-height-relaxed);
}

/* ============================================================================
   TYPING ANIMATION
   ============================================================================ */
@keyframes au-typing {
  from { width: 0; }
  to { width: 100%; }
}

.au-typing {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--au-accent);
  animation: au-typing 2s steps(40, end), au-pulse 1.2s ease-in-out infinite;
}

/* ============================================================================
   END OF AURELIUS DESIGN SYSTEM
   ============================================================================ */
