/* ==========================================================================
   TextilesFlowErp - Official Product Showcase & Loom Telemetry Portal
   Brand Colors:
   - Primary Dark: #0b1329 / #0f172a / #1e293b
   - Accent Cyan: #0284c7 / #0ea5e9 / #38bdf8
   - Loom Green (Running): #00a32a / #10b981
   - Loom Amber (Stoppage): #f59e0b / #d97706
   - Loom Red (Offline): #ef4444 / #dc2626
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --primary-navy: #0f172a;
  --dark-bg: #090d16;
  --dark-card: #131c31;
  --dark-border: #1e293b;
  --brand-cyan: #0284c7;
  --brand-cyan-light: #38bdf8;
  --brand-cyan-glow: rgba(14, 165, 233, 0.25);
  --loom-green: #00a32a;
  --loom-green-light: #10b981;
  --loom-green-bg: #f0fdf4;
  --loom-amber: #f59e0b;
  --loom-amber-dark: #d97706;
  --loom-amber-bg: #fffbeb;
  --loom-red: #ef4444;
  --loom-red-bg: #fef2f2;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --bg-soft: #f8fafc;
  --bg-card: #ffffff;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12), 0 12px 15px -8px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.35);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-main);
  background-color: #ffffff;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   Navigation Header (Sticky Glassmorphic & Ultra-Responsive)
   ========================================================================== */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  transition: var(--transition);
}

.header-wrapper.scrolled {
  background: rgba(15, 23, 42, 0.97);
  border-bottom: 1px solid rgba(30, 41, 59, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.header-wrapper.scrolled .nav-link {
  color: #e2e8f0;
}

.header-wrapper.scrolled .nav-link:hover,
.header-wrapper.scrolled .nav-link.active {
  color: var(--brand-cyan-light);
}

.header-wrapper.scrolled .brand-sub {
  color: #94a3b8;
}

.navbar {
  padding: 8px 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-right: 1.1rem;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.1));
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--primary-navy);
  line-height: 1.1;
  text-transform: none;
}

.header-wrapper.scrolled .brand-title {
  color: #ffffff;
}

.brand-title span {
  color: var(--brand-cyan);
}

.brand-sub {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.7px;
  color: #64748b;
  text-transform: uppercase;
}

.navbar-nav {
  gap: 2px;
  align-items: center;
}

.nav-link {
  font-size: 0.80rem;
  font-weight: 600;
  color: #334155;
  padding: 5px 8px !important;
  border-radius: 8px;
  text-transform: none;
  letter-spacing: 0.1px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-cyan);
  background: rgba(2, 132, 199, 0.08);
}

/* Modern Glassmorphic Nav Dropdown Menus */
.modern-nav-dropdown {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
  padding: 8px;
  min-width: 270px;
  animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.modern-nav-dropdown .dropdown-item {
  font-size: 0.81rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  color: #1e293b;
  transition: var(--transition);
}

.modern-nav-dropdown .dropdown-item:hover {
  background: #f0f9ff;
  color: #0284c7;
  transform: translateX(3px);
}

.header-wrapper.scrolled .modern-nav-dropdown {
  background: rgba(15, 23, 42, 0.98);
  border-color: rgba(51, 65, 85, 0.8);
}

.header-wrapper.scrolled .modern-nav-dropdown .dropdown-item {
  color: #f1f5f9;
}

.header-wrapper.scrolled .modern-nav-dropdown .dropdown-item:hover {
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
}

.nav-badge-pill {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-size: 0.58rem;
  padding: 1px 6px;
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-left: 5px;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
  display: inline-block;
  line-height: 1.35;
  vertical-align: middle;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Primary High-Contrast Login ERP Button (Always Visible) */
.btn-login-erp-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 30px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
}

.btn-login-erp-nav:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
  color: #ffffff !important;
}

/* Header WhatsApp Direct Action Button */
.btn-whatsapp-header {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  background: #25d366;
  color: #ffffff !important;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 30px;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.35);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}

.btn-whatsapp-header:hover {
  background: #1ebc57;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(37, 211, 102, 0.5);
  color: #ffffff !important;
}

/* Quick Floating Login ERP Pill (Like WhatsApp) */
.floating-login-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 30px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  font-size: 0.80rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.45);
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.floating-login-mini-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
  color: #ffffff !important;
}

/* Mobile Direct Header Login Button (Next to Hamburger) */
.btn-login-header-mobile {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  text-decoration: none;
  white-space: nowrap;
}

.btn-login-portal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: transparent;
  border: 1.5px solid var(--brand-cyan);
  color: var(--brand-cyan);
  font-size: 0.80rem;
  font-weight: 600;
  border-radius: 30px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
  cursor: pointer;
}

.btn-login-portal:hover {
  background: var(--brand-cyan);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-size: 0.80rem;
  font-weight: 600;
  border-radius: 30px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
  cursor: pointer;
}

.btn-cta-primary:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.45);
  color: #ffffff;
}

/* ==========================================================================
   Hero Section with Dynamic Loom Telemetry Visuals (Compact & Focused)
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 60px 0 28px;
  background: radial-gradient(circle at 10% 20%, rgba(2, 132, 199, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.06) 0%, transparent 40%),
              linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.45;
  pointer-events: none;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.25);
  padding: 4px 13px;
  border-radius: 30px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--brand-cyan);
  margin-bottom: 0;
}

.hero-pill-badge i {
  color: #10b981;
}

.hero-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.18;
  color: var(--primary-navy);
  margin-bottom: 10px;
  letter-spacing: -0.8px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 0.96rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 12px;
  max-width: 580px;
}

/* Zero Tampering & Machine Panel Safety Guarantee Card */
.hero-machine-safety-box {
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.95) 0%, rgba(240, 249, 255, 0.95) 100%);
  border: 1.5px solid #10b981;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.08);
  max-width: 610px;
}

.safety-box-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #065f46;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}

.safety-box-title i {
  color: #10b981;
  font-size: 1rem;
}

.safety-box-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.safety-pill {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.safety-pill.green {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.safety-pill.blue {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
}

.safety-pill.purple {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #d8b4fe;
}

.safety-box-condition {
  font-size: 0.78rem;
  color: #92400e;
  background: #fef3c7;
  border: 1px dashed #f59e0b;
  border-radius: 8px;
  padding: 6px 10px;
  line-height: 1.45;
}

.safety-box-condition i {
  color: #d97706;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-hero-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: #ffffff;
  color: var(--primary-navy);
  border: 1.5px solid #e2e8f0;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.84rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.btn-hero-play:hover {
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-hero-play i {
  color: var(--brand-cyan);
  font-size: 1rem;
}

.hero-stat-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.1;
  font-family: 'JetBrains Mono', monospace;
}

.stat-label {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Hero Interactive Simulated Loom Telemetry Card
   ========================================================================== */
.telemetry-preview-container {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(145deg, #0b1329 0%, #0f172a 100%);
  padding: 20px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.telemetry-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
}

.factory-name-tag {
  display: flex;
  align-items: center;
  gap: 10px;
}

.factory-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

.factory-name-tag h6 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #f8fafc;
}

.telemetry-badge-live {
  font-size: 0.7rem;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  border-radius: 20px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.hero-loom-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

/* Machine Card - Strict 3-Tier Factory Color Implementation */
.mock-loom-card {
  border-radius: 14px;
  padding: 14px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.mock-loom-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

/* Green Running Machine */
.mock-loom-card.state-running {
  background: linear-gradient(145deg, #064e3b 0%, #022c22 100%);
  border: 1.5px solid #059669;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

/* Orange/Amber Stopped Machine (ચાલુમાં બંધ થાય) */
.mock-loom-card.state-stopped {
  background: linear-gradient(145deg, #78350f 0%, #451a03 100%);
  border: 1.5px solid #d97706;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.card-mach-num {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-status-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.state-running .card-status-pill {
  background: #10b981;
  color: #ffffff;
}

.state-stopped .card-status-pill {
  background: #f59e0b;
  color: #ffffff;
  animation: blink-stop 1.2s infinite;
}

@keyframes blink-stop {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.card-metric-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.metric-rpm-val {
  font-size: 1.8rem;
  font-weight: 900;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
}

.state-running .metric-rpm-val {
  color: #34d399;
}

.state-stopped .metric-rpm-val {
  color: #fbbf24;
}

.metric-rpm-unit {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
}

.card-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.7rem;
}

.cd-box {
  display: flex;
  flex-direction: column;
}

.cd-label {
  color: #94a3b8;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.cd-val {
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: #f1f5f9;
}

.stop-banner {
  background: rgba(245, 158, 11, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.5);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #fef3c7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.hero-mini-summary-bar {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 600;
}

.sum-metric span {
  color: var(--brand-cyan-light);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

/* ==========================================================================
   Section Headings (Matching m-sense styling with refined typography)
   ========================================================================== */
.section-head-wrapper {
  margin-bottom: 24px;
}

.sec-hed-pin-inline {
  display: inline-block;
  position: relative;
}

.sec-hed-sub {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand-cyan);
  margin-bottom: 4px;
}

.sec-hed-line-2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.5px;
  position: relative;
  padding-bottom: 8px;
}

.sec-hed-line-2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #0284c7, #06b6d4);
  border-radius: 4px;
}

.sec-hed-desc {
  font-size: 0.90rem;
  color: #64748b;
  max-width: 650px;
  margin: 6px auto 0;
  line-height: 1.5;
}

/* ==========================================================================
   Key Features List Section (Matching m-sense structure)
   ========================================================================== */
.key-features-section {
  padding: 40px 0;
  background-color: #ffffff;
}

.feaul-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}

.feaul-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #ffffff;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feaul-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-cyan-light);
  box-shadow: var(--shadow-md);
}

.feaul-icon-box {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.1) 0%, rgba(14, 165, 233, 0.05) 100%);
  color: var(--brand-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.feaul-card:hover .feaul-icon-box {
  background: var(--brand-cyan);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.feaul-content h5 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 4px;
}

.feaul-content p {
  font-size: 0.80rem;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

/* ==========================================================================
   Prime Feature Interactive Showcase Tabs (Loom Telemetry In-Depth)
   ========================================================================== */
.prime-feature-showcase-section {
  padding: 42px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.prime-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
}

.prime-tab-btn {
  padding: 6px 14px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #475569;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.prime-tab-btn:hover {
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
}

.prime-tab-btn.active {
  background: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.2);
}

.prime-tab-content-panel {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.prime-tab-content-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.showcase-display-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.showcase-header-bar {
  background: #0f172a;
  color: #ffffff;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.dot-w {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.showcase-title-tag {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #cbd5e1;
}

.showcase-body-content {
  padding: 30px;
}

/* ==========================================================================
   Full Interactive Loom Card Grid Demo
   ========================================================================== */
.telemetry-interactive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 15px;
}

.interactive-loom-card {
  border-radius: 12px;
  padding: 14px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.interactive-loom-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.interactive-loom-card.state-running {
  background: linear-gradient(135deg, #065f46 0%, #022c22 100%);
  border: 1.5px solid #10b981;
}

.interactive-loom-card.state-amber {
  background: linear-gradient(135deg, #92400e 0%, #451a03 100%);
  border: 1.5px solid #f59e0b;
}

.interactive-loom-card.state-offline {
  background: linear-gradient(135deg, #7f1d1d 0%, #450a0a 100%);
  border: 1.5px solid #ef4444;
}

.ilc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.ilc-title {
  font-weight: 800;
  font-size: 1rem;
}

.ilc-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  text-transform: uppercase;
}

.state-running .ilc-badge { background: #10b981; color: #fff; }
.state-amber .ilc-badge { background: #f59e0b; color: #fff; animation: blink-stop 1.2s infinite; }
.state-offline .ilc-badge { background: #ef4444; color: #fff; }

.ilc-rpm-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.ilc-rpm-num {
  font-size: 1.9rem;
  font-weight: 900;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
}

.state-running .ilc-rpm-num { color: #34d399; }
.state-amber .ilc-rpm-num { color: #fde047; }
.state-offline .ilc-rpm-num { color: #fca5a5; }

.ilc-table-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  font-size: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 6px;
}

.ilc-stop-alert {
  background: rgba(245, 158, 11, 0.35);
  border: 1px solid #f59e0b;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #fffbeb;
  margin-top: 6px;
}

/* ==========================================================================
   Interactive Table / List View Showcase
   ========================================================================== */
.table-telemetry-styled {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
}

.table-telemetry-styled th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 2px solid #cbd5e1;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.table-telemetry-styled td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
  vertical-align: middle;
}

.table-telemetry-styled tbody tr:hover {
  background: #f8fafc;
}

.badge-tag-run {
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
}

.badge-tag-stop {
  background: #fef3c7;
  color: #b45309;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
}

/* ==========================================================================
   Services We Provide Section (Matching m-sense with Rich Modals)
   ========================================================================== */
.services-section {
  padding: 40px 0;
  background-color: #ffffff;
}

.service-box-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-box-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--brand-cyan);
  transition: var(--transition);
}

.service-box-card:hover {
  transform: translateY(-4px);
  border-color: rgba(2, 132, 199, 0.4);
  box-shadow: var(--shadow-lg);
}

.service-box-card:hover::before {
  height: 100%;
}

.service-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12) 0%, rgba(14, 165, 233, 0.05) 100%);
  color: var(--brand-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.service-box-card:hover .service-icon-wrapper {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

.service-box-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 6px;
}

.service-box-card p {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 12px;
  flex-grow: 1;
}

.btn-readmore {
  align-self: flex-start;
  background: transparent;
  border: none;
  color: var(--brand-cyan);
  font-weight: 600;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
}

.btn-readmore:hover {
  color: #0369a1;
  gap: 9px;
}

/* ==========================================================================
   Loom Controller Compatibility Matrix
   ========================================================================== */
.controllers-section {
  padding: 40px 0;
  background: #0f172a;
  color: #ffffff;
}

.controllers-section .sec-hed-line-2 {
  color: #ffffff;
}

.controller-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

.controller-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--brand-cyan);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.25);
}

.controller-logo-badge {
  font-size: 1rem;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 6px;
}

.controller-card h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #f8fafc;
}

.controller-card p {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.45;
}

/* ==========================================================================
   Downtime & ROI Calculator
   ========================================================================== */
.roi-calculator-section {
  padding: 40px 0;
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
}

.calc-box-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid #e2e8f0;
}

.calc-result-box {
  background: linear-gradient(145deg, #0b1329 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-highlight-number {
  font-size: 2.1rem;
  font-weight: 900;
  color: #34d399;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.1;
  margin: 8px 0;
}

/* ==========================================================================
   Footer Section (Matching m-sense Layout)
   ========================================================================== */
.footer-section {
  background: #090d16;
  color: #94a3b8;
  padding: 44px 0 20px;
  border-top: 1px solid #1e293b;
}

.ftr-logo-wrap {
  margin-bottom: 20px;
}

.ftr-logo-img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
}

.ftr-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: #64748b;
  margin-top: 14px;
}

.ftr-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 8px;
}

.ftr-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2.5px;
  background: var(--brand-cyan);
  border-radius: 2px;
}

.ftr-quarter ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  line-height: 1.5;
  color: #94a3b8;
}

.ftr-quarter ul li i {
  color: var(--brand-cyan);
  font-size: 1.1rem;
  margin-top: 2px;
}

.ftr-quarter a {
  color: #cbd5e1;
}

.ftr-quarter a:hover {
  color: var(--brand-cyan);
}

.ftr-link ul li {
  margin-bottom: 12px;
}

.ftr-link ul li a {
  font-size: 0.88rem;
  color: #94a3b8;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ftr-link ul li a:hover {
  color: #38bdf8;
  transform: translateX(4px);
}

.ftr-newsletter p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 14px;
}

.newsletter-form {
  position: relative;
}

.newsletter-form input {
  width: 100%;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid #334155;
  border-radius: 30px;
  color: #ffffff;
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}

.newsletter-form input:focus {
  border-color: var(--brand-cyan);
  background: rgba(255, 255, 255, 0.1);
}

.newsletter-form button {
  position: absolute;
  right: 4px;
  top: 4px;
  padding: 8px 18px;
  background: var(--brand-cyan);
  color: #ffffff;
  border: none;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: #0ea5e9;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.4);
}

.footer-bottom-bar {
  border-top: 1px solid #1e293b;
  padding: 24px 0 0;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #64748b;
}

/* ==========================================================================
   Floating Action Buttons (WhatsApp & Live Demo Request)
   ========================================================================== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
}

.floating-whatsapp-btn:hover {
  color: #ffffff;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   Modal Dialogs (Matching m-sense feature popup architecture)
   ========================================================================== */
.modal-content {
  border-radius: 18px;
  border: none;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.modal-header {
  background: #0f172a;
  color: #ffffff;
  border-bottom: 1px solid #1e293b;
  padding: 18px 24px;
}

.modal-title {
  font-weight: 700;
  font-size: 1.15rem;
}

.modal-body {
  padding: 26px;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.7;
}

.modal-footer {
  border-top: 1px solid #e2e8f0;
  padding: 14px 24px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.3rem;
  }
  .hero-loom-cards-grid {
    grid-template-columns: 1fr;
  }
  .telemetry-preview-container {
    margin-top: 40px;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 1.95rem;
  }
  .hero-stat-badges {
    gap: 16px;
  }
  .stat-num {
    font-size: 1.3rem;
  }
  .sec-hed-line-2 {
    font-size: 1.65rem;
  }
  .feaul-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Exact Image 2 Authentic Login Card Styling
   ========================================================================== */
.modal-login-dialog {
  max-width: 460px;
  margin: 1.75rem auto;
}

.login-auth-card {
  position: relative;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.08);
  padding: 40px 36px 32px;
  overflow: hidden;
  border: none;
}

.login-watermark-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background-image: url('../assets/images/logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
}

.login-card-content {
  position: relative;
  z-index: 1;
}

.login-squircle-logo {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  background: #ffffff;
  border-radius: 22px;
  border: 1.5px solid #dbeafe;
  box-shadow: 0 12px 28px -6px rgba(37, 99, 235, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.login-squircle-logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.login-brand-heading {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.login-sub-text {
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
  margin-bottom: 24px;
  font-weight: 500;
}

.login-field-group {
  margin-bottom: 16px;
}

.login-field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.login-field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}

.login-forgot-link-blue {
  font-size: 0.78rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  transition: var(--transition);
}

.login-forgot-link-blue:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 1rem;
  pointer-events: none;
}

.login-input-field {
  width: 100%;
  height: 46px;
  padding: 10px 14px 10px 42px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.9rem;
  color: #0f172a;
  font-weight: 500;
  outline: none;
  transition: var(--transition);
}

.login-input-field:focus {
  background: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.login-eye-btn {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
}

.login-captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.login-captcha-box {
  width: 145px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e0f2fe 0%, #f3e8ff 50%, #dcfce7 100%);
  border: 1.5px solid #93c5fd;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.login-captcha-waves {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.25;
  background-image: repeating-linear-gradient(45deg, #2563eb, #2563eb 2px, transparent 2px, transparent 8px);
  pointer-events: none;
}

.login-captcha-text {
  font-family: 'Space Mono', 'JetBrains Mono', monospace;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 2px;
  z-index: 1;
}

.login-captcha-refresh-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 4px;
  transition: transform 0.3s ease;
}

.login-captcha-refresh-btn:hover {
  color: #2563eb;
  transform: rotate(90deg);
}

.login-captcha-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.login-forgot-right {
  display: block;
  text-align: right;
  color: #ef4444;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 18px;
  text-decoration: none;
}

.login-forgot-right:hover {
  text-decoration: underline;
  color: #dc2626;
}

.btn-signin-vibrant {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: 12px;
  border: none;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 18px;
}

.btn-signin-vibrant:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45);
}

.login-security-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 30px;
  padding: 6px 14px;
  margin: 0 auto 16px;
  width: fit-content;
}

.login-security-pill i {
  color: #10b981;
  font-size: 0.95rem;
}

.login-security-pill span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #065f46;
}

.login-register-footer {
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

.login-register-footer a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
}

.login-register-footer a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Dual View Switcher & 24-Loom Authentic Weaving Floor Shed (Image 1)
   ========================================================================== */
.card-view-mode-toggle {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-subview-toggle {
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: 8px !important;
  color: #475569;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-subview-toggle:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.btn-subview-toggle.active {
  color: #0f172a;
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.card-subview-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.card-subview-panel.active {
  display: block;
}

/* Factory Floor Wrapper */
.factory-floor-wrapper {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  overflow-x: auto;
}

/* Factory Top Toolbar & KPI Bar */
.factory-top-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.f-tools-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.f-tool-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.f-tool-btn:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.f-tool-btn.f-btn-primary-grid {
  background: #ef4444;
  color: #ffffff;
  border-color: #dc2626;
}

.dropdown-toggle-split-none::after {
  display: none !important;
}

.f-view-dropdown-menu {
  min-width: 330px;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.22) !important;
  border: 1px solid #e2e8f0 !important;
  padding: 8px;
  z-index: 1080;
  animation: fadeInDown 0.18s ease-in-out;
}

.f-view-dropdown-menu .dropdown-header {
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  padding: 4px 10px;
}

.f-view-dropdown-menu .dropdown-item {
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  transition: all 0.15s ease;
  margin-bottom: 2px;
}

.f-view-dropdown-menu .dropdown-item:hover {
  background: #f1f5f9;
  color: #0f172a;
  transform: translateX(3px);
}

.f-view-dropdown-menu .dropdown-item.active {
  background: #ef4444 !important;
  color: #ffffff !important;
}

.f-view-dropdown-menu .dropdown-item.active i {
  color: #ffffff !important;
}

.f-pill-tv {
  background: #3b82f6;
  color: #ffffff;
  border: 1px solid #2563eb;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.f-pill-tv:hover {
  background: #1d4ed8;
  border-color: #1e40af;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}

.f-kpi-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.f-kpi-pill {
  border-radius: 6px;
  padding: 3px 10px;
  text-align: center;
  min-width: 62px;
  line-height: 1.15;
}

.f-kpi-val {
  font-size: 0.95rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
}

.f-kpi-lbl {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: capitalize;
}

/* Pill color themes */
.f-pill-amber {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
}
.f-pill-amber .f-kpi-lbl { color: #92400e; }

.f-pill-blue {
  background: #ffffff;
  border: 1.5px solid #38bdf8;
  color: #0284c7;
}
.f-pill-blue .f-kpi-lbl { color: #0369a1; }

.f-pill-pink {
  background: #ffffff;
  border: 1.5px solid #f472b6;
  color: #db2777;
}
.f-pill-pink .f-kpi-lbl { color: #be185d; }

.f-pill-crimson {
  background: #dc2626;
  border: 1.5px solid #b91c1c;
  color: #ffffff;
}
.f-pill-crimson .f-kpi-lbl { color: #fecaca; }

.f-pill-select {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 6px 10px;
  cursor: pointer;
}

.f-pill-refresh {
  background: #ffffff;
  border: 1.5px solid #f59e0b;
  color: #d97706;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 20px;
}

.f-pill-full {
  background: #0d9488;
  border: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 6px;
}

.f-pill-tv {
  background: #7c3aed;
  border: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 6px;
}

.f-timestamp {
  color: #dc2626;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1.2;
}

/* 24 Loom Matrix Grid Layout */
.factory-grid-24 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

@media (max-width: 1400px) {
  .factory-grid-24 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .factory-grid-24 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .factory-grid-24 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .factory-grid-24 {
    grid-template-columns: 1fr;
  }
}

/* Individual 24-Loom Card */
.flc-card {
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  font-size: 0.7rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.flc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.flc-card.state-running {
  border: 1.5px solid #00a32a;
}
.flc-card.state-amber {
  border: 1.5px solid #f59e0b;
}
.flc-card.state-offline {
  border: 1.5px solid #ef4444;
}

/* Card Header */
.flc-card-header {
  padding: 4px 8px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
}

.state-running .flc-card-header {
  background: #00a32a;
}
.state-amber .flc-card-header {
  background: #f59e0b;
}
.state-offline .flc-card-header {
  background: #dc2626;
}

.flc-m-id {
  font-weight: 800;
  letter-spacing: 0.3px;
}
.flc-sort-name {
  font-size: 0.62rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 95px;
  text-align: center;
}
.flc-timer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
}

/* Sub-header status bar */
.flc-subbar {
  padding: 2px 6px;
  font-size: 0.6rem;
  font-weight: 700;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
}

.state-running .flc-subbar {
  background: #f0fdf4;
  color: #166534;
}

.state-amber .flc-subbar {
  background: #fef3c7;
  color: #b91c1c;
  animation: blink-stop 1.2s infinite;
}

.state-offline .flc-subbar {
  background: #fee2e2;
  color: #991b1b;
}

/* Card Body */
.flc-body {
  padding: 6px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.flc-row-1 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4px;
}

.flc-left-metrics {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.flc-metric-item {
  display: grid;
  grid-template-columns: 14px 62px 1fr;
  align-items: center;
  column-gap: 5px;
  font-size: 0.64rem;
  color: #334155;
  white-space: nowrap;
  line-height: 1.35;
}

.flc-metric-item .f-ico {
  font-size: 0.62rem;
  text-align: center;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flc-metric-item strong {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  text-align: right;
  padding-right: 2px;
  letter-spacing: -0.2px;
}

.flc-metric-item .unit {
  font-size: 0.58rem;
  font-weight: 600;
  color: #64748b;
  text-align: left;
}

.flc-right-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.flc-eff-badge {
  font-size: 0.58rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}

.flc-eff-badge.badge-green {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #15803d;
}

.flc-eff-badge.badge-amber {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #b45309;
}

.flc-eff-badge.badge-red {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
}

.flc-icon-strip {
  display: flex;
  gap: 4px;
  font-size: 0.65rem;
  color: #64748b;
  margin-top: 2px;
}

.flc-icon-strip span {
  cursor: pointer;
  padding: 1px 3px;
  border-radius: 4px;
  transition: all 0.15s ease-in-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.04);
}

.flc-icon-strip span:hover {
  transform: scale(1.35);
  background: rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.flc-runtime-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.55rem;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
  border-top: 1px dashed #e2e8f0;
  padding-top: 2px;
}

.flc-run-time { color: #16a34a; font-weight: 700; }
.flc-stop-time { color: #dc2626; font-weight: 700; }

/* 7-Column Mini Stops Table */
.flc-stops-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
  font-size: 0.5rem;
  border: 1px solid #e2e8f0;
}

.flc-stops-table th, 
.flc-stops-table td {
  border: 1px solid #e2e8f0;
  padding: 1px 2px;
  text-align: center;
  line-height: 1.1;
}

.flc-stops-table th {
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  font-size: 0.48rem;
}

.flc-stops-table .flc-label-col {
  font-weight: 800;
  background: #f8fafc;
  color: #334155;
  text-align: left;
  padding-left: 3px;
}

.flc-stops-table .flc-val-nonzero {
  color: #dc2626;
  font-weight: 800;
}

.flc-stops-table .flc-val-zero {
  color: #94a3b8;
}

.flc-stops-table .flc-tot-cell {
  background: #f8fafc;
  font-weight: 800;
  color: #0f172a;
}

/* ==========================================================================
   Active Machines Timeline (24 Looms) - Gantt Chart (Images 1 & 2)
   ========================================================================== */
.timeline-gantt-wrapper {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  position: relative;
  overflow-x: auto;
}

.timeline-top-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-top-head h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.timeline-axis-header {
  display: flex;
  align-items: center;
  border-bottom: 1.5px solid #e2e8f0;
  padding-bottom: 8px;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.75rem;
  color: #64748b;
  min-width: 820px;
}

.timeline-col-worker {
  width: 150px;
  min-width: 150px;
  padding-left: 6px;
}

.timeline-col-time-ticks {
  flex: 1;
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
}

.timeline-tick-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: #475569;
}

.timeline-rows-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 820px;
  position: relative;
}

.timeline-loom-row {
  display: flex;
  align-items: center;
  height: 26px;
  border-radius: 4px;
  transition: background 0.15s ease;
  position: relative;
}

.timeline-loom-row:hover {
  background: #f8fafc;
}

.timeline-worker-info {
  width: 150px;
  min-width: 150px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  padding-left: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
}

.timeline-dot.offline {
  background: #ef4444;
}

.timeline-m-name {
  font-weight: 800;
  color: #0f172a;
}

.timeline-w-name {
  font-weight: 700;
  color: #2563eb;
  font-size: 0.68rem;
}

.timeline-track-bar {
  flex: 1;
  height: 16px;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  position: relative;
  cursor: pointer;
}

/* Distinct Realistic Run/Stop Gantt Timeline Bars for 24 Looms (Shift 08:00 - 22:00) */
.timeline-track-bar.pattern-mix,
.timeline-track-bar.tl-bar-m01 {
  background: linear-gradient(90deg, #22c55e 0% 18%, #ef4444 18% 21%, #22c55e 21% 42%, #ef4444 42% 44%, #22c55e 44% 68%, #ef4444 68% 71%, #22c55e 71% 88%, #ef4444 88% 90%, #22c55e 90% 100%);
}
.timeline-track-bar.tl-bar-m02 {
  background: linear-gradient(90deg, #22c55e 0% 48%, #ef4444 48% 50%, #22c55e 50% 82%, #ef4444 82% 83.5%, #22c55e 83.5% 100%);
}
.timeline-track-bar.tl-bar-m03 {
  background: linear-gradient(90deg, #22c55e 0% 32%, #ef4444 32% 34%, #22c55e 34% 65%, #f59e0b 65% 67.5%, #22c55e 67.5% 100%);
}
.timeline-track-bar.tl-bar-m04 {
  background: linear-gradient(90deg, #22c55e 0% 28%, #ef4444 28% 30%, #22c55e 30% 52%, #f59e0b 52% 57%, #22c55e 57% 85%, #ef4444 85% 87%, #22c55e 87% 100%);
}
.timeline-track-bar.tl-bar-m05 {
  background: linear-gradient(90deg, #22c55e 0% 62%, #ef4444 62% 63.5%, #22c55e 63.5% 100%);
}
.timeline-track-bar.tl-bar-m06 {
  background: linear-gradient(90deg, #22c55e 0% 14%, #ef4444 14% 18%, #22c55e 18% 38%, #ef4444 38% 43%, #22c55e 43% 60%, #ef4444 60% 64%, #22c55e 64% 78%, #ef4444 78% 84%, #22c55e 84% 100%);
}
.timeline-track-bar.tl-bar-m07 {
  background: linear-gradient(90deg, #22c55e 0% 24%, #ef4444 24% 28%, #22c55e 28% 46%, #ef4444 46% 50%, #22c55e 50% 66%, #ef4444 66% 100%);
}
.timeline-track-bar.tl-bar-m08 {
  background: linear-gradient(90deg, #22c55e 0% 28%, #ef4444 28% 30%, #22c55e 30% 62%, #ef4444 62% 65%, #22c55e 65% 88%, #ef4444 88% 90.5%, #22c55e 90.5% 100%);
}
.timeline-track-bar.tl-bar-m09 {
  background: linear-gradient(90deg, #22c55e 0% 38%, #f59e0b 38% 41%, #22c55e 41% 74%, #ef4444 74% 76%, #22c55e 76% 100%);
}
.timeline-track-bar.tl-bar-m10 {
  background: linear-gradient(90deg, #22c55e 0% 45%, #ef4444 45% 46.5%, #22c55e 46.5% 85%, #ef4444 85% 87%, #22c55e 87% 100%);
}
.timeline-track-bar.pattern-solid-green,
.timeline-track-bar.tl-bar-m11 {
  background: #22c55e;
}
.timeline-track-bar.tl-bar-m12 {
  background: linear-gradient(90deg, #22c55e 0% 22%, #f59e0b 22% 24%, #22c55e 24% 58%, #ef4444 58% 60.5%, #22c55e 60.5% 84%, #ef4444 84% 86%, #22c55e 86% 100%);
}
.timeline-track-bar.tl-bar-m13 {
  background: linear-gradient(90deg, #22c55e 0% 15%, #f59e0b 15% 25%, #22c55e 25% 64%, #ef4444 64% 67%, #22c55e 67% 88%, #ef4444 88% 91%, #22c55e 91% 100%);
}
.timeline-track-bar.pattern-heavy-stop,
.timeline-track-bar.tl-bar-m14 {
  background: linear-gradient(90deg, #22c55e 0% 36%, #ef4444 36% 43%, #22c55e 43% 72%, #ef4444 72% 75%, #22c55e 75% 100%);
}
.timeline-track-bar.tl-bar-m15 {
  background: linear-gradient(90deg, #22c55e 0% 55%, #ef4444 55% 56.5%, #22c55e 56.5% 100%);
}
.timeline-track-bar.tl-bar-m16 {
  background: linear-gradient(90deg, #22c55e 0% 25%, #ef4444 25% 27%, #22c55e 27% 50%, #f59e0b 50% 56%, #22c55e 56% 75%, #ef4444 75% 81%, #22c55e 81% 100%);
}
.timeline-track-bar.tl-bar-m17 {
  background: linear-gradient(90deg, #22c55e 0% 35%, #ef4444 35% 37.5%, #22c55e 37.5% 68%, #ef4444 68% 71%, #22c55e 71% 100%);
}
.timeline-track-bar.tl-bar-m18 {
  background: linear-gradient(90deg, #22c55e 0% 44%, #ef4444 44% 45.5%, #22c55e 45.5% 79%, #ef4444 79% 81%, #22c55e 81% 100%);
}
.timeline-track-bar.tl-bar-m19 {
  background: linear-gradient(90deg, #22c55e 0% 29%, #f59e0b 29% 32.5%, #22c55e 32.5% 61%, #ef4444 61% 64%, #22c55e 64% 83%, #ef4444 83% 86%, #22c55e 86% 100%);
}
.timeline-track-bar.tl-bar-m20 {
  background: linear-gradient(90deg, #22c55e 0% 12%, #f59e0b 12% 23%, #22c55e 23% 56%, #ef4444 56% 59%, #22c55e 59% 82%, #ef4444 82% 86%, #22c55e 86% 100%);
}
.timeline-track-bar.tl-bar-m21 {
  background: linear-gradient(90deg, #22c55e 0% 42%, #ef4444 42% 56%, #22c55e 56% 76%, #ef4444 76% 80%, #22c55e 80% 100%);
}
.timeline-track-bar.tl-bar-m22 {
  background: linear-gradient(90deg, #22c55e 0% 33%, #ef4444 33% 35%, #22c55e 35% 66%, #ef4444 66% 69%, #22c55e 69% 89%, #ef4444 89% 91%, #22c55e 91% 100%);
}
.timeline-track-bar.pattern-offline-red,
.timeline-track-bar.tl-bar-m23 {
  background: linear-gradient(90deg, #22c55e 0% 11%, #dc2626 11% 100%);
}
.timeline-track-bar.tl-bar-m24 {
  background: linear-gradient(90deg, #22c55e 0% 27%, #ef4444 27% 29%, #22c55e 29% 59%, #ef4444 59% 61.5%, #22c55e 61.5% 86%, #ef4444 86% 88%, #22c55e 88% 100%);
}


/* Floating Tooltip Card (Replica of Image 1 & 2 Popover) */
.timeline-hover-popover {
  position: absolute;
  top: 50px;
  right: 180px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  width: 220px;
  z-index: 100;
  pointer-events: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.tl-pop-status-off {
  font-size: 1.1rem;
  font-weight: 900;
  color: #ef4444;
  margin-bottom: 4px;
}

.tl-pop-status-on {
  font-size: 1.1rem;
  font-weight: 900;
  color: #10b981;
  margin-bottom: 4px;
}

.tl-pop-status-doff {
  font-size: 1.1rem;
  font-weight: 900;
  color: #f59e0b;
  margin-bottom: 4px;
}

.tl-pop-line {
  font-size: 0.76rem;
  color: #334155;
  margin-bottom: 2px;
  line-height: 1.3;
}

.tl-pop-details-off {
  font-size: 0.76rem;
  font-weight: 700;
  color: #dc2626;
  margin-top: 4px;
}

.tl-pop-details-on {
  font-size: 0.76rem;
  font-weight: 700;
  color: #15803d;
  margin-top: 4px;
}

/* ==========================================================================
   TB Break History & Stoppage Reason History Table (Image 3)
   ========================================================================== */
.tb-history-wrapper {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.tb-filters-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.tb-filter-btn {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tb-filter-btn:hover,
.tb-filter-btn.active {
  background: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
}

.table-tb-history {
  width: 100%;
  border-collapse: collapse;
}

.table-tb-history th {
  background: #f8fafc;
  color: #475569;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 10px 14px;
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
}

.table-tb-history td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.82rem;
  color: #1e293b;
  vertical-align: middle;
}

.table-tb-history tr:hover td {
  background: #f8fafc;
}

.tb-duration-badge {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  color: #dc2626;
  font-size: 0.88rem;
}

.tb-reason-text {
  font-weight: 600;
  color: #0f172a;
}

.tb-reason-en {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
}

/* ==========================================================================
   Active Factory Warnings & Predictive Alarms Center
   ========================================================================== */
.warning-center-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.warning-kpi-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .warning-kpi-summary-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.warning-kpi-box {
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.warning-kpi-box.box-red {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}
.warning-kpi-box.box-amber {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
}
.warning-kpi-box.box-yellow {
  background: #fefce8;
  border: 1px solid #fef08a;
  color: #854d0e;
}
.warning-kpi-box.box-green {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.warning-kpi-num {
  font-size: 1.6rem;
  font-weight: 900;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
}

.warning-kpi-title {
  font-size: 0.75rem;
  font-weight: 700;
}

.warning-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.alarm-card-item {
  border-radius: 10px;
  padding: 14px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.alarm-card-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.alarm-card-item.sev-critical {
  border-left: 5px solid #ef4444;
  background: linear-gradient(to right, #fff5f5 0%, #ffffff 30%);
}

.alarm-card-item.sev-predictive {
  border-left: 5px solid #f59e0b;
  background: linear-gradient(to right, #fffbeb 0%, #ffffff 30%);
}

.alarm-card-item.sev-quality {
  border-left: 5px solid #eab308;
  background: linear-gradient(to right, #fefce8 0%, #ffffff 30%);
}

.alarm-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.alarm-machine-tag {
  font-weight: 800;
  font-size: 0.85rem;
  color: #0f172a;
}

.alarm-badge-sev {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sev-critical .alarm-badge-sev {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.sev-predictive .alarm-badge-sev {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

.sev-quality .alarm-badge-sev {
  background: #fef9c3;
  color: #ca8a04;
  border: 1px solid #fef08a;
}

.alarm-title-headline {
  font-weight: 800;
  font-size: 0.92rem;
  color: #0f172a;
  margin-bottom: 6px;
  line-height: 1.3;
}

.alarm-desc-para {
  font-size: 0.78rem;
  color: #475569;
  margin-bottom: 10px;
  line-height: 1.4;
}

.alarm-meta-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed #e2e8f0;
  padding-top: 8px;
  font-size: 0.72rem;
  color: #64748b;
}

.alarm-action-btn-sm {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.alarm-action-btn-sm:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* ==========================================================================
   No Server / Private PC Required Highlight Banner & Badges
   ========================================================================== */
.no-server-banner-section {
  padding: 18px 0 8px;
  background: #f8fafc;
}

.no-server-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1.5px solid #334155;
  border-radius: 14px;
  padding: 20px 24px;
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
  position: relative;
  overflow: hidden;
}

.no-server-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.no-srv-tag-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.no-srv-tag-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  backdrop-filter: blur(8px);
}

/* ==========================================================================
   Jemi (જેમી) - TextilesFlow Smart AI Chat Widget & Floating Launcher
   ========================================================================== */
.floating-action-cluster {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1060;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* 1. Direct WhatsApp Mini Floating Button */
.floating-whatsapp-mini-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
}

.floating-whatsapp-mini-btn:hover {
  color: #ffffff;
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp-mini-btn::after {
  content: 'Direct WhatsApp';
  position: absolute;
  right: 56px;
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateX(5px);
}

.floating-whatsapp-mini-btn:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* 2. Primary Jemi AI Chat Floating Button */
.floating-jemi-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.45);
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.floating-jemi-btn:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.6);
}

.jemi-online-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #10b981;
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  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 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* 3. Floating Prompt Bubble / Teaser */
.jemi-prompt-bubble {
  position: absolute;
  bottom: 11px;
  right: 76px;
  background: #ffffff;
  border: 1.5px solid #38bdf8;
  border-radius: 14px;
  padding: 8px 14px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 0.82rem;
  color: #0f172a;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  z-index: 1065;
}

.jemi-prompt-bubble.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

/* Authentic speech bubble arrow pointing right towards Jemi launcher */
.jemi-prompt-bubble::after {
  content: '';
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 7px solid #38bdf8;
}

.jemi-prompt-bubble::before {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid #ffffff;
  z-index: 1;
}

.jemi-prompt-bubble strong {
  color: #0284c7;
}

.jemi-prompt-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0 0 4px;
  transition: color 0.15s ease;
}

.jemi-prompt-close:hover {
  color: #ef4444;
}

/* ==========================================================================
   4. Jemi AI Interactive Chat Window
   ========================================================================== */
.jemi-chat-widget {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.22), 0 8px 16px rgba(15, 23, 42, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1070;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9) translateY(25px);
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.jemi-chat-widget.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

/* Chat Header */
.jemi-chat-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-bottom: 2px solid #0284c7;
  padding: 12px 16px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jemi-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jemi-avatar-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  position: relative;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.5);
}

.jemi-avatar-box::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  background: #10b981;
  border: 2px solid #0f172a;
  border-radius: 50%;
}

.jemi-header-title {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.2;
  margin: 0;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.jemi-ai-pill {
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid #38bdf8;
  color: #38bdf8;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
}

.jemi-header-subtitle {
  font-size: 0.7rem;
  color: #94a3b8;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.jemi-header-subtitle .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
}

.jemi-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.jemi-btn-hdr-action {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.jemi-btn-hdr-action:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.jemi-btn-hdr-action.btn-wa-hdr {
  background: rgba(37, 211, 102, 0.2);
  border-color: #25d366;
  color: #25d366;
}

.jemi-btn-hdr-action.btn-wa-hdr:hover {
  background: #25d366;
  color: #ffffff;
}

/* Chat Messages Scroll Container */
.jemi-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jemi-bubble-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  animation: fadeIn 0.25s ease;
}

.jemi-bubble-row.user {
  justify-content: flex-end;
}

.jemi-avatar-small {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.jemi-bubble {
  max-width: 82%;
  padding: 10px 14px;
  font-size: 0.82rem;
  line-height: 1.45;
  position: relative;
  word-wrap: break-word;
}

.jemi-bubble p {
  margin: 0 0 6px 0;
}

.jemi-bubble p:last-child {
  margin-bottom: 0;
}

.jemi-bubble.jemi-bot {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.jemi-bubble.jemi-user {
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
  color: #ffffff;
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 3px 10px rgba(29, 78, 216, 0.25);
}

.jemi-msg-time {
  font-size: 0.62rem;
  color: #94a3b8;
  margin-top: 4px;
  text-align: right;
}

.jemi-bubble.jemi-user .jemi-msg-time {
  color: rgba(255, 255, 255, 0.7);
}

/* Bullet list inside bot reply */
.jemi-list {
  padding-left: 14px;
  margin: 6px 0;
  font-size: 0.8rem;
}

.jemi-list li {
  margin-bottom: 4px;
}

/* Buttons inside Bot Reply */
.jemi-action-btns {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.jemi-btn-whatsapp {
  background: #25d366;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.76rem;
  padding: 7px 12px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3);
  transition: all 0.2s ease;
}

.jemi-btn-whatsapp:hover {
  background: #1eb956;
  transform: translateY(-1px);
}

.jemi-btn-call {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b !important;
  font-weight: 700;
  font-size: 0.76rem;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.jemi-btn-call:hover {
  background: #e2e8f0;
}

/* Typing Indicator Animation */
.jemi-typing-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
}

.jemi-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
  animation: jemi-blink 1.4s infinite both;
}

.jemi-dot:nth-child(2) { animation-delay: 0.2s; }
.jemi-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes jemi-blink {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.1); }
}

/* Quick Suggestion Chips Rack */
.jemi-quick-chips {
  padding: 8px 12px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.jemi-quick-chips::-webkit-scrollbar {
  display: none;
}

.jemi-chip-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.jemi-chip-btn:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* Chat Input Bar */
.jemi-chat-input-area {
  padding: 10px 12px;
  background: #ffffff;
  border-top: 1.5px solid #e2e8f0;
}

.jemi-input-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jemi-text-input {
  flex: 1;
  height: 40px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1.5px solid #cbd5e1;
  font-size: 0.84rem;
  color: #0f172a;
  outline: none;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.jemi-text-input:focus {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.jemi-btn-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.jemi-btn-send:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

@media (max-width: 480px) {
  .floating-action-cluster {
    bottom: 16px;
    right: 16px;
    gap: 10px;
  }
  .jemi-prompt-bubble {
    right: 68px;
    bottom: 8px;
    font-size: 0.78rem;
    padding: 7px 11px;
    max-width: calc(100vw - 95px);
    white-space: normal;
  }
  .jemi-chat-widget {
    right: 12px;
    bottom: 85px;
    width: calc(100vw - 24px);
    height: 520px;
  }
}

/* ==========================================================================
   Wiltoptex & Chinese Airjet Flagship Showcase Banner
   ========================================================================== */
.wiltoptex-flagship-banner {
  background: linear-gradient(135deg, #09152b 0%, #0f172a 60%, #1e293b 100%);
  border: 1.5px solid rgba(14, 165, 233, 0.35);
  border-radius: 18px;
  padding: 34px 36px;
  color: #ffffff;
  box-shadow: 0 16px 40px -10px rgba(2, 132, 199, 0.25), 0 0 25px rgba(14, 165, 233, 0.15);
  position: relative;
  overflow: hidden;
}

.wiltoptex-flagship-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.wiltoptex-feat-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.wiltoptex-feat-item:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, 0.5);
  background: rgba(255, 255, 255, 0.09);
}

.wiltoptex-screen-frame {
  background: #1e293b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(14, 165, 233, 0.2);
  border: 1.5px solid rgba(14, 165, 233, 0.3);
  transition: transform 0.3s ease;
}

.wiltoptex-screen-frame:hover {
  transform: scale(1.015);
}

.screen-frame-header {
  background: #0f172a;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.frame-dots {
  display: flex;
  gap: 6px;
}

.frame-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.frame-dots .dot.red { background: #ef4444; }
.frame-dots .dot.yellow { background: #f59e0b; }
.frame-dots .dot.green { background: #10b981; }

.frame-title {
  font-size: 0.74rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.8px;
}

.screen-box-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border: 1.5px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.screen-box-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.screen-box-header {
  padding: 10px 14px;
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
}

/* ==========================================================================
   Dual HDMI Screen Mirroring (Wiltoptex & Inovance) Styles
   ========================================================================== */
.hdmi-dual-card {
  background: #0f172a;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid #334155;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hdmi-dual-card:hover {
  transform: translateY(-4px);
  border-color: #0284c7;
  box-shadow: 0 18px 36px -10px rgba(2, 132, 199, 0.35);
}

.hdmi-card-topbar {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hdmi-card-topbar.wiltoptex-bar {
  background: linear-gradient(90deg, #0369a1 0%, #0f172a 100%);
}

.hdmi-card-topbar.inovance-bar {
  background: linear-gradient(90deg, #1e40af 0%, #0f172a 100%);
}

.hdmi-screen-pill {
  font-family: var(--font-monospace, monospace);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
  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 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hdmi-status-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.5px;
  background: rgba(2, 132, 199, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 8px;
  border-radius: 6px;
}

.hdmi-screen-img-wrap {
  background: #000000;
  padding: 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hdmi-screen-img {
  width: 100%;
  max-height: 290px;
  object-fit: contain;
  display: block;
}

.hdmi-card-footer {
  background: #1e293b;
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hdmi-card-footer .h-lbl {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.hdmi-card-footer .h-val {
  font-size: 0.92rem;
  letter-spacing: -0.2px;
}

.hdmi-features-banner {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 26px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  border-left: 5px solid #0284c7;
}

.hdmi-feature-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hdmi-feature-item:hover {
  transform: translateX(3px);
  background: #eff6ff;
  border-color: #bfdbfe;
}

/* Controller Showcase Switcher Buttons */
.controller-switch-btn {
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(14, 165, 233, 0.4);
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 24px;
  border-radius: 30px;
  transition: all 0.25s ease;
  cursor: pointer;
  letter-spacing: 0.3px;
}

.controller-switch-btn:hover {
  color: #ffffff;
  border-color: #38bdf8;
  background: rgba(14, 165, 233, 0.2);
  transform: translateY(-2px);
}

.controller-switch-btn.active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.45);
}
