/* ==========================================================================
   GM-02: Advanced Command Center & Control-Plane Operator Dashboard
   High-Aesthetic Apple & Linear Design System | High-Trust Telemetry Engine
   Persian RTL Native | WCAG 2.1 AA Compliant | Ultra-Smooth Interactions
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page Header Universal & View-Specific Overrides
   Ensure title, subtitle, breadcrumbs and action buttons are prominently visible
   -------------------------------------------------------------------------- */
.app-main .page-header .header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  flex-wrap: wrap !important;
}

.app-main .page-header .page-title-group > p {
  display: block !important;
  margin: 0.35rem 0 0 0 !important;
  font-size: 0.82rem !important;
  color: var(--text-secondary, #64748b) !important;
  line-height: 1.5 !important;
}

.app-main .page-header.gm02-page,
.app-main .page-header.gm03-page,
.app-main .page-header.gm04-page,
.app-main .page-header.gm05-page,
.app-main .page-header.gm06-page {
  min-height: auto !important;
  padding: 1.25rem 1.5rem !important;
  margin-bottom: 1.25rem !important;
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1.5rem !important;
  flex-wrap: wrap !important;
}

[data-theme="dark"] .app-main .page-header.gm02-page,
[data-theme="dark"] .app-main .page-header.gm03-page,
[data-theme="dark"] .app-main .page-header.gm04-page,
[data-theme="dark"] .app-main .page-header.gm05-page,
[data-theme="dark"] .app-main .page-header.gm06-page {
  background: rgba(17, 24, 39, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.45) !important;
}

.app-main .page-header.gm02-page .page-title-group {
  flex: 1 1 320px !important;
  min-width: 0 !important;
}

.app-main .page-header.gm02-page .page-title-group .breadcrumb-nav {
  margin-bottom: 0.25rem !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: var(--color-primary, #E6292A) !important;
}

.app-main .page-header.gm02-page .page-title-group h1.page-title {
  margin: 0 !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: var(--text-primary, #0f172a) !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  line-height: 1.3 !important;
}

[data-theme="dark"] .app-main .page-header.gm02-page .page-title-group h1.page-title {
  color: #f8fafc !important;
}

.app-main .page-header.gm02-page .page-title-group > p,
.app-main .page-header.gm02-page .gm02-header-desc {
  display: block !important;
  margin: 0.3rem 0 0 !important;
  font-size: 0.84rem !important;
  color: var(--text-secondary, #64748b) !important;
  line-height: 1.4 !important;
}

.app-main .page-header.gm02-page .header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  flex-wrap: wrap !important;
}

/* --------------------------------------------------------------------------
   Dashboard Container & Global Layout
   -------------------------------------------------------------------------- */
.gm02-operator-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
  position: relative;
  font-family: inherit;
}

/* --------------------------------------------------------------------------
   Header Action Buttons & Live Refresh Controls
   -------------------------------------------------------------------------- */
.gm02-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.gm02-header-badge.badge-sla {
  background: rgba(18, 183, 106, 0.1);
  border: 1px solid rgba(18, 183, 106, 0.3);
  color: #15803d;
}

[data-theme="dark"] .gm02-header-badge.badge-sla {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.gm02-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid rgba(203, 213, 225, 0.8);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary, #334155);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gm02-refresh-btn:hover {
  background: rgba(226, 232, 240, 0.9);
  color: var(--color-primary, #E6292A);
  transform: translateY(-1px);
}

.gm02-refresh-btn.spinning .refresh-icon {
  animation: gmSpin 0.7s linear infinite;
}

@keyframes gmSpin {
  100% { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   KPI Vital Cards (Executive Pulse Grid)
   -------------------------------------------------------------------------- */
.gm02-kpis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 1080px) {
  .gm02-kpis-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .gm02-kpis-grid {
    grid-template-columns: 1fr;
  }
}

.gm02-kpi-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 16px;
  box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.03), 0 1px 2px rgba(15, 23, 42, 0.02);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

[data-theme="dark"] .gm02-kpi-card {
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 20px -2px rgba(0, 0, 0, 0.35);
}

.gm02-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
  border-color: rgba(49, 87, 213, 0.35);
}

[data-theme="dark"] .gm02-kpi-card:hover {
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.5);
}

.gm02-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.gm02-kpi-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary, #64748b);
}

[data-theme="dark"] .gm02-kpi-label {
  color: #94a3b8;
}

.gm02-kpi-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
}

.gm02-kpi-pill.pill-success {
  background: rgba(18, 183, 106, 0.12);
  color: #15803d;
}

.gm02-kpi-pill.pill-warning {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.gm02-kpi-pill.pill-danger {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}

.gm02-kpi-middle {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.gm02-kpi-val {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

[data-theme="dark"] .gm02-kpi-val {
  color: #f8fafc;
}

.gm02-kpi-sub {
  font-size: 0.78rem;
  color: var(--text-tertiary, #94a3b8);
}

.gm02-sparkline-svg {
  width: 72px;
  height: 28px;
  overflow: visible;
}

.gm02-kpi-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary, #E6292A);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(226, 232, 240, 0.8);
}

[data-theme="dark"] .gm02-kpi-footer {
  border-color: rgba(255, 255, 255, 0.08);
  color: #60a5fa;
}

/* --------------------------------------------------------------------------
   Urgent Action Required Triage Section
   -------------------------------------------------------------------------- */
.gm02-action-panel {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 18px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.03);
}

[data-theme="dark"] .gm02-action-panel {
  background: rgba(26, 34, 52, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 20px -2px rgba(0, 0, 0, 0.4);
}

.gm02-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.gm02-panel-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  margin: 0;
}

[data-theme="dark"] .gm02-panel-title {
  color: #f8fafc;
}

.gm02-action-cards {
  display: grid;
  gap: 0.75rem;
}

.gm02-triage-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.95rem 1.2rem;
  background: rgba(248, 250, 252, 0.75);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 14px;
  border-right-width: 4px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .gm02-triage-card {
  background: rgba(30, 41, 59, 0.55);
  border-color: rgba(255, 255, 255, 0.06);
}

.gm02-triage-card.border-danger {
  border-right-color: #ef4444;
}

.gm02-triage-card.border-warning {
  border-right-color: #f59e0b;
}

.gm02-triage-card.border-info {
  border-right-color: #3b82f6;
}

.gm02-triage-card:hover {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

[data-theme="dark"] .gm02-triage-card:hover {
  background: rgba(30, 41, 59, 0.9);
  box-shadow: 0 6px 18px -2px rgba(0, 0, 0, 0.3);
}

.gm02-triage-body {
  min-width: 0;
  flex: 1 1 auto;
}

.gm02-triage-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.gm02-triage-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

[data-theme="dark"] .gm02-triage-title {
  color: #f1f5f9;
}

.gm02-triage-desc {
  margin: 0;
  font-size: 0.81rem;
  color: var(--text-secondary, #64748b);
  line-height: 1.45;
}

[data-theme="dark"] .gm02-triage-desc {
  color: #94a3b8;
}

.gm02-triage-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.4rem;
  font-size: 0.74rem;
  color: var(--text-tertiary, #94a3b8);
}

.gm02-triage-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Hero Telemetry Cockpit Bar
   -------------------------------------------------------------------------- */
.gm02-hero-command-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.25rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.85) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 16px;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.03);
}

[data-theme="dark"] .gm02-hero-command-bar {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.9) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 20px -2px rgba(0, 0, 0, 0.4);
}

.gm02-hero-telemetry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.gm02-telemetry-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.85);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.18s ease;
}

[data-theme="dark"] .gm02-telemetry-chip {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.gm02-telemetry-chip.chip-primary {
  border-color: rgba(49, 87, 213, 0.35);
  background: rgba(49, 87, 213, 0.08);
  color: #E6292A;
}

.gm02-telemetry-chip.chip-success {
  border-color: rgba(18, 183, 106, 0.35);
  background: rgba(18, 183, 106, 0.08);
  color: #15803d;
}

[data-theme="dark"] .gm02-telemetry-chip.chip-success {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.gm02-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #12b76a;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.7);
  animation: gmRadarPulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes gmRadarPulse {
  0% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.7); }
  70% { box-shadow: 0 0 0 9px rgba(18, 183, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0); }
}

.gm02-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gm02-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.85rem;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: var(--text-primary, #334155);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .gm02-action-btn {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.gm02-action-btn:hover {
  background: rgba(241, 245, 249, 0.95);
  border-color: rgba(49, 87, 213, 0.4);
  color: #E6292A;
  transform: translateY(-1px);
}

.gm02-action-btn.btn-accent {
  background: rgba(49, 87, 213, 0.1);
  border-color: rgba(49, 87, 213, 0.3);
  color: #E6292A;
}

/* --------------------------------------------------------------------------
   Two-Column Command Center Layout
   -------------------------------------------------------------------------- */
.gm02-split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 1080px) {
  .gm02-split-layout {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Throughput Chart Panel
   -------------------------------------------------------------------------- */
.gm02-chart-panel {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 18px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.03);
}

[data-theme="dark"] .gm02-chart-panel {
  background: rgba(26, 34, 52, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
}

.gm02-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.gm02-chart-title h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-primary, #0f172a);
}

[data-theme="dark"] .gm02-chart-title h3 {
  color: #f8fafc;
}

.gm02-chart-title p {
  margin: 0.2rem 0 0;
  font-size: 0.76rem;
  color: var(--text-secondary, #64748b);
}

.gm02-chart-controls {
  display: inline-flex;
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

[data-theme="dark"] .gm02-chart-controls {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
}

.gm02-time-btn {
  padding: 0.25rem 0.65rem;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-secondary, #64748b);
  cursor: pointer;
  transition: all 0.15s ease;
}

.gm02-time-btn.active {
  background: #ffffff;
  color: var(--color-primary, #E6292A);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .gm02-time-btn.active {
  background: #334155;
  color: #93c5fd;
}

.gm02-chart-canvas-container {
  width: 100%;
  height: 140px;
  margin: 0.75rem 0;
  position: relative;
}

.gm02-chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.gm02-chart-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(226, 232, 240, 0.8);
}

[data-theme="dark"] .gm02-chart-metrics-row {
  border-color: rgba(255, 255, 255, 0.08);
}

.gm02-chart-metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.gm02-chart-metric-item span {
  font-size: 0.7rem;
  color: var(--text-tertiary, #94a3b8);
}

.gm02-chart-metric-item strong {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
}

[data-theme="dark"] .gm02-chart-metric-item strong {
  color: #f1f5f9;
}

/* --------------------------------------------------------------------------
   Subsystems Matrix Panel
   -------------------------------------------------------------------------- */
.gm02-subsystems-panel {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 18px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.03);
}

[data-theme="dark"] .gm02-subsystems-panel {
  background: rgba(26, 34, 52, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
}

.gm02-subsystems-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.gm02-subsystems-header h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

[data-theme="dark"] .gm02-subsystems-header h3 {
  color: #f8fafc;
}

.gm02-subsystems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .gm02-subsystems-grid {
    grid-template-columns: 1fr;
  }
}

.gm02-subsystem-card {
  padding: 0.75rem 0.9rem;
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.35rem;
  transition: all 0.18s ease;
}

[data-theme="dark"] .gm02-subsystem-card {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.06);
}

.gm02-subsystem-card:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(49, 87, 213, 0.3);
  transform: translateY(-1px);
}

[data-theme="dark"] .gm02-subsystem-card:hover {
  background: rgba(30, 41, 59, 0.9);
}

.gm02-subsystem-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.gm02-subsystem-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

[data-theme="dark"] .gm02-subsystem-title {
  color: #f1f5f9;
}

.gm02-subsystem-desc {
  margin: 0;
  font-size: 0.73rem;
  color: var(--text-secondary, #64748b);
  line-height: 1.35;
}

.gm02-subsystem-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.3rem;
  font-size: 0.71rem;
}

.gm02-ping-badge {
  font-weight: 700;
  color: #15803d;
  font-family: var(--font-mono, monospace);
}

.gm02-ping-trigger {
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(49, 87, 213, 0.08);
  border: 1px solid rgba(49, 87, 213, 0.2);
  color: var(--color-primary, #E6292A);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gm02-ping-trigger:hover {
  background: rgba(49, 87, 213, 0.16);
}

/* --------------------------------------------------------------------------
   Priority Customers & Fleet Status Table
   -------------------------------------------------------------------------- */
.gm02-fleet-panel {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 18px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.03);
}

[data-theme="dark"] .gm02-fleet-panel {
  background: rgba(26, 34, 52, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
}

.gm02-fleet-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.gm02-fleet-filter-bar {
  display: inline-flex;
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

[data-theme="dark"] .gm02-fleet-filter-bar {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
}

.gm02-filter-pill {
  padding: 0.28rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-secondary, #64748b);
  cursor: pointer;
  transition: all 0.15s ease;
}

.gm02-filter-pill.active {
  background: #ffffff;
  color: var(--color-primary, #E6292A);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .gm02-filter-pill.active {
  background: #334155;
  color: #93c5fd;
}

.gm02-fleet-search {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 10px;
  font-size: 0.78rem;
  min-width: 220px;
}

[data-theme="dark"] .gm02-fleet-search {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.gm02-fleet-search input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 0.78rem;
  font-family: inherit;
  color: inherit;
}

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

.gm02-data-table th {
  text-align: right;
  padding: 0.65rem 0.85rem;
  font-weight: 700;
  color: var(--text-secondary, #64748b);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  font-size: 0.74rem;
}

[data-theme="dark"] .gm02-data-table th {
  border-color: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.gm02-data-table td {
  padding: 0.8rem 0.85rem;
  border-bottom: 1px solid rgba(241, 245, 249, 0.9);
  vertical-align: middle;
}

[data-theme="dark"] .gm02-data-table td {
  border-color: rgba(255, 255, 255, 0.04);
}

.gm02-data-table tr:hover td {
  background: rgba(248, 250, 252, 0.8);
}

[data-theme="dark"] .gm02-data-table tr:hover td {
  background: rgba(30, 41, 59, 0.4);
}

/* --------------------------------------------------------------------------
   Operational Queues & Live Activity Stream Panels
   -------------------------------------------------------------------------- */
.gm02-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1080px) {
  .gm02-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.gm02-dashboard-panel {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 18px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.03);
}

[data-theme="dark"] .gm02-dashboard-panel {
  background: rgba(26, 34, 52, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
}

.gm02-dashboard-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.gm02-dashboard-panel-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

[data-theme="dark"] .gm02-dashboard-panel-head h3 {
  color: #f8fafc;
}

.gm02-dashboard-list {
  display: grid;
  gap: 0.55rem;
}

.gm02-dashboard-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  font-size: 0.81rem;
  transition: all 0.18s ease;
}

[data-theme="dark"] .gm02-dashboard-list-row {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.06);
}

.gm02-dashboard-list-row:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(49, 87, 213, 0.35);
  transform: translateX(-2px);
}

[data-theme="dark"] .gm02-dashboard-list-row:hover {
  background: rgba(30, 41, 59, 0.9);
}

.gm02-dashboard-row-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.gm02-dashboard-row-main strong {
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

[data-theme="dark"] .gm02-dashboard-row-main strong {
  color: #f1f5f9;
}

.gm02-dashboard-row-main small {
  font-size: 0.72rem;
  color: var(--text-secondary, #64748b);
}

.gm02-dashboard-row-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary, #64748b);
}

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

.gm02-status-dot.is-success { background: #16a34a; }
.gm02-status-dot.is-warning { background: #d97706; }
.gm02-status-dot.is-danger { background: #dc2626; }

/* --------------------------------------------------------------------------
   Live Cyber Threat & Event Stream
   -------------------------------------------------------------------------- */
.gm02-event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 10px;
  font-size: 0.8rem;
}

[data-theme="dark"] .gm02-event-row {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.06);
}

.gm02-event-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.gm02-event-icon.success { background: rgba(18, 183, 106, 0.12); }
.gm02-event-icon.warning { background: rgba(245, 158, 11, 0.14); }
.gm02-event-icon.danger, .gm02-event-icon.critical { background: rgba(239, 68, 68, 0.14); }
.gm02-event-icon.info { background: rgba(49, 87, 213, 0.12); }

.gm02-event-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gm02-event-title {
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

[data-theme="dark"] .gm02-event-title {
  color: #f1f5f9;
}

.gm02-event-desc {
  font-size: 0.72rem;
  color: var(--text-secondary, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gm02-event-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: var(--text-tertiary, #94a3b8);
  flex-shrink: 0;
}

.gm02-hash-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(49, 87, 213, 0.08);
  color: #E6292A;
}

/* --------------------------------------------------------------------------
   Diagnostic Modal
   -------------------------------------------------------------------------- */
.gm02-diag-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  animation: gmFadeIn 0.2s ease-out;
}

.gm02-diag-card {
  width: 100%;
  max-width: 540px;
  background: var(--card-bg, #ffffff);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: gmScaleUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .gm02-diag-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
}

.gm02-diag-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

[data-theme="dark"] .gm02-diag-head {
  border-color: rgba(255, 255, 255, 0.08);
}

.gm02-diag-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.gm02-diag-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-secondary);
}

.gm02-diag-body {
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gm02-diag-progress {
  height: 6px;
  background: rgba(226, 232, 240, 0.8);
  border-radius: 9999px;
  overflow: hidden;
}

.gm02-diag-bar {
  height: 100%;
  background: linear-gradient(90deg, #E6292A, #12b76a);
  border-radius: 9999px;
  transition: width 0.6s ease;
}

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

@keyframes gmScaleUp {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   GM-04: Tenant 360° Dossier & Control Center Modern Design System
   ========================================================================== */
.dossier-header-card {
  position: relative;
  overflow: hidden;
}

.dossier-header-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 380px;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(49, 87, 213, 0.08), transparent 70%);
  pointer-events: none;
}

[data-theme="dark"] .dossier-header-card::before {
  background: radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), transparent 70%);
}

.customer-vitals-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--text-secondary, #64748b);
}

.tenant-domain-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.65rem;
  border-radius: 8px;
  background: rgba(49, 87, 213, 0.08);
  border: 1px solid rgba(49, 87, 213, 0.25);
  color: #E6292A;
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
}

[data-theme="dark"] .tenant-domain-chip {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.3);
  color: #93c5fd;
}

.tenant-domain-chip:hover {
  background: rgba(49, 87, 213, 0.16);
  transform: translateY(-1px);
}

.tenant-pos-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff !important;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
  transition: all 0.18s ease;
}

.tenant-pos-link-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

/* Dossier Sidebar Modernization */
.dossier-vertical-sidebar {
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(226, 232, 240, 0.85) !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04) !important;
  padding: 0.85rem 0.6rem !important;
}

[data-theme="dark"] .dossier-vertical-sidebar {
  background: rgba(26, 34, 52, 0.8) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.dossier-nav-group-title {
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  color: var(--text-tertiary, #94a3b8) !important;
  letter-spacing: 0.04em !important;
  padding: 0.4rem 0.75rem 0.25rem !important;
  display: block !important;
}

.dossier-tab-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding: 0.48rem 0.75rem !important;
  border-radius: 10px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: var(--text-secondary, #475569) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
  text-align: right !important;
}

[data-theme="dark"] .dossier-tab-btn {
  color: #94a3b8 !important;
}

.dossier-tab-btn:hover {
  background: rgba(241, 245, 249, 0.85) !important;
  color: var(--text-primary, #0f172a) !important;
  transform: translateX(-2px);
}

[data-theme="dark"] .dossier-tab-btn:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #f8fafc !important;
}

.dossier-tab-btn.active {
  background: rgba(49, 87, 213, 0.1) !important;
  color: #E6292A !important;
  border-color: rgba(49, 87, 213, 0.25) !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08) !important;
}

[data-theme="dark"] .dossier-tab-btn.active {
  background: rgba(96, 165, 250, 0.15) !important;
  color: #93c5fd !important;
  border-color: rgba(96, 165, 250, 0.3) !important;
}

.dossier-tab-badge {
  font-size: 0.7rem;
  padding: 0.12rem 0.45rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.05);
  color: inherit;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
}

[data-theme="dark"] .dossier-tab-badge {
  background: rgba(255, 255, 255, 0.1);
}

/* Dossier KPI Strip Modernization */
.dossier-kpi-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .dossier-kpi-card {
  background: rgba(26, 34, 52, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
}

.dossier-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -2px rgba(15, 23, 42, 0.08);
}

.dossier-kpi-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary, #64748b);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dossier-kpi-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

[data-theme="dark"] .dossier-kpi-val {
  color: #f8fafc;
}

.dossier-kpi-sub {
  font-size: 0.72rem;
  color: var(--text-tertiary, #94a3b8);
  margin-top: 0.25rem;
}

/* Dossier Domain Grid Cards */
.dossier-domain-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
  overflow: hidden;
  transition: all 0.2s ease;
}

[data-theme="dark"] .dossier-domain-card {
  background: rgba(26, 34, 52, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
}

.dossier-domain-card:hover {
  border-color: rgba(49, 87, 213, 0.3);
  box-shadow: 0 6px 20px -2px rgba(15, 23, 42, 0.06);
}

.dossier-domain-card .card-header {
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-theme="dark"] .dossier-domain-card .card-header {
  border-color: rgba(255, 255, 255, 0.06);
}

.dossier-domain-card .card-body {
  padding: 1rem 1.25rem;
}

/* ==========================================================================
   GM-05: Customer Onboarding 8-Step Wizard Modern Design
   ========================================================================== */
.wizard-layout {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 1200px) {
  .wizard-layout {
    grid-template-columns: 240px 1fr;
  }
  .wizard-summary {
    display: none;
  }
}

@media (max-width: 860px) {
  .wizard-layout {
    grid-template-columns: 1fr;
  }
}

.app-main .wizard-steps {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 18px;
  padding: 0.85rem 0.6rem;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

[data-theme="dark"] .app-main .wizard-steps {
  background: rgba(26, 34, 52, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
}

.app-main .wizard-steps .step-item {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  padding: 0.65rem 0.85rem !important;
  border-radius: 12px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: var(--text-secondary, #64748b) !important;
  cursor: pointer !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border: 1px solid transparent !important;
}

[data-theme="dark"] .app-main .wizard-steps .step-item {
  color: #94a3b8 !important;
}

.app-main .wizard-steps .step-item:hover {
  background: rgba(241, 245, 249, 0.85) !important;
  color: var(--text-primary, #0f172a) !important;
}

[data-theme="dark"] .app-main .wizard-steps .step-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #f8fafc !important;
}

.app-main .wizard-steps .step-item.active {
  background: rgba(49, 87, 213, 0.1) !important;
  color: #E6292A !important;
  font-weight: 700 !important;
  border-color: rgba(49, 87, 213, 0.25) !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1) !important;
}

[data-theme="dark"] .app-main .wizard-steps .step-item.active {
  background: rgba(96, 165, 250, 0.16) !important;
  color: #93c5fd !important;
  border-color: rgba(96, 165, 250, 0.3) !important;
}

.app-main .wizard-steps .step-item.completed {
  color: #10b981 !important;
}

.app-main .wizard-steps .step-item .step-number {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  background: rgba(0, 0, 0, 0.06) !important;
  color: inherit !important;
  flex-shrink: 0 !important;
  border: none !important;
}

[data-theme="dark"] .app-main .wizard-steps .step-item .step-number {
  background: rgba(255, 255, 255, 0.1) !important;
}

.app-main .wizard-steps .step-item.active .step-number {
  background: #E6292A !important;
  color: #ffffff !important;
}

[data-theme="dark"] .app-main .wizard-steps .step-item.active .step-number {
  background: #E6292A !important;
  color: #ffffff !important;
}

.app-main .wizard-steps .step-item.completed .step-number {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #10b981 !important;
}

.wizard-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 20px;
  padding: 1.75rem 2rem;
  box-shadow: 0 6px 24px -4px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .wizard-card {
  background: #151619;
  border-color: rgba(244, 240, 232, 0.12);
}

.wizard-progress {
  margin-bottom: 1.5rem;
}

.wizard-progress-copy {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary, #64748b);
  margin-bottom: 0.45rem;
}

.wizard-progress-track {
  height: 6px;
  background: rgba(226, 232, 240, 0.8);
  border-radius: 9999px;
  overflow: hidden;
}

[data-theme="dark"] .wizard-progress-track {
  background: rgba(255, 255, 255, 0.1);
}

.wizard-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #E6292A, #10b981);
  border-radius: 9999px;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.wizard-summary {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 18px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .wizard-summary {
  background: #151619;
  border-color: rgba(244, 240, 232, 0.12);
}

.selectable-card {
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.selectable-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

/* ==========================================================================
   GM-06: Provisioning Pipeline Modern Design
   ========================================================================== */
.provisioning-hero-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 6px 24px -4px rgba(15, 23, 42, 0.05);
  margin-bottom: 1.25rem;
}

[data-theme="dark"] .provisioning-hero-card {
  background: #151619;
  border-color: rgba(244, 240, 232, 0.12);
}

.console-terminal-viewer {
  background: #101114 !important;
  color: #E2E4E8 !important;
  border: 1px solid rgba(244, 240, 232, 0.12) !important;
  border-radius: 12px !important;
  padding: 1rem 1.25rem !important;
  font-family: var(--font-mono, monospace) !important;
  font-size: 0.76rem !important;
  line-height: 1.7 !important;
  max-height: 260px !important;
  overflow-y: auto !important;
  direction: ltr !important;
  text-align: left !important;
}

/* ==========================================================================
   Phase 3: Catalog, Plans, Entitlements, Billing & Usage Design System
   ========================================================================== */

/* GM-10: Plans & Pricing */
.plan-tier-card {
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.plan-tier-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="dark"] .plan-tier-card {
  background: #151619 !important;
  border-color: rgba(244, 240, 232, 0.12) !important;
}

[data-theme="dark"] .plan-tier-card.is-flagship {
  border-color: rgba(230, 41, 42, 0.5) !important;
  box-shadow: 0 8px 24px rgba(230, 41, 42, 0.2) !important;
}

/* GM-11: Sub-Tabs & Segmented Control */
.gm11-tabs-nav {
  display: flex;
  gap: 0.35rem;
  background: rgba(241, 245, 249, 0.85);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  overflow-x: auto;
}

[data-theme="dark"] .gm11-tabs-nav {
  background: #1F2126;
  border-color: rgba(244, 240, 232, 0.12);
}

.gm11-tab-btn {
  padding: 0.5rem 1rem !important;
  border-radius: 9px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: var(--text-secondary) !important;
  border: none !important;
  background: transparent !important;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.gm11-tab-btn:hover {
  color: var(--text-primary) !important;
  background: rgba(255, 255, 255, 0.5) !important;
}

.gm11-tab-btn.active {
  background: #ffffff !important;
  color: var(--color-primary, #E6292A) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="dark"] .gm11-tab-btn.active {
  background: #282A30 !important;
  color: #F4F0E8 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

/* Copy Button Inline */
.copy-btn-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  border: 1px solid var(--border-default, #e2e8f0);
  background: var(--bg-surface, #ffffff);
  color: var(--text-secondary, #64748b);
  font-size: 0.68rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.copy-btn-inline:hover {
  background: var(--bg-surface-subtle, #f8fafc);
  color: var(--color-primary, #E6292A);
  border-color: rgba(37, 99, 235, 0.3);
}

/* GM-12: Capacity Progress Meter */
.metric-meter {
  position: relative;
  width: 100%;
}

.metric-meter-track {
  width: 100%;
  height: 8px;
  background: rgba(226, 232, 240, 0.7);
  border-radius: 999px;
  overflow: hidden;
}

[data-theme="dark"] .metric-meter-track {
  background: rgba(255, 255, 255, 0.1);
}

.metric-meter-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.metric-meter-fill.normal,
.metric-meter-fill.meter-success {
  background: linear-gradient(90deg, #10b981, #059669);
}

.metric-meter-fill.warning {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.metric-meter-fill.danger {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.metric-meter-compact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.metric-meter-compact .metric-meter-track {
  flex: 1;
  height: 6px;
}

.metric-meter-val {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 32px;
}

/* ==========================================================================
   GM-19 / GM-29 Hardware Fleet & Thermal Printing Ergonomics
   ========================================================================== */

.ping-latency-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.ping-latency-chip.degraded {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.25);
}

.device-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.device-preset-card {
  padding: 0.75rem 0.5rem;
  border: 1px solid var(--border-default, #e2e8f0);
  border-radius: 8px;
  background: var(--bg-surface, #ffffff);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .device-preset-card {
  background: var(--bg-surface, #1e293b);
  border-color: var(--border-default, #334155);
}

.device-preset-card:hover {
  border-color: var(--accent-primary, #0ea5e9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.device-preset-card.is-selected {
  border-color: var(--accent-primary, #0ea5e9);
  background: rgba(14, 165, 233, 0.08);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.3);
}

.device-preset-icon {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
  display: block;
}

.device-preset-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.device-preset-desc {
  font-size: 0.68rem;
  color: var(--text-tertiary);
  margin-top: 0.15rem;
  display: block;
}

/* Thermal Receipt Paper Visual Simulation */
.thermal-receipt-paper {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 1.25rem 1rem;
  font-family: 'Vazirmatn', -apple-system, monospace;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  position: relative;
  max-width: 330px;
  margin: 0 auto;
}

.receipt-perforation {
  position: relative;
  border-top: 2px dashed #94a3b8;
  margin: 1rem 0;
  text-align: center;
}

.receipt-perforation::after {
  content: '✂️ برش خودکار';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  padding: 0 0.5rem;
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 600;
}

/* ==========================================================================
   Executive Restaurant Pulse Card & Clean Telemetry Drawer (Refined & Quiet)
   ========================================================================== */
.gm02-executive-pulse-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.6rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

[data-theme="dark"] .gm02-executive-pulse-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.8));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
}

.gm02-pulse-info {
  flex: 1 1 340px;
}

.gm02-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.65rem;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

[data-theme="dark"] .gm02-pulse-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.gm02-pulse-title {
  margin: 0 0 0.3rem 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
}

[data-theme="dark"] .gm02-pulse-title {
  color: #f8fafc;
}

.gm02-pulse-desc {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-secondary, #64748b);
  line-height: 1.5;
}

.gm02-pulse-metrics {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.gm02-pulse-metric-box {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.6rem 1rem;
  background: rgba(241, 245, 249, 0.65);
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.7);
}

[data-theme="dark"] .gm02-pulse-metric-box {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.06);
}

.gm02-pulse-metric-box .metric-label {
  font-size: 0.72rem;
  color: var(--text-secondary, #64748b);
}

.gm02-pulse-metric-box .metric-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

[data-theme="dark"] .gm02-pulse-metric-box .metric-val {
  color: #f8fafc;
}

/* Collapsible Advanced Telemetry Drawer */
.gm02-advanced-telemetry-drawer {
  margin-top: 1.75rem;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
  transition: all 0.25s ease;
}

[data-theme="dark"] .gm02-advanced-telemetry-drawer {
  background: rgba(17, 24, 39, 0.4);
  border-color: rgba(255, 255, 255, 0.08);
}

.gm02-advanced-telemetry-drawer[open] {
  background: var(--apple-surface, #ffffff);
  border-color: rgba(49, 87, 213, 0.3);
  box-shadow: 0 8px 30px -4px rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .gm02-advanced-telemetry-drawer[open] {
  background: rgba(17, 24, 39, 0.9);
  border-color: rgba(96, 165, 250, 0.25);
  box-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.5);
}

.gm02-telemetry-summary-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
  gap: 1rem;
  transition: background 0.15s ease;
}

.gm02-telemetry-summary-btn::-webkit-details-marker {
  display: none;
}

.gm02-telemetry-summary-btn:hover {
  background: rgba(241, 245, 249, 0.6);
}

[data-theme="dark"] .gm02-telemetry-summary-btn:hover {
  background: rgba(30, 41, 59, 0.5);
}

.gm02-summary-content {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.gm02-summary-icon {
  font-size: 1.35rem;
}

.gm02-summary-text strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

[data-theme="dark"] .gm02-summary-text strong {
  color: #f8fafc;
}

.gm02-summary-text p {
  margin: 0.2rem 0 0 0;
  font-size: 0.78rem;
  color: var(--text-secondary, #64748b);
}

.gm02-summary-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gm02-summary-chevron {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
  color: var(--text-secondary, #64748b);
}

.gm02-advanced-telemetry-drawer[open] .gm02-summary-chevron {
  transform: rotate(180deg);
}

.gm02-telemetry-drawer-body {
  padding: 0 1.25rem 1.5rem 1.25rem;
  border-top: 1px solid rgba(226, 232, 240, 0.7);
  animation: gmFadeIn 0.3s ease;
}

[data-theme="dark"] .gm02-telemetry-drawer-body {
  border-top-color: rgba(255, 255, 255, 0.08);
}

@keyframes gmFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
