/* ========================================================
   SentinelGuard Tester - Modern Glassmorphic Design System
   ======================================================== */

:root {
  --bg-base: #080c14;
  --bg-surface: rgba(15, 23, 42, 0.75);
  --bg-surface-elevated: rgba(30, 41, 59, 0.85);
  --bg-input: rgba(15, 23, 42, 0.9);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(99, 102, 241, 0.5);
  --border-glow: 0 0 15px rgba(99, 102, 241, 0.25);

  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-purple: #a855f7;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, monospace;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow-emerald: 0 0 20px rgba(16, 185, 129, 0.3);
  --shadow-glow-rose: 0 0 20px rgba(244, 63, 94, 0.3);
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.05) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

/* Top Nav */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(11, 17, 33, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 16px;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan));
  color: #fff;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.4);
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  font-weight: 400;
  color: #fff;
}

.brand-name strong {
  font-weight: 800;
  background: linear-gradient(90deg, #818cf8, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Accessibility Screen-Reader Only */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border-width: 0 !important;
}

/* Target Config Bar */
.target-config-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.75);
  padding: 4px 10px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

.target-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.target-icon {
  font-size: 1rem;
  user-select: none;
}

.target-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  user-select: none;
}

.target-input-wrapper input {
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  width: 330px;
  min-width: 260px;
  max-width: 460px;
  padding: 5px 12px;
  outline: none;
  transition: all 0.2s ease;
}

.target-input-wrapper input:focus {
  border-color: var(--accent-primary);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.target-input-wrapper input::placeholder {
  color: rgba(148, 163, 184, 0.45);
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  user-select: none;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-pill.online {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.1);
  color: #a7f3d0;
}

.status-pill.online .status-dot {
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.status-pill.offline {
  border-color: rgba(244, 63, 94, 0.3);
  background: rgba(244, 63, 94, 0.1);
  color: #fecdd3;
}

.status-pill.offline .status-dot {
  background: var(--accent-rose);
  box-shadow: 0 0 8px var(--accent-rose);
}

.status-pill.checking {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.1);
  color: #fde68a;
}

.status-pill.checking .status-dot {
  background: var(--accent-amber);
  animation: pulse 1s infinite;
}

.latency-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.btn-master {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 700;
  border: none;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.btn-master:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

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

.user-auth-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3px 8px 3px 10px;
  font-size: 0.78rem;
}

.user-avatar-dot {
  font-size: 0.85rem;
}

.user-name-txt {
  font-weight: 600;
  color: #fff;
  font-family: var(--font-mono);
}

/* Main Navigation Tabs */
.main-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 24px;
  background: rgba(15, 23, 42, 0.5);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
}

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

.tab-btn.active {
  color: #fff;
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
}

.tab-btn.highlight-tab {
  color: #f87171;
  border-color: rgba(244, 63, 94, 0.25);
}

.tab-btn.highlight-tab.active {
  color: #fff;
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.4);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-rose);
  box-shadow: 0 0 6px var(--accent-rose);
  animation: pulse 1s infinite;
}

/* Content Container & Panes */
.content-container {
  flex: 1;
  padding: 24px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

.tab-pane.active {
  display: block;
}

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

/* Cards & Glassmorphism */
.glass-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.card-body {
  padding: 20px;
}

/* Grid Layouts */
.two-column-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 1024px) {
  .two-column-grid {
    grid-template-columns: 1fr;
  }
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 16px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.col-4 { flex: 0 0 calc(33.333% - 8px); }
.col-6 { flex: 0 0 calc(50% - 6px); }

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-control, .form-select {
  width: 100%;
  padding: 9px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-select option {
  background: #0f172a;
  color: #fff;
}

.select-sm {
  padding: 4px 8px;
  font-size: 0.75rem;
  height: auto;
}

.input-with-action {
  display: flex;
  gap: 6px;
}

.input-with-action input {
  flex: 1;
}

.font-mono {
  font-family: var(--font-mono) !important;
}

.text-xs { font-size: 0.75rem !important; }
.text-sm { font-size: 0.82rem !important; }
.text-muted { color: var(--text-muted) !important; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #4f46e5);
  color: #fff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, var(--accent-rose), #e11d48);
  color: #fff;
  box-shadow: 0 2px 10px rgba(244, 63, 94, 0.35);
}

.btn-danger:hover:not(:disabled) {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #334155;
  color: #fff;
}

.btn-secondary:hover:not(:disabled) {
  background: #475569;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.btn-outline:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent-primary);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.btn-link:hover {
  color: #818cf8;
}

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

.btn-xs {
  padding: 3px 6px;
  font-size: 0.7rem;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 0.95rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-group-main {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.btn-group-main .btn-primary {
  flex: 1;
}

/* Accordion */
.accordion-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border: 1px dashed var(--border-subtle);
}

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

.accordion-content {
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

/* Checkboxes */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  cursor: pointer;
}

/* Status Banner */
.status-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.banner-idle {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(255, 255, 255, 0.06);
}

.banner-valid {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: var(--shadow-glow-emerald);
}

.banner-valid h4 { color: #34d399; }

.banner-invalid {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: var(--shadow-glow-rose);
}

.banner-invalid h4 { color: #fb7185; }

.banner-warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
}

.banner-warning h4 { color: #fbbf24; }

.banner-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.banner-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.banner-content p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.metric-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.metric-value-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.metric-num {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

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

.metric-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-rose);
  transition: width 0.4s ease;
}

.trust-fill {
  background: var(--accent-emerald) !important;
}

.metric-tag {
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
}

.metric-tag.verified {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.metric-tag.warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

/* Badges */
.badge {
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-danger {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

/* Addons Badges Container */
.section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.addons-badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  min-height: 32px;
}

.addon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 500;
}

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

.addon-badge.unlicensed {
  background: rgba(244, 63, 94, 0.1);
  border: 1px dashed rgba(244, 63, 94, 0.3);
  color: #fda4af;
  opacity: 0.6;
}

.empty-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Raw Code Inspector */
.raw-response-section {
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

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

.raw-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.json-code-view {
  background: #060911;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  max-height: 220px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #38bdf8;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ========================================================
   TAB 2: Products & Addons Matrix Styles
   ======================================================== */
.matrix-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.matrix-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.matrix-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.matrix-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.key-field-compact input {
  width: 320px;
}

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

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.product-card.selected {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.25);
}

.product-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.product-slug {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.product-meta-row {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.addon-card-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s ease;
}

.addon-card-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.addon-card-item.status-granted {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.06);
}

.addon-card-item.status-denied {
  border-color: rgba(244, 63, 94, 0.3);
  background: rgba(244, 63, 94, 0.05);
}

.addon-details-col {
  display: flex;
  flex-direction: column;
}

.addon-name-txt {
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
}

.addon-slug-txt {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* ========================================================
   TAB 3: Client Simulator Styles
   ======================================================== */
.sim-actions-bar {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.sim-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.feature-card {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.feature-card.locked {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-subtle);
  color: var(--text-muted);
}

.feature-card.unlocked {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.terminal-window {
  background: #050811;
  height: 480px;
  overflow-y: auto;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
}

.terminal-line {
  margin-bottom: 4px;
  word-break: break-all;
}

.terminal-line.system { color: #64748b; }
.terminal-line.info { color: #38bdf8; }
.terminal-line.success { color: #34d399; }
.terminal-line.warn { color: #fbbf24; }
.terminal-line.error { color: #fb7185; }

/* ========================================================
   TAB 4: Heartbeat Fleet Styles
   ======================================================== */
.heartbeat-controls-top {
  display: flex;
  gap: 10px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.data-table th, .data-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}

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

/* ========================================================
   TAB 5: Stress Suite Styles
   ======================================================== */
.stress-suite-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stress-status-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.stress-status-tag.running {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.4);
  animation: pulse 1.5s infinite;
}

.stress-config-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-range {
  width: 100%;
  accent-color: var(--accent-rose);
  cursor: pointer;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.stress-action-buttons {
  display: flex;
  gap: 12px;
}

/* Big Telemetry Gauges */
.big-gauges-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gauge-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
}

.gauge-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}

.gauge-value {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #fff;
  line-height: 1.1;
}

.gauge-value.highlight {
  color: #38bdf8;
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

.gauge-value.error {
  color: #fb7185;
}

.gauge-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* Status Codes Segmented Bar */
.status-codes-bar-wrapper {
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 8px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

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

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

.c-200, .seg-200 { background: #10b981; }
.c-400, .seg-400 { background: #f59e0b; }
.c-403, .seg-403 { background: #a855f7; }
.c-404, .seg-404 { background: #3b82f6; }
.c-429, .seg-429 { background: #ea580c; }
.c-500, .seg-500 { background: #ef4444; }

.segmented-progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  display: flex;
  overflow: hidden;
}

/* Canvas Chart */
.chart-container-box {
  background: #050811;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
}

#stress-chart {
  width: 100%;
  height: 220px;
  display: block;
}

/* ========================================================
   TAB 6: DRM & Security Suite
   ======================================================== */
.drm-status-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drm-prop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.prop-key {
  color: var(--text-muted);
}

.edge-cases-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.edge-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.edge-info strong {
  display: block;
  font-size: 0.85rem;
  color: #fff;
  margin-bottom: 2px;
}

.edge-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

.toast {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: #0f172a;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.25s ease-out;
}

.toast.toast-success {
  border-color: rgba(16, 185, 129, 0.4);
}

.toast.toast-error {
  border-color: rgba(244, 63, 94, 0.4);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

.mt-1 { margin-top: 4px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-3 { margin-bottom: 16px; }
.p-0 { padding: 0 !important; }
.text-center { text-align: center; }

/* Accessibility & Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
