:root {
  --brand-blue: #3b82f6;
  --brand-blue-deep: #1d4ed8;
  --brand-green: #10b981;
  --brand-green-bright: #34d399;
  --bg: #070913;
  --surface: rgba(15, 23, 42, 0.45);
  --surface-hover: rgba(30, 41, 59, 0.6);
  --surface-active: rgba(15, 23, 42, 0.85);
  --ink: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(59, 130, 246, 0.12);
  --line-bright: rgba(59, 130, 246, 0.25);
  
  --cyan: #06b6d4;
  --cyan-soft: rgba(6, 182, 212, 0.12);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.12);
  --rose: #ef4444;
  --rose-soft: rgba(239, 68, 68, 0.12);
  --green: #10b981;
  --green-soft: rgba(16, 185, 129, 0.12);
  --violet: #8b5cf6;
  --violet-soft: rgba(139, 92, 246, 0.12);
  
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --glass-border-focus: 1px solid rgba(59, 130, 246, 0.5);
  --glass-blur: blur(16px);
  --font-ui: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Outfit", system-ui, -apple-system, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.04), transparent 40%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

body {
  min-height: 100vh;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.locked {
  /* Let landing page scroll naturally at body level */
}
body.locked .app-shell {
  opacity: 1.0;
  pointer-events: none;
  filter: blur(3px);
}
.app-shell {
  transition: opacity 0.5s ease, filter 0.5s ease;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.3);
}
::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.25);
  border-radius: 99px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.45);
}

/* Lockscreen System */
.lockscreen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(5, 7, 16, 0.2), rgba(3, 5, 12, 0.5) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.lockscreen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* SaaS Auth Tabs Switch */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
  width: 100%;
}

.auth-tab {
  flex: 1;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  text-align: center;
}

.auth-tab:hover {
  color: #fff;
}

.auth-tab.active {
  color: #fff;
}

.auth-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-blue);
  box-shadow: 0 0 10px var(--brand-blue);
}

/* Typing accelerated scan animation */
.lockscreen.typing-active .radar-sweep {
  animation: radarSweep 1.2s linear infinite !important;
}
.lockscreen.typing-active .antenna-spin {
  animation: radarSweep 0.4s linear infinite !important;
}

.lock-panel {
  width: min(440px, 100% - 40px);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(6, 182, 212, 0.45);
  background: rgba(6, 10, 20, 0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(6, 182, 212, 0.25), inset 0 0 15px rgba(6, 182, 212, 0.12);
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: cardReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  position: relative;
  overflow: hidden;
}

.lock-panel::after {
  content: "";
  position: absolute;
  left: 0;
  top: -10px;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--brand-green-bright), transparent);
  box-shadow: 0 0 10px var(--brand-green-bright);
  animation: laserSweepLoad 1.4s cubic-bezier(0.4, 0, 0.2, 1) both;
  pointer-events: none;
}

.lock-panel.shake {
  animation: cardShake 0.4s ease-in-out !important;
}

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

.brand-logo-wrap {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-logo-wrap img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.brand-lock h1 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.brand-lock p {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-blue);
  font-weight: 600;
}

.lock-panel label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lock-panel input {
  height: 48px;
  border-radius: 10px;
  border: 1px solid rgba(6, 182, 212, 0.25);
  background: rgba(3, 7, 18, 0.35);
  color: #fff;
  padding: 0 16px;
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
}

.lock-panel input:focus {
  border-color: var(--brand-blue);
  outline: none;
  animation: inputBreath 2.5s infinite alternate ease-in-out;
}

.password-shell {
  position: relative;
  display: flex;
}

.password-shell input {
  width: 100%;
  padding-right: 60px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: var(--muted);
  border: 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
}

.password-toggle:hover {
  color: #fff;
}

.remember-row {
  flex-direction: row !important;
  align-items: center;
  cursor: pointer;
}

.remember-row input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--brand-blue);
  cursor: pointer;
}

.remember-row span {
  font-size: 13px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}

.login-error {
  display: none;
  font-size: 13px;
  color: var(--rose);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.login-error.visible {
  display: block;
}

.access-button {
  height: 50px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.9), rgba(59, 130, 246, 0.9));
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
  color: #fff;
  border: 0;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}

.access-button.loading-btn {
  background: linear-gradient(135deg, var(--brand-blue-deep), rgba(59, 130, 246, 0.3)) !important;
  color: rgba(255, 255, 255, 0.6) !important;
  cursor: not-allowed !important;
}

.access-button.loading-btn::after {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.4), transparent);
  animation: buttonScan 1.2s infinite linear;
}

.access-button:hover:not(.loading-btn) {
  filter: brightness(1.15);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.55), 0 0 10px rgba(52, 211, 153, 0.3);
  transform: translateY(-1px);
}

.access-button:active:not(.loading-btn) {
  transform: translateY(0);
}

/* Cyber Animations Keyframes */
@keyframes cardReveal {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(24px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes laserSweepLoad {
  0% { top: -10px; opacity: 1; }
  70% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@keyframes cardShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

@keyframes inputBreath {
  0% {
    border-color: rgba(6, 182, 212, 0.45);
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.2);
  }
  50% {
    border-color: rgba(52, 211, 153, 0.85);
    box-shadow: 0 0 18px rgba(52, 211, 153, 0.45);
  }
  100% {
    border-color: rgba(6, 182, 212, 0.45);
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.2);
  }
}

@keyframes buttonScan {
  0% { left: -100%; }
  100% { left: 100%; }
}

.login-error.glitch-error {
  animation: errorPulse 1s infinite alternate;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.35);
}

@keyframes errorPulse {
  0% { opacity: 0.82; }
  100% { opacity: 1; text-shadow: 0 0 14px rgba(239, 68, 68, 0.6); }
}

/* App Shell Layout */
.app-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
  position: relative;
  z-index: 5;
}

/* Sidebar Styling */
.module-sidebar {
  border-right: var(--glass-border);
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: var(--glass-blur);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
}

.module-brand {
  padding: 0 24px 20px;
  border-bottom: var(--line) 1px solid;
  display: flex;
  align-items: center;
  gap: 12px;
}

.module-brand .logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  padding: 6px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Rotating HUD ring behind sidebar logo icon */
.module-brand .logo-icon::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  border: 1px dashed rgba(6, 182, 212, 0.55);
  animation: sidebarLogoRotate 10s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes sidebarLogoRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.module-brand .logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: sidebarLogoPulseGlow 4s infinite ease-in-out;
  z-index: 2;
}

@keyframes sidebarLogoPulseGlow {
  0% {
    filter: drop-shadow(-2px 2px 2px rgba(6, 182, 212, 0.4)) 
            drop-shadow(2px -2px 2px rgba(52, 211, 153, 0.4));
  }
  50% {
    filter: drop-shadow(-4px 4px 6px rgba(6, 182, 212, 0.75)) 
            drop-shadow(4px -4px 7px rgba(52, 211, 153, 0.85));
  }
  100% {
    filter: drop-shadow(-2px 2px 2px rgba(6, 182, 212, 0.4)) 
            drop-shadow(2px -2px 2px rgba(52, 211, 153, 0.4));
  }
}

.module-brand div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;
  line-height: 1.15;
}

.module-brand div small {
  display: block;
  font-size: 11px;
  color: var(--brand-blue);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.module-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 12px;
  flex-grow: 1;
  overflow-y: auto;
}

.module-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.module-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.module-link.active {
  color: #fff;
  background: rgba(59, 130, 246, 0.15);
  box-shadow: inset 3px 0 0 var(--brand-blue);
}

.module-status-card {
  margin: 0 16px;
  padding: 14px;
  border-radius: 12px;
  border: var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.module-status-card div span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.module-status-card div strong {
  font-size: 13px;
  color: #fff;
}

.status-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: var(--transition);
}
.status-beacon.beacon-green {
  background: var(--brand-green);
  animation: beaconPulseGreen 2s infinite ease-in-out;
}
.status-beacon.beacon-amber {
  background: var(--amber);
  animation: beaconPulseAmber 2s infinite ease-in-out;
}
.status-beacon.beacon-rose {
  background: var(--rose);
  animation: beaconPulseRose 2s infinite ease-in-out;
}

@keyframes beaconPulseGreen {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7), 0 0 8px var(--brand-green); }
  70% { transform: scale(1.3); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0), 0 0 12px var(--brand-green); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0), 0 0 8px var(--brand-green); }
}
@keyframes beaconPulseAmber {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7), 0 0 8px var(--amber); }
  70% { transform: scale(1.3); box-shadow: 0 0 0 6px rgba(245, 158, 11, 0), 0 0 12px var(--amber); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0), 0 0 8px var(--amber); }
}
@keyframes beaconPulseRose {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7), 0 0 8px var(--rose); }
  70% { transform: scale(1.3); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0), 0 0 12px var(--rose); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0), 0 0 8px var(--rose); }
}

/* Main Viewport Layout */
.layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
}

/* Topbar Styling */
.topbar {
  height: 70px;
  padding: 0 32px;
  border-bottom: var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 9, 19, 0.4);
  backdrop-filter: var(--glass-blur);
  z-index: 10;
  position: sticky;
  top: 0;
}

/* Glowing Company Logo Icon in Top Header */
.topbar-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-logo-icon::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  border: 0.8px dashed rgba(6, 182, 212, 0.5);
  animation: sidebarLogoRotate 10s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.topbar-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: sidebarLogoPulseGlow 4s infinite ease-in-out;
  z-index: 2;
}

.topbar-left h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.role-badge {
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--brand-blue);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.credit-badge {
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: #06b6d4;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.credit-badge strong {
  color: #fff;
  font-weight: 800;
}

/* Buttons */
.btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  text-decoration: none;
}

.btn-primary {
  background: var(--brand-blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-blue-deep);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border: var(--glass-border);
  color: var(--ink);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--rose);
  color: #fff;
}

.btn-danger:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
  transform: translateY(-1px);
}

/* Content Container */
.content-wrapper {
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.module-section {
  animation: viewSlideUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.module-section[hidden] {
  display: none !important;
}

/* Dashboard Cards (KPIs) */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.metric-card {
  padding: 20px;
  border-radius: 16px;
  border: var(--glass-border);
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--steel);
}

.metric-card.primary::before { background: var(--brand-blue); }
.metric-card.warning::before { background: var(--rose); }
.metric-card.neutral::before { background: var(--cyan); }
.metric-card.amber::before { background: var(--amber); }
.metric-card.violet::before { background: var(--violet); }
.metric-card.success::before { background: var(--brand-green); }

.metric-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}
.metric-card.primary:hover { border-color: var(--brand-blue); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 15px rgba(59, 130, 246, 0.2); }
.metric-card.warning:hover { border-color: var(--rose); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 15px rgba(239, 68, 68, 0.2); }
.metric-card.neutral:hover { border-color: var(--cyan); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 15px rgba(6, 182, 212, 0.2); }
.metric-card.amber:hover { border-color: var(--amber); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 15px rgba(245, 158, 11, 0.2); }
.metric-card.violet:hover { border-color: var(--violet); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 15px rgba(139, 92, 246, 0.2); }
.metric-card.success:hover { border-color: var(--brand-green); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 15px rgba(16, 185, 129, 0.2); }

.metric-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: none;
}
.metric-card:hover::after {
  left: 100%;
  transition: all 0.75s ease-in-out;
}

.metric-card span {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.metric-card strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.metric-card small {
  font-size: 12px;
  color: var(--muted);
}

/* Panel Structure */
.panel {
  border-radius: 16px;
  border: var(--glass-border);
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.panel-head {
  padding: 20px 24px;
  border-bottom: var(--line) 1px solid;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.01);
}

.panel-head div h3 {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  color: #fff;
}

.panel-head div p {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 2px;
}

.panel-body {
  padding: 24px;
}

/* Data Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  border: var(--glass-border);
  background: rgba(3, 7, 18, 0.3);
}

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

.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: var(--line) 1px solid;
  vertical-align: middle;
}

.data-table th {
  background: rgba(15, 23, 42, 0.6);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: sticky;
  top: 0;
  z-index: 2;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

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

.data-table strong {
  color: #fff;
  font-weight: 600;
}

.data-table span.sub {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

/* Status & Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
}

.badge-blue {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.2);
  color: var(--brand-blue);
}

.badge-green {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--brand-green);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.2);
  color: var(--amber);
}

.badge-rose {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.2);
  color: var(--rose);
}

.badge-violet {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.2);
  color: var(--violet);
}

/* Forms & Inputs */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

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

.form-group label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  height: 40px;
  border-radius: 8px;
  border: var(--glass-border);
  background: rgba(3, 7, 18, 0.4);
  color: #fff;
  padding: 0 14px;
  font-size: 13.5px;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--brand-blue);
  outline: none;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.15);
}

textarea.form-control {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

/* Dialogs & Modals */
dialog {
  border: 0;
  background: transparent;
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  place-items: center;
  width: 100vw;
  height: 100vh;
}

dialog[open] {
  display: grid;
  background: rgba(3, 7, 18, 0.6);
  backdrop-filter: blur(8px);
}

.dialog-content {
  width: min(800px, 90vw);
  max-height: 85vh;
  border-radius: 16px;
  border: var(--glass-border);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: dialogZoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

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

.dialog-head h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.dialog-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dialog-foot {
  padding: 16px 24px;
  border-top: var(--line) 1px solid;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(255, 255, 255, 0.01);
}

/* Dashboard Analytics Grid */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}

.chart-card {
  padding: 20px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chart-card h3 {
  font-family: var(--font-display);
  font-size: 14.5px;
  color: #fff;
  font-weight: 600;
}

.chart-container {
  flex-grow: 1;
  position: relative;
  height: 220px;
  width: 100%;
}

/* Workbench Filter Row */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 16px 24px;
  border-bottom: var(--line) 1px solid;
  background: rgba(255, 255, 255, 0.005);
}

.filter-bar input,
.filter-bar select {
  height: 36px;
  font-size: 13px;
  min-width: 160px;
}

/* Landed Cost Worksheet Card */
.cost-summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: var(--glass-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.cost-card {
  text-align: center;
}

.cost-card span {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.cost-card strong {
  font-size: 16px;
  color: #fff;
  font-family: var(--font-display);
}

/* Animations */
@keyframes viewSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes radarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Custom Modals Alert/Confirm styling */
.sap-custom-alert-dialog[open],
.sap-custom-confirm-dialog[open] {
  display: grid;
  background: rgba(3, 7, 18, 0.7);
  backdrop-filter: blur(8px);
}

.sap-dialog-content {
  width: 360px;
  border-radius: 14px;
  border: var(--glass-border);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sap-dialog-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.sap-dialog-body {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.4;
}

.sap-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.sap-dialog-footer button {
  height: 34px;
  padding: 0 14px;
  font-size: 12.5px;
}

/* Responsive */
@media (max-width: 768px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .module-sidebar {
    display: none; /* Sidebar hidden on mobile viewport in clean setup */
  }
  .topbar {
    padding: 0 20px;
  }
  .content-wrapper {
    padding: 20px;
  }
}

/* Dynamic Flow Chart / Flow Picker styles */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  width: 100%;
}

.flow-step {
  min-height: 36px;
  border: var(--glass-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
  transition: var(--transition);
}

.flow-step:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(59, 130, 246, 0.35);
}

.flow-step.done {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
  color: var(--brand-green-bright);
}

.flow-step.active {
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(59, 130, 246, 0.2);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--brand-blue);
}

.flow-hint {
  margin-top: 8px;
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 500;
}

/* Progress bar inside datatables */
.progress-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}

.progress-bar {
  display: flex;
  gap: 3px;
  width: min(150px, 100%);
}

.progress-bar span {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-bar span.done {
  background: var(--brand-blue);
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.3);
}

.progress-bar span.active {
  background: var(--brand-green-bright);
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.4);
}

/* Custom Searchable Combobox Dropdowns */
.custom-combobox {
  position: relative;
  width: 100%;
}

.combobox-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  max-height: 220px;
  overflow-y: auto;
  background: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--glass-border);
  border-radius: 8px;
  margin-top: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  display: none;
}

.combobox-dropdown.show {
  display: block;
}

.combobox-item {
  padding: 10px 14px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition);
}

.combobox-item:hover,
.combobox-item.highlighted {
  background: rgba(59, 130, 246, 0.2);
  color: #fff;
}

.combobox-item.selected {
  background: rgba(59, 130, 246, 0.35);
  color: #fff;
  font-weight: 600;
  border-left: 3px solid var(--brand-blue);
}

/* Moving Ambient Light Animation */
html {
  animation: floatGlow 20s ease-in-out infinite alternate;
}

@keyframes floatGlow {
  0% {
    background-image: 
      radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05), transparent 40%),
      radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.04), transparent 40%);
  }
  50% {
    background-image: 
      radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.06), transparent 45%),
      radial-gradient(circle at 70% 30%, rgba(16, 185, 129, 0.05), transparent 45%);
  }
  100% {
    background-image: 
      radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.05), transparent 40%),
      radial-gradient(circle at 20% 90%, rgba(16, 185, 129, 0.04), transparent 40%);
  }
}

/* Stepper Pipeline Flow Connections */
.flow-steps {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.flow-step {
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.flow-step:not(:last-child):after {
  content: "→";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--line-bright);
  font-size: 14px;
  pointer-events: none;
}

/* Interactive Table Row Hover Effects */
.data-table tbody tr {
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.data-table tbody tr:hover td {
  background: rgba(59, 130, 246, 0.03) !important;
}

.data-table tbody tr:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Lockscreen Cargo Ship & Radar SVG Animations */
.lock-graphic-container {
  width: 100%;
  max-width: 160px;
  margin: 0 auto;
  opacity: 0.85;
}

.hitech-import-svg {
  width: 100%;
  height: auto;
}

/* Radar circular animation sweep */
.radar-sweep {
  transform-origin: 50px 20px;
  animation: radarSweep 4s linear infinite;
}

@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Antenna spin */
.antenna-spin {
  transform-origin: 66px 18px;
  animation: radarSweep 1.5s linear infinite;
}

/* Rocking Cargo Ship */
.cargo-ship {
  transform-origin: 50px 42px;
  animation: rockingShip 3s ease-in-out infinite alternate;
}

@keyframes rockingShip {
  0% { transform: translateY(0.5px) rotate(-1deg); }
  100% { transform: translateY(-0.5px) rotate(1.5deg); }
}

/* Moving Waves */
.ocean-wave-back {
  animation: waveMotion 4s ease-in-out infinite alternate;
}

.ocean-wave-front {
  animation: waveMotion 2.5s ease-in-out infinite alternate-reverse;
}

@keyframes waveMotion {
  0% { transform: translateX(-1px); }
  100% { transform: translateX(2px) translateY(0.5px); }
}

/* Glowing Form Control Fields on Focus */
.form-control:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.28);
  transform: translateY(-0.5px);
}

/* Full-Screen Interactive Shipping Network Canvas */
#bgNetworkCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0.90;
}

/* Floating Ambient Orbs Animations */
.ambient-orb-1 {
  animation: orbDrift1 25s infinite ease-in-out alternate;
}
.ambient-orb-2 {
  animation: orbDrift2 32s infinite ease-in-out alternate;
}

@keyframes orbDrift1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15vw, 12vh) scale(1.2); }
  100% { transform: translate(-5vw, 24vh) scale(0.9); }
}

@keyframes orbDrift2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18vw, -12vh) scale(0.8); }
  100% { transform: translate(12vw, -4vh) scale(1.15); }
}

[hidden] {
  display: none !important;
}

/* MIS Analytics styles */
.mis-metric-card {
  padding: 20px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.mis-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.mis-card-title {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.mis-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.mis-icon {
  width: 16px;
  height: 16px;
}

.mis-card-value {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-display);
}

/* Card Themes */
.card-theme-neutral:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.05), 0 0 15px rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
}
.card-theme-neutral:hover .mis-icon-wrapper {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.card-theme-cyan:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 8px 32px rgba(6, 182, 212, 0.15), 0 0 15px rgba(6, 182, 212, 0.1);
  transform: translateY(-3px);
}
.card-theme-cyan .mis-card-value {
  color: var(--cyan);
}
.card-theme-cyan:hover .mis-icon-wrapper {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan);
}

.card-theme-blue:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15), 0 0 15px rgba(59, 130, 246, 0.1);
  transform: translateY(-3px);
}
.card-theme-blue .mis-card-value {
  color: var(--brand-blue);
}
.card-theme-blue:hover .mis-icon-wrapper {
  background: rgba(59, 130, 246, 0.15);
  color: var(--brand-blue);
}

.card-theme-amber:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.15), 0 0 15px rgba(245, 158, 11, 0.1);
  transform: translateY(-3px);
}
.card-theme-amber .mis-card-value {
  color: var(--amber);
}
.card-theme-amber:hover .mis-icon-wrapper {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
}

/* Breakdown Cards and Bars */
.mis-breakdown-card {
  padding: 24px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.mis-progress-bar-wrap {
  width: 100%;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-top: 4px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.mis-progress-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand-blue) 0%, var(--cyan) 100%);
  position: relative;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

/* High-Tech Radar Scanning Overlay */
.radar-overlay {
  position: absolute;
  inset: 0;
  background: #070913;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: opacity 0.4s ease;
  overflow: hidden;
}
.radar-grid {
  position: absolute;
  width: 200%;
  height: 200%;
  background-image: 
    linear-gradient(rgba(6, 182, 212, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center;
}
.radar-circle {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(6, 182, 212, 0.2);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.08);
  margin-bottom: 20px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.02) 0%, transparent 70%);
}
.radar-circle::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px dashed rgba(6, 182, 212, 0.12);
}
.radar-circle::after {
  content: '';
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  border: 1px solid rgba(6, 182, 212, 0.08);
}
.radar-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: conic-gradient(from 0deg, rgba(6, 182, 212, 0.25) 0deg, transparent 180deg);
  border-radius: 50%;
  animation: radarSweep 2.5s linear infinite;
}
.radar-terminal {
  font-family: 'Courier New', Courier, monospace;
  color: #06b6d4;
  font-size: 11px;
  text-align: left;
  line-height: 1.6;
  max-width: 300px;
  width: 85%;
  z-index: 10;
  text-shadow: 0 0 3px rgba(6, 182, 212, 0.4);
}
.radar-blink {
  animation: radarBlink 1s infinite alternate;
}
@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes radarBlink {
  from { opacity: 0.25; }
  to { opacity: 1; }
}

/* Purchase Matrix Styles */
.matrix-card {
  border: 1.5px solid rgba(6, 182, 212, 0.2) !important;
  box-shadow: 0 8px 32px 0 rgba(3, 7, 18, 0.6), 0 0 15px rgba(6, 182, 212, 0.1) !important;
  border-radius: 12px !important;
  background: rgba(15, 23, 42, 0.45) !important;
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.matrix-table {
  border-collapse: collapse !important;
  width: 100% !important;
}

.matrix-table th {
  border-bottom: 2px solid rgba(6, 182, 212, 0.3) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 12px 8px !important;
  vertical-align: middle !important;
  background: rgba(15, 23, 42, 0.6) !important;
  text-align: center !important;
}

.matrix-table th:first-child {
  text-align: left !important;
}

.matrix-table th:last-child {
  border-right: none !important;
}

.matrix-table td {
  padding: 14px 10px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  vertical-align: middle !important;
  text-align: center !important;
}

.matrix-table td:first-child {
  text-align: left !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.matrix-table td:last-child {
  border-right: none !important;
}

.matrix-table tr:hover td {
  background: rgba(6, 182, 212, 0.04) !important;
}

/* Specific styling for the first column (Plant Code/Location) */
.matrix-plant-code {
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: block;
}

.matrix-plant-loc {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 500;
  display: block;
  margin-top: 3px;
}

/* Style for column total row */
.matrix-total-row {
  border-top: 2px solid rgba(255, 255, 255, 0.15) !important;
  background: rgba(15, 23, 42, 0.7) !important;
}

.matrix-total-row td {
  border-bottom: none !important;
  font-weight: 700 !important;
}

/* Style for row total column */
.matrix-row-total-cell {
  background: rgba(255, 255, 255, 0.02) !important;
  font-weight: 700 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Style for grand total cell */
.matrix-grand-total-cell {
  background: rgba(6, 182, 212, 0.08) !important;
  font-weight: 800 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* KPI Row v2 (7 columns) */
.kpi-row-v2 {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.kpi-row-v2 .metric-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
}

@media (max-width: 1300px) {
  .kpi-row-v2 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .kpi-row-v2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .kpi-row-v2 {
    grid-template-columns: 1fr;
  }
}

/* Dashboard 2 Premium 3-Column Grid Layout */
.dash2-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 20px;
  margin-top: 24px;
}

.dash2-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Horizontal Progress Bars Styling */
.supplier-progress-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.supplier-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.supplier-progress-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.supplier-progress-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand-blue), var(--cyan));
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

/* Rating Badges */
.rating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.rating-badge.rating-a {
  background: var(--brand-green);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

.rating-badge.rating-b {
  background: var(--amber);
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

.rating-badge.rating-c {
  background: var(--rose);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

/* Alert Styling */
.alert-row-v2 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  line-height: 1.35;
  border: 1px solid transparent;
}

.alert-row-v2.alert-danger {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.alert-row-v2.alert-warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.2);
  color: #fde047;
}

.alert-row-v2.alert-success {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
  color: #86efac;
}

/* Micro Mini Cover Days Bars */
.cover-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  width: 100%;
}

.cover-bar-fill {
  height: 100%;
  border-radius: 3px;
}

.cover-bar-fill.cover-on-track {
  background: var(--brand-blue);
  box-shadow: 0 0 4px rgba(59, 130, 246, 0.4);
}

.cover-bar-fill.cover-low {
  background: var(--amber);
  box-shadow: 0 0 4px rgba(245, 158, 11, 0.4);
}

.cover-bar-fill.cover-critical {
  background: var(--rose);
  box-shadow: 0 0 4px rgba(239, 68, 68, 0.4);
}

/* Responsive columns */
@media (max-width: 1400px) {
  .dash2-layout-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* Public Landing Page CSS */
.landing-page {
  position: relative;
  z-index: 10;
  width: 100%;
  color: var(--ink);
  font-family: var(--font-ui);
  background: linear-gradient(180deg, rgba(7, 9, 19, 0.5) 0%, rgba(7, 9, 19, 0.95) 100%);
  padding-bottom: 80px;
}

body:not(.locked) .landing-page {
  display: none !important;
}

body.locked .app-shell {
  display: none !important;
}

/* Header */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  padding: 16px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: var(--glass-border);
  background: rgba(7, 9, 19, 0.7);
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.landing-brand img {
  height: 32px;
  width: auto;
}

.landing-brand span {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.landing-nav {
  display: flex;
  gap: 32px;
}

.landing-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: var(--transition);
}

.landing-nav a:hover {
  color: var(--brand-blue);
}

.landing-auth-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-landing-login {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-landing-login:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-landing-primary {
  background: var(--brand-blue);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.btn-landing-primary:hover {
  background: var(--brand-blue-deep);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
  transform: translateY(-1px);
}

/* Sections Grid/Wrapper */
.landing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 80px 0 100px 0;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero-badge {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--brand-blue);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 54px;
  line-height: 1.15;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1.5px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-green-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

/* Hero Dashboard Teaser */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.teaser-dashboard {
  background: rgba(15, 23, 42, 0.65);
  border: var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(59, 130, 246, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.teaser-dashboard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.teaser-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
}

.teaser-dot-row {
  display: flex;
  gap: 6px;
}

.teaser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.teaser-dot.red { background: var(--rose); }
.teaser-dot.yellow { background: var(--amber); }
.teaser-dot.green { background: var(--brand-green); }

.teaser-title {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.teaser-card {
  background: rgba(255, 255, 255, 0.03);
  border: var(--glass-border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.teaser-card-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
}

.teaser-card-val {
  font-size: 24px;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
}

.teaser-card-sub {
  font-size: 10px;
  color: var(--brand-green-bright);
  display: flex;
  align-items: center;
  gap: 3px;
}

.teaser-card-sub.delayed {
  color: var(--rose);
}

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

.teaser-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: var(--glass-border);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
}

.teaser-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.teaser-ship-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.15);
  display: grid;
  place-items: center;
  color: var(--brand-blue);
  font-size: 11px;
  font-weight: bold;
}

.teaser-badge {
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.teaser-badge.transit {
  background: rgba(59, 130, 246, 0.1);
  color: var(--brand-blue);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.teaser-badge.delayed {
  background: rgba(239, 68, 68, 0.1);
  color: var(--rose);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Features Grid */
.features-section {
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-label {
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 15.5px;
  color: var(--muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: rgba(15, 23, 42, 0.45);
  border: var(--glass-border);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.05);
  background: rgba(15, 23, 42, 0.6);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  font-size: 20px;
}

.feature-card.emerald .feature-icon {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--brand-green-bright);
}

.feature-card.amber .feature-icon {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
  color: var(--amber);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.feature-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* Pricing Grid */
.pricing-section {
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.pricing-card {
  background: rgba(15, 23, 42, 0.45);
  border: var(--glass-border);
  border-radius: 16px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  transition: var(--transition);
}

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

.pricing-card.premium {
  border: 1px solid rgba(59, 130, 246, 0.4);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.1);
  background: rgba(15, 23, 42, 0.65);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px var(--brand-blue);
}

.pricing-tier {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pricing-price-val {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: #fff;
}

.pricing-price-period {
  font-size: 13.5px;
  color: var(--muted);
}

.pricing-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}

.pricing-feature-icon {
  color: var(--brand-blue);
  font-weight: bold;
}

.pricing-card.premium .pricing-feature-icon {
  color: var(--brand-green-bright);
}

.pricing-card.enterprise .pricing-feature-icon {
  color: var(--violet);
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: var(--glass-border);
  padding: 20px;
  border-radius: 12px;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  font-size: 18px;
}

.contact-info-text strong {
  display: block;
  font-size: 14px;
  color: #fff;
  margin-bottom: 4px;
}

.contact-info-text span {
  font-size: 13.5px;
  color: var(--muted);
}

.contact-form-panel {
  background: rgba(15, 23, 42, 0.65);
  border: var(--glass-border);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.contact-success-msg {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--brand-green-bright);
  padding: 16px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-bottom: 20px;
  display: none;
  font-weight: 500;
  text-align: center;
}

/* Close Lockscreen Button */
.lockscreen-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: var(--glass-border);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.lockscreen-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: scale(1.05);
}

/* Responsive fixes for landing page */
@media (max-width: 992px) {
  .hero-section, .features-grid, .pricing-grid, .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-title {
    font-size: 40px;
  }
}

/* Showcase Console Layout */
.showcase-console {
  background: rgba(15, 23, 42, 0.65);
  border: var(--glass-border);
  border-radius: 16px;
  width: 100%;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(59, 130, 246, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.showcase-header {
  background: rgba(3, 7, 18, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 12px;
}

.showcase-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.showcase-tabs::-webkit-scrollbar {
  display: none;
}

.showcase-tab {
  background: transparent;
  border: none;
  padding: 14px 12px;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  position: relative;
}

.showcase-tab:hover {
  color: #fff;
}

.showcase-tab.active {
  color: var(--brand-blue);
}

.showcase-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-blue);
  box-shadow: 0 0 10px var(--brand-blue);
}

.showcase-screen {
  padding: 24px;
  min-height: 280px;
}

.showcase-panel {
  display: none;
  animation: panelFadeIn 0.3s ease forwards;
}

.showcase-panel.active {
  display: block;
}

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

.panel-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.panel-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-blue);
  letter-spacing: 0.5px;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

/* Animations for Radar Showcase */
@keyframes radarSweepEffect {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes markerPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

/* 3D Modern Design Perspective and Float Effects */
.showcase-console {
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.4),
    0 5px 15px rgba(59, 130, 246, 0.08),
    0px 0px 1px rgba(255, 255, 255, 0.15) inset;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15), box-shadow 0.4s ease;
}

.showcase-console:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 
    0 25px 45px rgba(0, 0, 0, 0.5),
    0 10px 25px rgba(59, 130, 246, 0.18),
    0px 0px 1px rgba(255, 255, 255, 0.35) inset;
}

/* 3D hover scale effect for content blocks */
.feature-card, .pipeline-card, .pricing-card {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15), box-shadow 0.4s ease, border-color 0.4s ease;
  transform-style: preserve-3d;
}

.feature-card:hover, .pipeline-card:hover, .pricing-card:hover {
  transform: translateY(-6px) scale(1.01) translateZ(8px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.35);
  border-color: rgba(59, 130, 246, 0.25) !important;
}


