/* ═══════════════════════════════════════════
       CSS RESET & BASE
       ═══════════════════════════════════════════ */
    *, *::before, *::after {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    :root {
      --bg-primary: #0a0a0f;
      --bg-card: rgba(255, 255, 255, 0.03);
      --bg-card-hover: rgba(255, 255, 255, 0.06);
      --bg-input: rgba(255, 255, 255, 0.05);
      --bg-input-focus: rgba(255, 255, 255, 0.08);
      --border-subtle: rgba(255, 255, 255, 0.06);
      --border-card: rgba(255, 255, 255, 0.08);
      --border-input: rgba(255, 255, 255, 0.1);
      --border-focus: rgba(139, 92, 246, 0.5);
      --text-primary: #f0f0f5;
      --text-secondary: #8a8a9a;
      --text-muted: #55556a;
      --gradient-main: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
      --gradient-btn: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
      --gradient-btn-hover: linear-gradient(135deg, #7c7ff7 0%, #a78bfa 50%, #22d3ee 100%);
      --green: #10b981;
      --red: #ef4444;
      --yellow: #f59e0b;
      --blue: #3b82f6;
      --radius-sm: 8px;
      --radius-md: 12px;
      --radius-lg: 16px;
      --radius-xl: 20px;
      --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
      --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
      --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    html {
      scroll-behavior: smooth;
    }

    html, body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      background-color: #0a0a0f !important;
      background: #0a0a0f !important;
      color: #f0f0f5 !important;
      min-height: 100vh;
      line-height: 1.6;
      overflow-x: hidden;
    }

    /* Background effects */
    body::before {
      content: '';
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 50%, rgba(6, 182, 212, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 90%, rgba(139, 92, 246, 0.05) 0%, transparent 60%);
      pointer-events: none;
      z-index: 0;
    }

    /* ═══════════════════════════════════════════
       LAYOUT
       ═══════════════════════════════════════════ */
    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px;
      position: relative;
      z-index: 1;
    }

    /* ═══════════════════════════════════════════
       HEADER
       ═══════════════════════════════════════════ */
    .header {
      text-align: center;
      padding: 60px 0 48px;
    }

    .header__title {
      font-size: clamp(2rem, 5vw, 3.2rem);
      font-weight: 900;
      letter-spacing: -0.03em;
      background: var(--gradient-main);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      background-size: 200% 200%;
      animation: gradientShift 4s ease-in-out infinite;
      margin-bottom: 12px;
    }

    .header__subtitle {
      font-size: 1.05rem;
      color: var(--text-secondary);
      font-weight: 400;
      letter-spacing: 0.01em;
    }

    .header__badge {
      display: inline-block;
      margin-top: 16px;
      padding: 6px 16px;
      border-radius: 50px;
      background: rgba(99, 102, 241, 0.1);
      border: 1px solid rgba(99, 102, 241, 0.2);
      font-size: 0.8rem;
      color: #a78bfa;
      font-weight: 500;
      letter-spacing: 0.05em;
    }

    @keyframes gradientShift {
      0%, 100% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
    }

    /* ═══════════════════════════════════════════
       GLASS CARD
       ═══════════════════════════════════════════ */
    .card {
      background: var(--bg-card);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid var(--border-card);
      border-radius: var(--radius-xl);
      padding: 32px;
      margin-bottom: 28px;
      box-shadow: var(--shadow-card);
      transition: var(--transition);
      opacity: 1;
      transform: translateY(0);
    }

    .card.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .card:hover {
      border-color: rgba(255, 255, 255, 0.12);
      box-shadow: var(--shadow-card), var(--shadow-glow);
      transform: translateY(-2px);
    }

    .card.visible:hover {
      transform: translateY(-2px);
    }

    .card__header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 28px;
      padding-bottom: 20px;
      border-bottom: 1px solid var(--border-subtle);
    }

    .card__title {
      font-size: 1.25rem;
      font-weight: 800;
      color: #f8fafc !important;
      letter-spacing: -0.01em;
    }

    .card__desc {
      font-size: 0.88rem;
      color: #94a3b8 !important;
      margin-top: 2px;
    }

    .card__icon {
      font-size: 1.6rem;
      width: 48px;
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: var(--radius-md);
      background: rgba(99, 102, 241, 0.1);
      flex-shrink: 0;
    }

    .card__title {
      font-size: 1.3rem;
      font-weight: 700;
      letter-spacing: -0.02em;
    }

    .card__desc {
      font-size: 0.85rem;
      color: var(--text-secondary);
      margin-top: 2px;
    }

    /* ═══════════════════════════════════════════
       FORM ELEMENTS
       ═══════════════════════════════════════════ */
    .form-group-title {
      font-size: 0.75rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--text-muted);
      margin-bottom: 16px;
      margin-top: 28px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .form-group-title::before {
      content: '';
      display: inline-block;
      width: 3px;
      height: 14px;
      background: var(--gradient-main);
      border-radius: 2px;
    }

    .form-group-title:first-child {
      margin-top: 0;
    }

    .form-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 16px;
    }

    .form-field {
      position: relative;
    }

    .form-field label {
      display: block;
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--text-secondary);
      margin-bottom: 6px;
      letter-spacing: 0.02em;
    }

    .input-wrapper {
      position: relative;
      display: flex;
      align-items: center;
    }

    .form-field input {
      width: 100%;
      padding: 12px 16px;
      background: var(--bg-input);
      border: 1px solid var(--border-input);
      border-radius: var(--radius-sm);
      color: var(--text-primary);
      font-family: 'Inter', monospace;
      font-size: 0.9rem;
      transition: var(--transition);
      outline: none;
    }

    .form-field input:focus {
      background: var(--bg-input-focus);
      border-color: var(--border-focus);
      box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    }

    .form-field input::placeholder {
      color: var(--text-muted);
    }

    .form-field input[type="password"] {
      padding-right: 48px;
      font-family: 'Inter', sans-serif;
      letter-spacing: 0.15em;
    }

    .toggle-pass {
      position: absolute;
      right: 4px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: var(--text-muted);
      cursor: pointer;
      padding: 8px;
      border-radius: 6px;
      font-size: 1rem;
      transition: var(--transition);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .toggle-pass:hover {
      color: var(--text-secondary);
      background: rgba(255, 255, 255, 0.05);
    }

    /* ═══════════════════════════════════════════
       BUTTONS
       ═══════════════════════════════════════════ */
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 12px 28px;
      border: none;
      border-radius: var(--radius-sm);
      font-family: 'Inter', sans-serif;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
      letter-spacing: 0.01em;
    }

    .btn-primary {
      background: var(--gradient-btn);
      color: white;
      box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    }

    .btn-primary:hover {
      background: var(--gradient-btn-hover);
      box-shadow: 0 6px 24px rgba(99, 102, 241, 0.45);
      transform: translateY(-1px);
    }

    .btn-primary:active {
      transform: translateY(0);
    }

    .btn-secondary {
      background: rgba(255, 255, 255, 0.06);
      color: var(--text-primary);
      border: 1px solid var(--border-input);
    }

    .btn-secondary:hover {
      background: rgba(255, 255, 255, 0.1);
      border-color: rgba(255, 255, 255, 0.15);
    }

    .btn-group {
      display: flex;
      gap: 12px;
      margin-top: 28px;
    }

    @keyframes pulse-save {
      0% { box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3); }
      50% { box-shadow: 0 4px 30px rgba(99, 102, 241, 0.6); }
      100% { box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3); }
    }

    .btn-saving {
      animation: pulse-save 1s ease-in-out infinite;
      pointer-events: none;
    }

    .btn-success {
      background: linear-gradient(135deg, #10b981, #059669) !important;
      box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3) !important;
    }

    /* ═══════════════════════════════════════════
       DOCKER STATUS
       ═══════════════════════════════════════════ */
    .docker-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      gap: 16px;
    }

    .docker-card {
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      padding: 20px;
      transition: var(--transition);
    }

    .docker-card:hover {
      background: rgba(255, 255, 255, 0.04);
      border-color: rgba(255, 255, 255, 0.1);
    }

    .docker-card__header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }

    .docker-card__name {
      font-weight: 700;
      font-size: 0.95rem;
      letter-spacing: -0.01em;
    }

    .status-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .status-dot--running {
      background: var(--green);
      box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
      animation: pulse-dot 2s ease-in-out infinite;
    }

    .status-dot--stopped {
      background: var(--red);
      box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
    }

    .status-dot--starting {
      background: var(--yellow);
      box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
      animation: pulse-dot 1s ease-in-out infinite;
    }

    .status-dot--unknown {
      background: var(--text-muted);
    }

    @keyframes pulse-dot {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.6; transform: scale(1.3); }
    }

    .docker-card__detail {
      font-size: 0.8rem;
      color: var(--text-secondary);
      margin-top: 4px;
    }

    .docker-card__status {
      font-size: 0.8rem;
      font-weight: 600;
      margin-top: 8px;
      display: inline-block;
      padding: 3px 10px;
      border-radius: 50px;
    }

    .docker-card__status--running {
      background: rgba(16, 185, 129, 0.1);
      color: var(--green);
      border: 1px solid rgba(16, 185, 129, 0.2);
    }

    .docker-card__status--stopped {
      background: rgba(239, 68, 68, 0.1);
      color: var(--red);
      border: 1px solid rgba(239, 68, 68, 0.2);
    }

    .docker-card__status--starting {
      background: rgba(245, 158, 11, 0.1);
      color: var(--yellow);
      border: 1px solid rgba(245, 158, 11, 0.2);
    }

    .docker-warning {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 16px 20px;
      background: rgba(245, 158, 11, 0.06);
      border: 1px solid rgba(245, 158, 11, 0.15);
      border-radius: var(--radius-md);
      color: var(--yellow);
      font-size: 0.9rem;
    }

    /* ═══════════════════════════════════════════
       CHECKLIST
       ═══════════════════════════════════════════ */
    .checklist-group {
      margin-bottom: 24px;
    }

    .checklist-group:last-child {
      margin-bottom: 0;
    }

    .checklist-group__title {
      font-size: 0.75rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--text-muted);
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .checklist-group__title::before {
      content: '';
      display: inline-block;
      width: 3px;
      height: 14px;
      background: var(--gradient-main);
      border-radius: 2px;
    }

    .checklist-items {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 8px;
    }

    .checklist-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 14px;
      background: rgba(255, 255, 255, 0.015);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-sm);
      font-size: 0.85rem;
      font-family: 'Inter', monospace;
      transition: var(--transition);
    }

    .checklist-item:hover {
      background: rgba(255, 255, 255, 0.035);
    }

    .checklist-item__icon {
      font-size: 1rem;
      flex-shrink: 0;
    }

    .checklist-item--exists {
      border-color: rgba(16, 185, 129, 0.1);
    }

    .checklist-item--missing {
      border-color: rgba(239, 68, 68, 0.1);
      opacity: 0.7;
    }

    .checklist-summary {
      margin-top: 20px;
      padding: 16px 20px;
      background: rgba(99, 102, 241, 0.05);
      border: 1px solid rgba(99, 102, 241, 0.1);
      border-radius: var(--radius-md);
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .checklist-summary__bar {
      flex: 1;
      height: 6px;
      background: rgba(255, 255, 255, 0.05);
      border-radius: 3px;
      overflow: hidden;
    }

    .checklist-summary__fill {
      height: 100%;
      background: var(--gradient-main);
      border-radius: 3px;
      transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .checklist-summary__text {
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--text-secondary);
      white-space: nowrap;
    }

    /* ═══════════════════════════════════════════
       QUICK ACCESS
       ═══════════════════════════════════════════ */
    .access-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 16px;
    }

    .access-card {
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      padding: 24px 20px;
      text-align: center;
      transition: var(--transition);
      cursor: pointer;
      text-decoration: none;
      color: inherit;
      display: block;
      position: relative;
      overflow: hidden;
    }

    .access-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: var(--gradient-main);
      opacity: 0;
      transition: var(--transition);
    }

    .access-card:hover {
      background: rgba(255, 255, 255, 0.05);
      border-color: rgba(255, 255, 255, 0.12);
      transform: translateY(-4px);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

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

    .access-card__icon {
      font-size: 2rem;
      margin-bottom: 12px;
      display: block;
    }

    .access-card__name {
      font-weight: 700;
      font-size: 0.95rem;
      margin-bottom: 4px;
    }

    .access-card__port {
      font-size: 0.75rem;
      color: var(--text-muted);
      margin-bottom: 14px;
    }

    .access-card__btn {
      font-size: 0.8rem;
      font-weight: 600;
      color: #a78bfa;
      letter-spacing: 0.02em;
    }

    /* ═══════════════════════════════════════════
       TOAST NOTIFICATIONS
       ═══════════════════════════════════════════ */
    .toast-container {
      position: fixed;
      bottom: 24px;
      right: 24px;
      z-index: 9999;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .toast {
      padding: 14px 24px;
      border-radius: var(--radius-sm);
      font-size: 0.9rem;
      font-weight: 500;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      animation: toastIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      align-items: center;
      gap: 10px;
      max-width: 400px;
    }

    .toast--success {
      background: rgba(16, 185, 129, 0.15);
      border: 1px solid rgba(16, 185, 129, 0.3);
      color: #6ee7b7;
    }

    .toast--error {
      background: rgba(239, 68, 68, 0.15);
      border: 1px solid rgba(239, 68, 68, 0.3);
      color: #fca5a5;
    }

    .toast--info {
      background: rgba(99, 102, 241, 0.15);
      border: 1px solid rgba(99, 102, 241, 0.3);
      color: #c4b5fd;
    }

    .toast-exit {
      animation: toastOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    @keyframes toastIn {
      from { opacity: 0; transform: translateX(40px) scale(0.95); }
      to { opacity: 1; transform: translateX(0) scale(1); }
    }

    @keyframes toastOut {
      from { opacity: 1; transform: translateX(0) scale(1); }
      to { opacity: 0; transform: translateX(40px) scale(0.95); }
    }

    /* ═══════════════════════════════════════════
       FOOTER
       ═══════════════════════════════════════════ */
    .footer {
      text-align: center;
      padding: 48px 0 36px;
      border-top: 1px solid var(--border-subtle);
      margin-top: 20px;
    }

    .footer__text {
      font-size: 0.8rem;
      color: var(--text-muted);
    }

    .footer__version {
      font-weight: 600;
      background: var(--gradient-main);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    /* ═══════════════════════════════════════════
       LOADING SKELETON
       ═══════════════════════════════════════════ */
    .skeleton {
      background: linear-gradient(90deg,
        rgba(255,255,255,0.03) 25%,
        rgba(255,255,255,0.06) 50%,
        rgba(255,255,255,0.03) 75%);
      background-size: 200% 100%;
      animation: skeleton-shimmer 1.5s ease-in-out infinite;
      border-radius: var(--radius-sm);
    }

    @keyframes skeleton-shimmer {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }

    /* ═══════════════════════════════════════════
       RESPONSIVE
       ═══════════════════════════════════════════ */
    @media (max-width: 768px) {
      .container {
        padding: 0 16px;
      }

      .header {
        padding: 40px 0 32px;
      }

      .card {
        padding: 24px;
        border-radius: var(--radius-lg);
      }

      .form-grid {
        grid-template-columns: 1fr;
      }

      .docker-grid {
        grid-template-columns: 1fr 1fr;
      }

      .access-grid {
        grid-template-columns: 1fr 1fr;
      }

      .btn-group {
        flex-direction: column;
      }
    }

    @media (max-width: 480px) {
      .docker-grid {
        grid-template-columns: 1fr;
      }

      .access-grid {
        grid-template-columns: 1fr;
      }

      .checklist-items {
        grid-template-columns: 1fr;
      }
    }

    /* ═══════════════════════════════════════════
       SCROLLBAR
       ═══════════════════════════════════════════ */
    ::-webkit-scrollbar {
      width: 6px;
    }
    ::-webkit-scrollbar-track {
      background: transparent;
    }
    ::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.1);
      border-radius: 3px;
    }
    ::-webkit-scrollbar-thumb:hover {
      background: rgba(255, 255, 255, 0.2);
    }

    /* ═══════════════════════════════════════════
       MISC UTILITIES
       ═══════════════════════════════════════════ */
    .mt-4 { margin-top: 16px; }
    .mb-0 { margin-bottom: 0; }
    .text-center { text-align: center; }
    .flex-between { display: flex; align-items: center; justify-content: space-between; }

    .loading-spinner {
      display: inline-block;
      width: 16px;
      height: 16px;
      border: 2px solid rgba(255,255,255,0.2);
      border-top-color: #fff;
      border-radius: 50%;
      animation: spin 0.6s linear infinite;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    /* Section divider line */
    .divider {
      width: 60px;
      height: 3px;
      background: var(--gradient-main);
      border-radius: 2px;
      margin: 0 auto 40px;
    }
    /* Jarvis Voice Assistant Premium Styles */
    .jarvis-pulse-ring {
      position: absolute;
      width: 110px;
      height: 110px;
      border-radius: 50%;
      background: rgba(139, 92, 246, 0.2);
      z-index: 1;
      transform: scale(0.9);
      transition: all 0.3s;
      pointer-events: none;
    }
    .jarvis-pulse-ring.active {
      animation: jarvis-ripple 1.5s ease-out infinite;
    }
    @keyframes jarvis-ripple {
      0% { transform: scale(0.9); opacity: 1; }
      100% { transform: scale(1.6); opacity: 0; }
    }
    
    .chat-msg {
      padding: 10px 14px;
      border-radius: var(--radius-sm);
      font-size: 0.85rem;
      line-height: 1.5;
      animation: fadeIn 0.3s;
      border: 1px solid transparent;
      margin-bottom: 8px;
    }
    .chat-msg.user {
      background: rgba(99, 102, 241, 0.08);
      border-color: rgba(99, 102, 241, 0.15);
      border-left: 3px solid #6366f1;
      color: #c7d2fe;
      align-self: flex-end;
      width: fit-content;
      max-width: 85%;
    }
    .chat-msg.jarvis {
      background: rgba(139, 92, 246, 0.08);
      border-color: rgba(139, 92, 246, 0.15);
      border-left: 3px solid #8b5cf6;
      color: #ddd6fe;
      align-self: flex-start;
      width: fit-content;
      max-width: 85%;
    }
    .ptt-btn.recording {
      border-color: #ef4444 !important;
      color: #ef4444 !important;
      background: rgba(239, 68, 68, 0.1) !important;
      box-shadow: 0 0 30px rgba(239, 68, 68, 0.3) !important;
      animation: ptt-pulse 1.5s infinite;
    }
    @keyframes ptt-pulse {
      0% { transform: scale(1); }
      50% { transform: scale(1.06); }
      100% { transform: scale(1); }
    }

    /* ═══════════════════════════════════════════
       TABS DESIGN SYSTEM
       ═══════════════════════════════════════════ */
    .tabs-nav {
      display: flex;
      gap: 8px;
      margin: 0 auto 30px auto;
      padding: 6px;
      background: rgba(255, 255, 255, 0.02);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid var(--border-card);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-card);
      overflow-x: auto;
    }
    .tab-btn {
      flex: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 14px 20px;
      border: none;
      background: transparent;
      color: var(--text-secondary);
      font-size: 0.95rem;
      font-weight: 600;
      border-radius: var(--radius-md);
      cursor: pointer;
      transition: var(--transition);
      white-space: nowrap;
    }
    .tab-btn:hover {
      background: var(--bg-card-hover);
      color: var(--text-primary);
    }
    .tab-btn.active {
      background: var(--gradient-main);
      color: white;
      box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
    }
    .tab-content {
      display: none;
      animation: tab-fadeIn 0.4s ease-out;
    }
    .tab-content.active {
      display: block;
    }
    @keyframes tab-fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* ═══════════════════════════════════════════
       MAP & DETAILED DRAWER DESIGN
       ═══════════════════════════════════════════ */
    #map {
      height: 450px;
      border-radius: var(--radius-lg);
      border: 1px solid var(--border-card);
      box-shadow: var(--shadow-card);
      z-index: 5;
      background: #0d0d13;
    }
    .leaflet-popup-content-wrapper {
      background: rgba(15, 23, 42, 0.9) !important;
      backdrop-filter: blur(10px);
      border: 1px solid var(--border-card) !important;
      color: var(--text-primary) !important;
      border-radius: var(--radius-md) !important;
      box-shadow: var(--shadow-card) !important;
    }
    .leaflet-popup-tip {
      background: rgba(15, 23, 42, 0.9) !important;
      border: 1px solid var(--border-card) !important;
    }
    .leaflet-container {
      font-family: 'Inter', sans-serif !important;
    }
    .map-layout {
      display: grid;
      grid-template-columns: 1.8fr 1.2fr;
      gap: 24px;
    }
    @media (max-width: 992px) {
      .map-layout {
        grid-template-columns: 1fr;
      }
    }
    .lead-details-card {
      background: var(--bg-card);
      border: 1px solid var(--border-card);
      border-radius: var(--radius-lg);
      padding: 24px;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      backdrop-filter: blur(20px);
      box-shadow: var(--shadow-card);
      min-height: 450px;
    }
    .lead-score-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 54px;
      height: 54px;
      border-radius: 50%;
      font-size: 1.25rem;
      font-weight: 800;
      color: white;
      box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
      flex-shrink: 0;
    }
    .crew-log-terminal {
      background: rgba(0, 0, 0, 0.6);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-sm);
      font-family: 'Inter', monospace;
      font-size: 0.78rem;
      color: #38bdf8;
      padding: 12px;
      max-height: 180px;
      overflow-y: auto;
      white-space: pre-wrap;
      margin-top: 12px;
    }

/* Added from crm.html */
/* Content container tweak for standalone pages */
    .page-container {
      margin-top: 100px;
      padding: 0 24px;
      max-height: calc(100vh - 120px);
      overflow-y: auto;
    }
    .crm-tabs {
      display: flex;
      gap: 10px;
      margin-bottom: 16px;
      border-bottom: 1px solid rgba(255,255,255,0.06);
      padding-bottom: 8px;
    }
    .crm-tab-btn {
      background: none;
      border: none;
      color: var(--text-secondary);
      font-size: 0.9rem;
      font-weight: 600;
      padding: 8px 16px;
      cursor: pointer;
      border-radius: var(--radius-sm);
      transition: var(--transition);
    }
    .crm-tab-btn:hover {
      color: var(--text-primary);
      background: rgba(255,255,255,0.04);
    }
    .crm-tab-btn.active {
      color: #06b6d4;
      background: rgba(6, 182, 212, 0.1);
      box-shadow: inset 0 0 8px rgba(6, 182, 212, 0.15);
    }

    /* Kanban Board Styles */
    .kanban-board {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 14px;
      margin-top: 12px;
      align-items: start;
    }
    .kanban-column {
      background: rgba(10, 10, 15, 0.4);
      border: 1px solid rgba(255, 255, 255, 0.05);
      border-radius: var(--radius-md);
      padding: 12px;
      min-height: 520px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      transition: var(--transition);
    }
    .kanban-column.dragover {
      background: rgba(6, 182, 212, 0.08);
      border-color: rgba(6, 182, 212, 0.3);
      box-shadow: inset 0 0 12px rgba(6, 182, 212, 0.15);
    }
    .kanban-column-header {
      font-size: 0.72rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-secondary);
      padding-bottom: 8px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      margin-bottom: 4px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .kanban-column-badge {
      background: rgba(6, 182, 212, 0.12);
      color: #22d3ee;
      font-size: 0.7rem;
      padding: 2px 8px;
      border-radius: 20px;
      font-weight: 700;
      border: 1px solid rgba(6, 182, 212, 0.2);
    }
    .kanban-card {
      background: rgba(255, 255, 255, 0.015);
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: var(--radius-sm);
      padding: 12px;
      cursor: grab;
      transition: var(--transition);
      display: flex;
      flex-direction: column;
      gap: 8px;
      backdrop-filter: blur(10px);
    }
    .kanban-card:hover {
      border-color: rgba(6, 182, 212, 0.3);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.4);
      background: rgba(255, 255, 255, 0.03);
    }
    .kanban-card:active {
      cursor: grabbing;
      opacity: 0.5;
    }
    .kanban-card-title {
      font-size: 0.8rem;
      font-weight: 700;
      color: #fff;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .kanban-card-meta {
      font-size: 0.7rem;
      color: var(--text-secondary);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .kanban-card-score {
      font-family: monospace;
      font-weight: bold;
      color: #06b6d4;
      background: rgba(6, 182, 212, 0.08);
      padding: 2px 6px;
      border-radius: 4px;
    }

    /* Visual Browser Mockup Frame in proposals */
    .proposal-mockup-frame {
      transition: var(--transition);
    }
    .proposal-mockup-frame:hover {
      border-color: rgba(6, 182, 212, 0.25) !important;
      box-shadow: 0 15px 40px rgba(6, 182, 212, 0.15) !important;
      transform: translateY(-2px);
    }
    .proposal-mockup-frame a {
      transition: var(--transition);
    }
    .proposal-mockup-frame a:hover {
      background: linear-gradient(135deg, #22d3ee 0%, #a78bfa 100%) !important;
      box-shadow: 0 0 15px rgba(6,182,212,0.4) !important;
    }

/* Added from crm.html */
body {
                font-family: 'Inter', sans-serif;
                color: #1e293b;
                line-height: 1.6;
                padding: 40px;
                background: #fff;
              }
              .letterhead {
                border-bottom: 2px solid #06b6d4;
                padding-bottom: 20px;
                margin-bottom: 30px;
                display: flex;
                justify-content: space-between;
                align-items: center;
              }
              .logo {
                font-weight: 800;
                font-size: 1.5rem;
                color: #06b6d4;
              }
              .date {
                font-size: 0.9rem;
                color: #64748b;
              }
              .content {
                font-size: 1rem;
                white-space: pre-wrap;
              }
              h2, h3, h4 {
                color: #0f172a;
              }
              @media print {
                body { padding: 0; }
                .no-print { display: none; }
              }

/* Added from agents.html */
/* Custom HUD Agents page styles */
    .agents-grid {
      display: grid;
      grid-template-columns: 380px 1fr;
      gap: 20px;
      margin-top: 100px;
      height: calc(100vh - 140px);
      position: relative;
      z-index: 10;
    }
    
    .agents-sidebar {
      display: flex;
      flex-direction: column;
      gap: 15px;
      overflow-y: auto;
      padding-right: 5px;
      min-height: 0; /* Prevents container from stretching */
    }

    .agents-main-content {
      display: flex;
      flex-direction: column;
      gap: 20px;
      height: 100%;
      min-height: 0; /* Fix flex layout inner overflow */
    }

    .agent-profile-card {
      background: var(--bg-card);
      border: 1px solid var(--border-card);
      border-radius: var(--radius-xl);
      padding: 16px;
      transition: var(--transition);
      position: relative;
      overflow: hidden;
      flex-shrink: 0; /* Prevents cards from squishing under parent flex container */
    }
    .agent-profile-card:hover {
      border-color: rgba(6, 182, 212, 0.35);
      box-shadow: var(--shadow-card), var(--shadow-glow);
    }
    .agent-profile-card.active {
      border-color: #8b5cf6;
      box-shadow: 0 0 25px rgba(139, 92, 246, 0.2);
    }

    .agent-avatar-row {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 12px;
    }

    .agent-avatar {
      width: 44px;
      height: 44px;
      border-radius: var(--radius-md);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.4rem;
      font-weight: bold;
      color: white;
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }

    .agent-badge-pulse {
      font-family: monospace;
      font-size: 0.65rem;
      font-weight: bold;
      padding: 3px 8px;
      border-radius: 50px;
      margin-left: auto;
    }
    .agent-badge--idle {
      background: rgba(255, 255, 255, 0.05);
      color: var(--text-secondary);
      border: 1px solid rgba(255, 255, 255, 0.08);
    }
    .agent-badge--active {
      background: rgba(6, 182, 212, 0.15);
      color: #22d3ee;
      border: 1px solid rgba(6, 182, 212, 0.3);
      animation: pulse-badge 1.5s infinite;
    }
    .agent-badge--writing {
      background: rgba(16, 185, 129, 0.15);
      color: var(--green);
      border: 1px solid rgba(16, 185, 129, 0.3);
      animation: pulse-badge 1.5s infinite;
    }
    .agent-badge--coding {
      background: rgba(245, 158, 11, 0.15);
      color: var(--yellow);
      border: 1px solid rgba(245, 158, 11, 0.3);
      animation: pulse-badge 1.5s infinite;
    }

    @keyframes pulse-badge {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.7; transform: scale(1.05); }
    }

    .agent-stat-bar {
      margin-top: 10px;
      font-size: 0.72rem;
      color: var(--text-secondary);
    }
    .stat-bar-outer {
      height: 4px;
      background: rgba(255,255,255,0.05);
      border-radius: 2px;
      overflow: hidden;
      margin-top: 3px;
    }
    .stat-bar-fill {
      height: 100%;
      background: var(--gradient-main);
      border-radius: 2px;
      width: 0;
      transition: width 1s ease-out;
    }

    /* Communication Terminal Section */
    .swarm-chat-container {
      flex: 1;
      min-height: 0; /* Fix flex layout scaling bug */
      background: rgba(10, 10, 15, 0.5);
      backdrop-filter: blur(25px);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: var(--radius-xl);
      padding: 24px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      overflow: hidden;
    }

    .chat-header-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      padding-bottom: 12px;
      margin-bottom: 16px;
    }

    .chat-messages-area {
      flex: 1;
      min-height: 0; /* Keep scroll container bounded */
      overflow-y: auto;
      padding-right: 8px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      font-family: monospace;
      font-size: 0.8rem;
    }

    .chat-bubble {
      display: flex;
      gap: 12px;
      padding: 12px;
      border-radius: var(--radius-md);
      background: rgba(255, 255, 255, 0.015);
      border: 1px solid rgba(255, 255, 255, 0.04);
      max-width: 85%;
      animation: bubble-slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
      opacity: 0;
      transform: translateY(10px);
    }
    @keyframes bubble-slideIn {
      to { opacity: 1; transform: translateY(0); }
    }

    .chat-bubble.Jarvis {
      border-left: 3px solid #8b5cf6;
      background: rgba(139, 92, 246, 0.04);
      align-self: flex-start;
    }
    .chat-bubble.Scout {
      border-left: 3px solid #06b6d4;
      background: rgba(6, 182, 212, 0.04);
      align-self: flex-start;
    }
    .chat-bubble.Copywriter {
      border-left: 3px solid #10b981;
      background: rgba(16, 185, 129, 0.04);
      align-self: flex-start;
    }
    .chat-bubble.DevAgent {
      border-left: 3px solid #f59e0b;
      background: rgba(245, 158, 11, 0.04);
      align-self: flex-start;
    }

    .bubble-avatar {
      width: 32px;
      height: 32px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      font-weight: bold;
      color: #fff;
      flex-shrink: 0;
    }

    .bubble-content {
      line-height: 1.5;
    }

    .bubble-sender {
      font-weight: bold;
      color: #fff;
      margin-bottom: 3px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    /* SVG Node Network Graph Widget */
    .network-graph-card {
      background: rgba(10, 10, 15, 0.3);
      border: 1px solid rgba(255, 255, 255, 0.05);
      border-radius: var(--radius-xl);
      padding: 14px;
      display: flex;
      flex-direction: column;
      align-items: stretch; /* Stretch the SVG graph container */
      justify-content: center;
      position: relative;
    }

    /* Live command bar */
    .swarm-command-bar {
      display: flex;
      gap: 10px;
      margin-top: 15px;
      background: rgba(0, 0, 0, 0.3);
      padding: 10px;
      border-radius: var(--radius-md);
      border: 1px solid rgba(255, 255, 255, 0.05);
    }
    .swarm-command-bar input {
      flex: 1;
      background: transparent;
      border: none;
      color: #fff;
      font-family: monospace;
      outline: none;
      padding: 6px;
      font-size: 0.82rem;
    }
    .swarm-command-bar input::placeholder {
      color: var(--text-muted);
    }

/* ═══════════════════════════════════════════
   MAP & FLOATING COMMAND CENTER LAYOUT
   ═══════════════════════════════════════════ */
#map {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  background: #090d16;
}

.floating-top-bar {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(13, 18, 30, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
}

.top-bar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tabs-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
}
.tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
}

.tab-btn.active {
  color: #06b6d4;
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

.left-command-panel {
  position: fixed;
  top: 105px !important;
  left: 16px;
  bottom: 16px;
  width: 480px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  pointer-events: auto;
}

.right-command-panel {
  position: fixed;
  top: 105px !important;
  right: 16px;
  bottom: 16px;
  width: 380px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  pointer-events: auto;
}

/* ═══════════════════════════════════════════
   RESPONSIVE MEDIA QUERIES (MOBILE / TABLET / LAPTOP)
   ═══════════════════════════════════════════ */
@media (max-width: 1200px) {
  .floating-top-bar {
    padding: 8px 12px;
  }
  .left-command-panel {
    width: 400px !important;
  }
  .right-command-panel {
    width: 320px !important;
  }
}

@media (max-width: 992px) {
  .floating-top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .top-bar__logo {
    justify-content: space-between;
  }
  .top-bar__status {
    display: none;
  }
  .left-command-panel, .right-command-panel {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 10px;
  }
  .form-grid, div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 576px) {
  .floating-top-bar {
    top: 6px;
    left: 6px;
    right: 6px;
    padding: 6px 10px;
  }
  .tab-btn {
    padding: 6px 10px;
    font-size: 0.76rem;
  }
}

.command-sub-card {
  background: rgba(13, 18, 30, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.status-dot {
  display: inline-block;
  border-radius: 50%;
}
.status-dot--running {
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.leaflet-container {
  background: #0b0f19 !important;
}

/* Button & Form Controls */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
}
.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

input[type="text"], input[type="password"], textarea, select {
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
  border-radius: 8px !important;
  outline: none !important;
}
input[type="text"]:focus, input[type="password"]:focus, textarea:focus, select:focus {
  border-color: #06b6d4 !important;
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2) !important;
}

/* Map Pin & Status Badge Styles */
.custom-div-icon {
  background: transparent !important;
  border: none !important;
}

.pulse-marker {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(11, 15, 25, 0.92);
  border: 2px solid #06b6d4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  font-family: monospace;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.5);
  transition: all 0.3s ease;
}

.pulse-marker:hover {
  transform: scale(1.18);
  z-index: 99999;
}

.status-pin-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1.5px solid #0b0f19;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  z-index: 10;
}

/* Premium High-Tech Matrix Terminal Styling */
.crew-log-terminal {
  background: rgba(3, 7, 18, 0.95) !important;
  border: 1px solid rgba(6, 182, 212, 0.35) !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace !important;
  font-size: 0.74rem !important;
  line-height: 1.5 !important;
  color: #38bdf8 !important;
  max-height: 170px !important;
  min-height: 100px !important;
  overflow-y: auto !important;
  white-space: pre-wrap !important;
  word-break: break-word !important;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 15px rgba(6, 182, 212, 0.15) !important;
}

.crew-log-terminal::-webkit-scrollbar {
  width: 5px;
}
.crew-log-terminal::-webkit-scrollbar-thumb {
  background: rgba(6, 182, 212, 0.4);
  border-radius: 4px;
}
