/* ==========================================================================
   VPS ServerHub - Cyber Glassmorphism Stylesheet
   ========================================================================== */

:root {
  --bg-main: #0b0f19;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(26, 34, 53, 0.85);
  --bg-secondary: #131b2e;
  --bg-input: rgba(15, 23, 42, 0.8);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #3b82f6;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-sub: #64748b;
  
  --color-primary: #3b82f6;
  --color-primary-hover: #2563eb;
  --color-emerald: #10b981;
  --color-emerald-glow: rgba(16, 185, 129, 0.25);
  --color-amber: #f59e0b;
  --color-amber-glow: rgba(245, 158, 11, 0.25);
  --color-rose: #ef4444;
  --color-rose-glow: rgba(239, 68, 68, 0.25);
  --color-cyan: #06b6d4;
  --color-purple: #8b5cf6;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
  --glass-blur: blur(12px);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 40%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 40;
}

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

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.4);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-vps {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.brand-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.main-content {
  flex: 1;
  padding: 28px;
  max-width: 1480px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.btn-success {
  background: var(--color-emerald);
  color: #064e3b;
  font-weight: 700;
}
.btn-success:hover {
  background: #059669;
  color: white;
  box-shadow: 0 0 12px var(--color-emerald-glow);
}

.btn-warning {
  background: var(--color-amber);
  color: #78350f;
  font-weight: 700;
}
.btn-warning:hover {
  background: #d97706;
  color: white;
  box-shadow: 0 0 12px var(--color-amber-glow);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
  background: var(--color-rose);
  color: white;
  box-shadow: 0 0 12px var(--color-rose-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-icon {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 8px;
  border-radius: var(--radius-sm);
}
.btn-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.78rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   SYSTEM METRICS GRID
   ========================================================================== */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

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

.metric-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.metric-icon {
  font-size: 1.1rem;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-family: var(--font-sans);
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.progress-bar-fill.fill-accent {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.progress-bar-fill.fill-info {
  background: linear-gradient(90deg, #06b6d4, #10b981);
}

.metric-sub {
  font-size: 0.78rem;
  color: var(--text-sub);
}

.metric-stats-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.stat-pill {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.online-pill {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.total-pill {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.text-emerald {
  color: var(--color-emerald);
}

/* ==========================================================================
   ALERT BANNER (CMD WINDOWS)
   ========================================================================== */

.alert-banner {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: var(--glass-blur);
  animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 10px rgba(245, 158, 11, 0.1); }
  100% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.25); }
}

.alert-banner.hidden {
  display: none !important;
}

.alert-icon {
  font-size: 1.5rem;
}

.alert-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.85rem;
}

.alert-content strong {
  color: #fbbf24;
}

/* ==========================================================================
   SERVICES TOOLBAR
   ========================================================================== */

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

.filter-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  gap: 4px;
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

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

.tab-btn.active {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  width: 280px;
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.85rem;
  width: 100%;
}

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

/* ==========================================================================
   SERVICES GRID & CARDS
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s ease;
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.service-card.status-running {
  border-left: 4px solid var(--color-emerald);
}

.service-card.status-external {
  border-left: 4px solid var(--color-amber);
}

.service-card.status-stopped {
  border-left: 4px solid var(--text-sub);
  opacity: 0.88;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.service-info {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.service-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.service-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
  margin-bottom: 2px;
}

.service-category {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* STATUS PILL */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-pill.running {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.status-pill.running .status-dot {
  background: var(--color-emerald);
  box-shadow: 0 0 8px var(--color-emerald);
  animation: pulse-dot 2s infinite;
}

.status-pill.external {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.status-pill.external .status-dot {
  background: var(--color-amber);
  box-shadow: 0 0 8px var(--color-amber);
}

.status-pill.stopped {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}
.status-pill.stopped .status-dot {
  background: var(--text-sub);
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.service-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.4;
  min-height: 38px;
}

/* METRICS STRIP */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(10, 15, 26, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  gap: 6px;
  text-align: center;
}

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

.metric-strip-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-sub);
}

.metric-strip-val {
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-main);
}

/* BADGES & URLS ROW */
.service-badges-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.ports-list {
  display: flex;
  gap: 6px;
  align-items: center;
}

.port-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 7px;
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.port-badge.port-online {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.3);
}

.ext-link {
  font-size: 0.78rem;
  color: #60a5fa;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.ext-link:hover {
  color: #93c5fd;
  text-decoration: underline;
}

/* ACTIONS BAR */
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.action-buttons-group {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* SWITCH TOGGLE */
.switch-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.switch-box input {
  display: none;
}

.switch-slider {
  width: 32px;
  height: 18px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  position: relative;
  transition: background 0.2s ease;
}

.switch-slider::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  background: white;
  transition: transform 0.2s ease;
}

.switch-box input:checked + .switch-slider {
  background: var(--color-emerald);
}

.switch-box input:checked + .switch-slider::before {
  transform: translateX(14px);
}

/* ==========================================================================
   TERMINAL CONSOLE MODAL
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.18s ease;
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-window {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.22s ease;
}

.modal-terminal {
  max-width: 1100px;
  height: 75vh;
  background: #090d16;
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: #0f172a;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.terminal-title-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  cursor: pointer;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.terminal-title {
  font-size: 0.92rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-main);
}

.terminal-badge {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.terminal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.terminal-search {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  padding: 4px 10px;
  outline: none;
  width: 160px;
}
.terminal-search:focus {
  border-color: var(--color-primary);
}

.terminal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  background: #060911;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.terminal-content {
  white-space: pre-wrap;
  word-break: break-all;
}

/* TERMINAL SYNTAX HIGHLIGHT */
.log-error {
  color: #f87171 !important;
  font-weight: 600;
}
.log-warn {
  color: #fbbf24 !important;
}
.log-info {
  color: #60a5fa !important;
}
.log-ok {
  color: #34d399 !important;
}
.log-time {
  color: #64748b;
}

.terminal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 18px;
  background: #0f172a;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-sub);
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.btn-close:hover {
  color: white;
}

/* ==========================================================================
   FORMS & MODALS
   ========================================================================== */

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

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 70vh;
  overflow-y: auto;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text-main);
  font-size: 0.86rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-group small {
  font-size: 0.72rem;
  color: var(--text-sub);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   AUTH CARD
   ========================================================================== */

.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.95);
  backdrop-filter: blur(16px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.auth-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.auth-card h2 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.auth-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.auth-card input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 1.2rem;
  text-align: center;
  letter-spacing: 0.2em;
  color: var(--text-main);
  outline: none;
  margin-bottom: 16px;
}

.auth-card input:focus {
  border-color: var(--color-primary);
}

.auth-error {
  color: var(--color-rose);
  font-size: 0.8rem;
  margin-top: 12px;
  min-height: 18px;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #1e293b;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: white;
  font-size: 0.85rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  animation: slideInRight 0.25s ease;
}

.toast.toast-success {
  border-left: 4px solid var(--color-emerald);
}

.toast.toast-error {
  border-left: 4px solid var(--color-rose);
}

.toast.toast-warning {
  border-left: 4px solid var(--color-amber);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.app-footer {
  margin-top: auto;
  padding: 14px 28px;
  background: rgba(15, 23, 42, 0.7);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-sub);
}

.footer-separator {
  margin: 0 8px;
  opacity: 0.4;
}

.status-dot-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-emerald);
  box-shadow: 0 0 8px var(--color-emerald);
  margin-right: 6px;
  animation: pulse-dot 2s infinite;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE / TABLET)
   ========================================================================== */

@media (max-width: 868px) {
  .top-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
  }
  .nav-actions {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .main-content {
    padding: 16px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .modal-terminal {
    height: 90vh;
  }
}
