:root {
  --bg-primary: #0a0f1d;
  --bg-secondary: #0f172a;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(99, 102, 241, 0.3);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.4);
  --primary-hover: #4f46e5;
  
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.35);
  --green: #10b981;
  --green-glow: rgba(16, 185, 129, 0.35);
  --purple: #a855f7;
  --purple-glow: rgba(168, 85, 247, 0.35);
  --amber: #f59e0b;
  --rose: #f43f5e;
  
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 25px var(--primary-glow);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Glows */
.app-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  animation: floatOrb 20s infinite alternate ease-in-out;
}

.orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: -150px;
  left: -150px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  bottom: 50px;
  right: -100px;
  animation-duration: 25s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
  top: 40%;
  left: 30%;
  animation-duration: 30s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-40px, 80px) scale(0.95); }
}

/* Layout */
.app-layout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 32px;
}

/* Glass panel utility */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: var(--border-highlight);
}

/* Typography */
.font-mono {
  font-family: var(--font-mono);
}

/* App Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 16px;
}

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

.brand-logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 15px var(--cyan-glow);
}

.logo-icon {
  width: 28px;
  height: 28px;
}

.brand-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.controller-status-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.status-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.pill-details {
  display: flex;
  flex-direction: column;
}

.pill-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.pill-meta {
  font-size: 0.72rem;
  color: var(--green);
  font-weight: 500;
}

/* Navigation Tabs */
.nav-tabs {
  display: flex;
  gap: 8px;
  margin: 24px 0;
  padding: 6px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.nav-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

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

.nav-tab-btn.active {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 2px 10px var(--primary-glow);
}

.nav-tab-btn .icon {
  width: 18px;
  height: 18px;
}

/* Tab panes */
.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

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

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

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.metric-card {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.metric-card.highlight-blue::after { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--primary); }
.metric-card.highlight-cyan::after { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--cyan); }
.metric-card.highlight-green::after { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--green); }
.metric-card.highlight-purple::after { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--purple); }
.metric-card.highlight-amber::after { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: #f59e0b; }

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

.metric-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-icon-badge.blue { background: rgba(99, 102, 241, 0.15); color: var(--primary); }
.metric-icon-badge.cyan { background: rgba(6, 182, 212, 0.15); color: var(--cyan); }
.metric-icon-badge.green { background: rgba(16, 185, 129, 0.15); color: var(--green); }
.metric-icon-badge.purple { background: rgba(168, 85, 247, 0.15); color: var(--purple); }
.metric-icon-badge.amber { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

/* System Resource Progress Bar & Live Telemetry Badge */
.resource-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 8px 0;
  position: relative;
}

.resource-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease;
}

.resource-progress-fill.cpu-fill {
  background: linear-gradient(90deg, #10b981, #06b6d4);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.resource-progress-fill.ram-fill {
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.resource-progress-fill.disk-fill {
  background: linear-gradient(90deg, #8b5cf6, #ec4899);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulseLive 1.8s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.server-uptime-badge {
  font-size: 0.8rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.metric-icon-badge svg {
  width: 20px;
  height: 20px;
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.metric-subtext {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Section Headings */
.section-title-wrapper {
  margin-bottom: 20px;
}

.section-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hardware Showcase Cards (EAP 110 & EAP 225) */
.hardware-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.hardware-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hw-badge-top {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.hw-badge-top.model-110 {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.hw-badge-top.model-225 {
  background: rgba(168, 85, 247, 0.15);
  color: var(--purple);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.hw-card-body {
  display: flex;
  gap: 20px;
}

.hw-icon-container {
  flex-shrink: 0;
}

.hw-visual {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hw-visual.eap-110 {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(15, 23, 42, 0.6));
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--cyan);
}

.hw-visual.eap-225 {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(15, 23, 42, 0.6));
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--purple);
}

.hw-visual svg {
  width: 36px;
  height: 36px;
}

.hw-details {
  flex: 1;
}

.hw-model-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.hw-model-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
}

.hw-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: rgba(0, 0, 0, 0.25);
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.spec-val {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Inform Quick Banner */
.inform-quick-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  border-left: 4px solid var(--cyan);
}

.banner-icon-side {
  width: 50px;
  height: 50px;
  background: rgba(6, 182, 212, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}

.banner-icon-side svg {
  width: 26px;
  height: 26px;
}

.banner-content {
  flex: 1;
}

.banner-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.banner-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.code-snippet-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  width: fit-content;
  border: 1px solid var(--border-subtle);
}

.code-snippet-box code {
  color: var(--cyan);
  font-size: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--primary-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);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
}

.btn-outline:hover {
  background: rgba(6, 182, 212, 0.15);
  box-shadow: 0 0 15px var(--cyan-glow);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn-xs {
  padding: 4px 8px;
  font-size: 0.72rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy:hover {
  background: var(--primary);
}

.btn .icon {
  width: 16px;
  height: 16px;
}

.spin-on-hover:hover {
  animation: spin 1s linear infinite;
}

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

/* Table Design */
.section-action-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.action-header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.table-glass-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 16px 18px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: var(--transition);
}

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

.table-device-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.model-badge-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.model-badge-tag.eap110 {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.model-badge-tag.eap225 {
  background: rgba(168, 85, 247, 0.15);
  color: var(--purple);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-status.connected {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-status.pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-status.disconnected {
  background: rgba(244, 63, 94, 0.15);
  color: var(--rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: var(--text-dim);
}

.empty-state h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 24px;
  font-size: 0.9rem;
}

.empty-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* Form inputs & Wizard */
.wizard-container {
  padding: 32px;
}

.wizard-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.wizard-header h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.wizard-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.wizard-step-card {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}

.step-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 0 15px var(--primary-glow);
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.step-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

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

.model-radio-card {
  position: relative;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  background: rgba(15, 23, 42, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.model-radio-card input {
  position: absolute;
  opacity: 0;
}

.model-radio-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(15, 23, 42, 0.7);
}

.model-radio-card.active {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

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

.model-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.model-badge.blue { background: rgba(6, 182, 212, 0.15); color: var(--cyan); }
.model-badge.purple { background: rgba(168, 85, 247, 0.15); color: var(--purple); }
.model-badge.green { background: rgba(16, 185, 129, 0.15); color: var(--green); }

.band-tag {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.radio-card-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.radio-card-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Form Inputs */
.form-row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

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

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

.form-group .req {
  color: var(--rose);
}

.form-input, .form-select {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.form-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
  padding: 14px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
}

.custom-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text-main);
}

.custom-checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.help-text {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.wizard-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

/* Presets Library */
.presets-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}

.preset-card {
  padding: 24px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.preset-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.preset-card-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.preset-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.preset-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.45;
}

.preset-params-list {
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.preset-param-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.preset-param-row:last-child {
  border-bottom: none;
}

.param-title {
  color: var(--text-dim);
}

.param-val {
  font-weight: 600;
  color: var(--text-main);
  font-family: var(--font-mono);
}

/* L3 Guide Cards */
.guide-header {
  padding: 28px;
  margin-bottom: 24px;
}

.guide-header h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.guide-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 800px;
  margin-bottom: 20px;
}

.controller-meta-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.meta-pill {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}

.meta-pill .label {
  color: var(--text-dim);
}

.meta-pill .value {
  color: var(--cyan);
  font-weight: 600;
}

.guide-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}

.guide-method-card {
  padding: 24px;
}

.method-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.method-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cyan);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.method-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.guide-method-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.guide-steps-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.guide-steps-list strong {
  color: #fff;
}

.code-copy-block {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: 4px;
  width: fit-content;
  margin-top: 4px;
}

.code-copy-block code {
  color: var(--cyan);
  font-family: var(--font-mono);
}

.code-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

.code-header {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
}

.code-box pre {
  padding: 14px;
  overflow-x: auto;
  font-size: 0.82rem;
  color: var(--cyan);
  line-height: 1.5;
}

.code-box-copy {
  position: absolute;
  top: 6px;
  right: 6px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  max-width: 500px;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

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

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.btn-close-modal:hover {
  color: #fff;
}

.modal-body {
  padding: 24px;
}

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

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

.toast {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-highlight);
  color: #fff;
  font-size: 0.88rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--rose); }

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

/* Footer */
.app-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .app-layout { padding: 16px; }
  .app-header { flex-direction: column; align-items: flex-start; }
  .hardware-cards-grid { grid-template-columns: 1fr; }
  .inform-quick-banner { flex-direction: column; align-items: flex-start; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
}

/* ========================================================
   AUTHENTICATION & LOGIN INTERFACE
   ======================================================== */
.login-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  visibility: hidden;
}

.login-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 19, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.login-card {
  position: relative;
  z-index: 10;
  width: 92%;
  max-width: 440px;
  padding: 36px 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(22, 28, 48, 0.95) 0%, rgba(13, 17, 28, 0.98) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(99, 102, 241, 0.2);
  animation: loginCardPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginCardPop {
  0% { transform: scale(0.92) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.login-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-brand-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px auto;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px var(--primary-glow);
}

.login-brand-icon .brand-svg {
  width: 32px;
  height: 32px;
  stroke: #ffffff;
}

.login-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.login-alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fecdd3;
  font-size: 0.86rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: shakeAlert 0.3s ease-in-out;
}

.login-alert.login-alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
  animation: none;
}

#clientModal {
  z-index: 3100;
}

#clientModal.active {
  display: flex !important;
}

@keyframes shakeAlert {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

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

.field-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  pointer-events: none;
}

.input-with-icon .form-input {
  padding-left: 42px;
  padding-right: 44px;
}

.btn-toggle-pwd {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: var(--transition);
}

.btn-toggle-pwd:hover {
  color: var(--text-main);
}

.eye-svg {
  width: 18px;
  height: 18px;
}

.form-row-checkbox {
  margin: 14px 0 22px 0;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}

.remember-label input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.btn-login-submit {
  width: 100%;
  height: 48px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-login-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loader {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.login-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.login-controller-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
}

.login-controller-pill .pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
}

.login-links .link-external {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--cyan);
  text-decoration: none;
  transition: var(--transition);
}

.login-links .link-external:hover {
  color: #ffffff;
  text-decoration: underline;
}

.icon-sm {
  width: 14px;
  height: 14px;
}

/* ========================================================
   HEADER USER PROFILE BADGE & LOGOUT
   ======================================================== */
.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 4px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  backdrop-filter: blur(8px);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
}

.user-role {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.btn-logout {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.12);
  color: var(--rose);
  border: 1px solid rgba(244, 63, 94, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: var(--transition);
}

.btn-logout:hover {
  background: var(--rose);
  color: #ffffff;
  transform: scale(1.05);
}

.btn-logout .icon {
  width: 15px;
  height: 15px;
}

/* =============================================================
   EXCEL SPREADSHEET SCREEN STYLING (MULTI-TENANT CLIENTS)
   ============================================================= */

.excel-window-container {
  padding: 0;
  border-radius: var(--radius-md);
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.08);
  overflow: hidden;
  background: rgba(13, 19, 33, 0.85);
}

/* Ribbon Bar */
.excel-ribbon-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.excel-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.excel-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.excel-app-badge svg {
  width: 22px;
  height: 22px;
  color: #10b981;
}

.excel-subheading {
  font-size: 0.8rem;
  color: var(--text-dim);
}

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

.excel-toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.excel-select {
  padding: 8px 12px;
  font-size: 0.85rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  min-width: 180px;
}

.excel-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.excel-search-box .search-icon {
  position: absolute;
  left: 10px;
  width: 15px;
  height: 15px;
  color: var(--text-dim);
  pointer-events: none;
}

.excel-input {
  padding: 8px 12px 8px 32px;
  font-size: 0.85rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  width: 240px;
}

/* Formula Bar */
.excel-formula-bar {
  display: flex;
  align-items: center;
  padding: 6px 16px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 8px;
  font-size: 0.88rem;
}

.excel-name-box {
  min-width: 55px;
  text-align: center;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #10b981;
}

.excel-fx-symbol {
  font-family: 'Times New Roman', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dim);
  padding: 0 4px;
  user-select: none;
}

.excel-formula-input-wrapper {
  flex: 1;
}

.excel-formula-input {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  padding: 4px 8px;
  outline: none;
}

.excel-formula-input:focus {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 3px;
}

.excel-formula-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-formula-action {
  width: 24px;
  height: 24px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: var(--transition);
}

.btn-formula-action.confirm {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.btn-formula-action.confirm:hover {
  background: #10b981;
  color: #fff;
}

.btn-formula-action.cancel {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
}

.btn-formula-action.cancel:hover {
  background: #f43f5e;
  color: #fff;
}

/* Excel Grid Table */
.excel-grid-wrapper {
  overflow-x: auto;
  max-height: 540px;
  overflow-y: auto;
  position: relative;
}

.excel-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  table-layout: fixed;
  user-select: none;
}

.excel-corner-cell {
  width: 44px;
  min-width: 44px;
  background: rgba(20, 28, 45, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  left: 0;
  top: 0;
  z-index: 10;
  text-align: center;
  padding: 0;
}

.corner-triangle {
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 8px 8px;
  border-color: transparent transparent #10b981 transparent;
}

.excel-col-header {
  background: rgba(20, 28, 45, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.col-letter {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #10b981;
  text-align: center;
  margin-bottom: 2px;
}

.col-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Rows & Cells */
.excel-row-header {
  width: 44px;
  min-width: 44px;
  background: rgba(20, 28, 45, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-align: center;
  padding: 8px 0;
  position: sticky;
  left: 0;
  z-index: 2;
}

.excel-cell {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 9px 12px;
  font-size: 0.86rem;
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.6);
  cursor: cell;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.excel-table tbody tr:hover td.excel-cell:not(.active-cell) {
  background: rgba(255, 255, 255, 0.03);
}

.excel-table tbody tr:hover td.excel-row-header {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

/* Active Cell Outline */
.excel-cell.active-cell {
  outline: 2px solid #10b981 !important;
  outline-offset: -1px;
  background: rgba(16, 185, 129, 0.1) !important;
  z-index: 1;
}

.excel-cell.active-cell::after {
  content: '';
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 6px;
  height: 6px;
  background: #10b981;
  border: 1px solid #fff;
  border-radius: 1px;
  pointer-events: none;
}

/* Inline Editing Input */
.excel-inline-editor {
  width: 100%;
  height: 100%;
  background: #0f172a;
  border: 1px solid #10b981;
  border-radius: 2px;
  color: #fff;
  font-family: inherit;
  font-size: inherit;
  padding: 4px 6px;
  outline: none;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

/* Badges inside Excel cells */
.tenant-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.status-badge-active {
  display: inline-block;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.excel-actions-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.btn-cell-action {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-cell-action:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn-cell-action.delete:hover {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.15);
}

/* Bottom Sheet Tabs Bar */
.excel-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.excel-sheet-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.excel-sheet-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 4px 4px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.excel-sheet-tab.active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-bottom: 2px solid #10b981;
}

.sheet-icon {
  font-size: 0.85rem;
}

.excel-status-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-pill.status-ready {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-metric {
  font-size: 0.76rem;
}

/* ========================================================
   CLIENT DEPLOYED APS & HOTSPOT WORKSPACE STYLES
   ======================================================== */
.client-aps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-top: 14px;
}

.client-ap-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.client-ap-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

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

.ap-model-pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
}

.ap-model-pill.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.ap-model-pill.blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.ap-status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #10b981;
}

.client-ap-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.client-ap-location {
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
}

.client-ap-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cap-item {
  display: flex;
  flex-direction: column;
}

.cap-k {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cap-v {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cap-v.highlight-cyan {
  color: var(--cyan);
}

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

/* Empty State Card */
.empty-state-glass {
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 44px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-state-glass h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.empty-state-glass p {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0;
}

/* Hotspot Workspace */
.hotspot-workspace {
  padding: 24px;
}

.hotspot-split-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-top: 20px;
}

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

.hotspot-preview-side {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.preview-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.preview-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #06b6d4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.preview-device-type {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Phone Mockup */
.phone-mockup {
  background: #090d16;
  border: 2px solid #334155;
  border-radius: 20px;
  padding: 14px 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  position: relative;
}

.phone-top-notch {
  width: 50px;
  height: 4px;
  background: #334155;
  border-radius: 4px;
  margin: 0 auto 10px auto;
}

.phone-wifi-header {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
  padding-left: 4px;
}

.phone-wifi-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.phone-wifi-item.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}

.phone-wifi-item.muted {
  opacity: 0.5;
}

.wifi-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.wifi-meta {
  font-size: 0.72rem;
  color: #94a3b8;
}

.hardware-specs-card {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.spec-k {
  color: var(--text-dim);
}

.spec-v {
  color: var(--text-main);
  font-weight: 600;
}


