/* ==========================================================================
   DATA PORT - Modern Tech Agency Stylesheet
   Theme: High-End ICT Infrastructure & Creative Media
   Color Architecture: Polished Light Theme (60% Light, 30% Dark Typography, 10% Vibrant Green #5C9400)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* --- CSS Variables & Theme Engine (Pure Light Mode Architecture) --- */
:root,
[data-theme="light"] {
  /* 60% Dominant Canvas (Pure Crisp White & Ultra Light Surfaces) */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --glass-nav: rgba(255, 255, 255, 0.96);
  --grid-line: rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 36px -6px rgba(15, 23, 42, 0.1), 0 6px 12px -3px rgba(15, 23, 42, 0.06);

  /* 30% Secondary (Deep Solid Charcoal & High-Contrast Precision Typography) */
  --text-primary: #0F172A;   /* Deep Slate 900 */
  --text-secondary: #334155; /* Slate 700 */
  --text-muted: #64748B;     /* Slate 500 */
  --border-color: #E2E8F0;   /* Slate 200 */
  --border-card: #E2E8F0;
  --border-hover: #5C9400;

  /* 10% Accent (Vibrant High-Contrast Green #5C9400 / #68A000 / #8ACE00) */
  --primary: #5C9400;
  --primary-glow: rgba(92, 148, 0, 0.2);
  --accent-green: #5C9400;
  --accent-green-glow: rgba(92, 148, 0, 0.25);
  --lime: #5C9400;
  --lime-glow: rgba(92, 148, 0, 0.2);
  --neon-mint: #5C9400;
  --cyan: #5C9400;
  --cyan-glow: rgba(92, 148, 0, 0.2);
  --amber-gold: #0F172A;
  --cyber-teal: #5C9400;
  --purple: #334155;
  --pink: #5C9400;
  --emerald: #5C9400;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

/* Ambient Geometric Wave Pattern with Light Diffusion Overlay */
body::before {
  content: '';
  position: fixed;
  inset: -20px;
  background-image: 
    radial-gradient(ellipse at 50% 10%, rgba(92, 148, 0, 0.08) 0%, rgba(248, 250, 252, 0.94) 55%, #FFFFFF 100%),
    url('../public/bg-pattern-blurred.jpg');
  background-size: cover, 480px 240px;
  background-repeat: no-repeat, repeat;
  background-position: center top, center center;
  background-attachment: fixed;
  opacity: 0.22;
  filter: blur(4px);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* --- Scroll Progress Bar --- */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #5C9400 0%, #8ACE00 100%);
  z-index: 10000;
  width: 0%;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(92, 148, 0, 0.5);
  transition: width 0.08s ease-out;
}

/* --- GSAP Animation Hook Classes --- */
.gsap-reveal {
  opacity: 0;
  transform: translateY(35px);
  will-change: transform, opacity;
}

.gsap-fade {
  opacity: 0;
  will-change: opacity;
}

.gsap-scale {
  opacity: 0;
  transform: scale(0.92);
  will-change: transform, opacity;
}

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

.text-gradient {
  background: linear-gradient(135deg, var(--text-primary) 35%, #5C9400 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-pink {
  background: linear-gradient(135deg, #5C9400 0%, var(--text-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-cyan { color: var(--primary); }
.text-purple { color: var(--text-primary); }
.text-pink { color: var(--primary); }
.text-lime { color: var(--primary) !important; }
.text-emerald { color: var(--primary); }
.text-muted { color: var(--text-muted) !important; font-weight: 500; }
.text-secondary { color: var(--text-secondary); }

/* --- Container & Layout --- */
.container {
  width: 100%;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
}

.section {
  padding-top: clamp(4.5rem, 8vw, 8rem);
  padding-bottom: clamp(4.5rem, 8vw, 8rem);
  position: relative;
}

.section-title {
  font-size: clamp(2.25rem, 5vw, 3.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 740px;
  font-weight: 400;
  line-height: 1.75;
}

/* --- Background Texture & Orbs --- */
.tech-grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 25%, rgba(92, 148, 0, 0.05) 0%, transparent 60%);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.glowing-orb {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.orb-cyan {
  width: 450px;
  height: 450px;
  background: rgba(92, 148, 0, 0.12);
}

.orb-purple {
  width: 500px;
  height: 500px;
  background: rgba(15, 23, 42, 0.04);
}

.orb-pink {
  width: 400px;
  height: 400px;
  background: rgba(92, 148, 0, 0.08);
}

/* Data Scanline Animation */
.scanline-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.scanline {
  position: absolute;
  width: 1px;
  height: 240px;
  opacity: 0.45;
  animation: scanDown linear infinite;
}

.scanline-1 {
  left: 15%;
  background: linear-gradient(to bottom, transparent, #5C9400, transparent);
  animation-duration: 6s;
}

.scanline-2 {
  right: 20%;
  background: linear-gradient(to bottom, transparent, #94A3B8, transparent);
  animation-duration: 8s;
  animation-delay: 2s;
}

.scanline-3 {
  left: 75%;
  background: linear-gradient(to bottom, transparent, #5C9400, transparent);
  animation-duration: 7s;
  animation-delay: 4s;
}

@keyframes scanDown {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

/* --- Clean Modern Panel (Glassmorphism Light) --- */
.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  transition: all var(--transition-normal);
  position: relative;
}

.glass-panel:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* --- Badge & System Indicator --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(92, 148, 0, 0.3);
  background: rgba(92, 148, 0, 0.08);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4D7C00;
  font-weight: 700;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
}

/* --- Navigation Bar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: clamp(0.75rem, 2vw, 1.25rem) clamp(1rem, 3vw, 2rem);
  transition: padding var(--transition-normal);
}

.navbar-container {
  max-width: 1360px;
  margin: 0 auto;
  background: var(--glass-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem clamp(1.25rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo img {
  height: 38px;
  width: auto;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  transform: scale(1.08);
  border-color: var(--primary);
  color: var(--primary);
}

/* --- High-Tech Glassmorphic Mobile Hamburger Button --- */
.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(203, 213, 225, 0.85);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 101;
}

.mobile-menu-btn:hover {
  background: #FFFFFF;
  border-color: rgba(92, 148, 0, 0.5);
  box-shadow: 0 4px 14px rgba(92, 148, 0, 0.2);
  transform: translateY(-1px);
}

.mobile-menu-btn .burger-box {
  width: 20px;
  height: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.mobile-menu-btn .burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: #0F172A;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, background 0.3s ease;
  transform-origin: center;
}

/* Morph Hamburger to Close 'X' */
.mobile-menu-btn.open .burger-line.line-1 {
  transform: translateY(6px) rotate(45deg);
  background: #5C9400;
}

.mobile-menu-btn.open .burger-line.line-2 {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.open .burger-line.line-3 {
  transform: translateY(-6px) rotate(-45deg);
  background: #5C9400;
}

/* Mobile Nav Backdrop Overlay (Soft Blur) */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* --- High-Tech Glassmorphic Mobile Drawer (Floating Pod) --- */
.mobile-nav.glass-nav-pod {
  position: fixed;
  top: 76px;
  right: 1.25rem;
  left: 1.25rem;
  max-width: 400px;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 99;
  box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(92, 148, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-14px) scale(0.95);
  transform-origin: top right;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
  overflow: hidden;
}

.mobile-nav.glass-nav-pod::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #5C9400, #38BDF8, transparent);
  opacity: 0.8;
}

.mobile-nav.glass-nav-pod.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Pod Header */
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.mobile-nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: #3E6300;
  letter-spacing: 0.05em;
}

.mobile-nav-node {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748B;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 0.15rem 0.55rem;
  border-radius: 12px;
}

/* Nav Links List */
.mobile-nav-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  border: 1px solid transparent;
}

.mobile-nav-item:hover {
  background: rgba(92, 148, 0, 0.08);
  border-color: rgba(92, 148, 0, 0.22);
  transform: translateX(4px);
}

.mobile-nav-item.active {
  background: rgba(92, 148, 0, 0.12);
  border-color: rgba(92, 148, 0, 0.35);
}

.mobile-nav-item.active .mobile-nav-title {
  color: #5C9400;
}

.mobile-nav-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.mobile-nav-item:hover .mobile-nav-icon-box,
.mobile-nav-item.active .mobile-nav-icon-box {
  background: #5C9400;
  color: #FFFFFF;
  border-color: #5C9400;
  transform: scale(1.05);
}

.mobile-nav-text-col {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  text-align: left;
}

.mobile-nav-title {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.mobile-nav-sub {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 500;
}

.mobile-nav-arrow {
  color: #94A3B8;
  transition: transform 0.25s ease, color 0.25s ease;
}

.mobile-nav-item:hover .mobile-nav-arrow {
  transform: translateX(3px);
  color: #5C9400;
}

/* Pod Footer */
.mobile-nav-footer {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mobile-portal-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.35rem;
  transition: color 0.2s ease;
}

.mobile-portal-link:hover {
  color: #5C9400;
}

/* Media Query to Activate Mobile Menu Button and Hide Desktop Nav Links */
@media (max-width: 960px) {
  .nav-links {
    display: none !important;
  }
  .nav-noc-btn {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
  }
}

/* --- Hero Section --- */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: clamp(7.5rem, 12vw, 10.5rem);
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: clamp(2.75rem, 7vw, 5.75rem);
  font-weight: 900;
  font-family: var(--font-display);
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 840px;
  margin: 0 auto clamp(2rem, 4vw, 3.25rem);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  flex-wrap: wrap;
}

@media (max-width: 540px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- Modern Hero Agency Layout & Parallax Architecture --- */
.hero-parallax-wrapper {
  position: relative;
  width: 100%;
  perspective: 1200px;
  overflow: hidden;
}

.hero-modern {
  min-height: 94vh;
  display: flex;
  align-items: center;
  padding-top: clamp(7rem, 11vw, 10rem);
  padding-bottom: clamp(4.5rem, 8vw, 7.5rem);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.hero-layer-bg {
  position: absolute;
  top: -15%;
  left: -10%;
  width: 120%;
  height: 130%;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

.hero-layer-content {
  position: relative;
  z-index: 5;
  will-change: transform, opacity;
}

.hero-layer-visual {
  position: relative;
  z-index: 6;
  will-change: transform;
  transform-style: preserve-3d;
}

/* Parallax Floating Depth Badges */
.parallax-badge-float {
  position: absolute;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-full);
  box-shadow: 0 12px 30px -6px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
  pointer-events: none;
  will-change: transform;
}

.parallax-float-1 {
  top: 14%;
  left: 3%;
}

.parallax-float-2 {
  bottom: 12%;
  left: 6%;
}

.parallax-float-3 {
  top: 12%;
  right: 5%;
}

.parallax-float-4 {
  bottom: 14%;
  right: 3%;
}

@media (max-width: 991px) {
  .parallax-badge-float {
    display: none !important;
  }
}

/* Scroll Depth Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  z-index: 8;
  opacity: 0.85;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.hero-scroll-indicator .mouse-icon {
  width: 20px;
  height: 32px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.hero-scroll-indicator .mouse-wheel {
  width: 4px;
  height: 6px;
  background: var(--lime);
  border-radius: 2px;
  animation: mouseScrollWheel 1.8s ease-in-out infinite;
}

@keyframes mouseScrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

.hero-grid-modern {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid-modern {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-typewriter-prefix {
  color: var(--text-muted);
  font-weight: 500;
  display: block;
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 0.5rem;
}

.hero-dynamic-word {
  color: #5C9400;
  display: inline-block;
  position: relative;
  border-bottom: 3px solid #5C9400;
  padding-bottom: 2px;
}

/* Telemetry Bento Live Widget */
.telemetry-widget {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.telemetry-widget:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 60px -12px rgba(92, 148, 0, 0.14);
}

.telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.telemetry-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.telemetry-stat-mini {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.telemetry-waveform {
  height: 48px;
  width: 100%;
  background: linear-gradient(180deg, rgba(92, 148, 0, 0.12) 0%, transparent 100%);
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(92, 148, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 0.5rem;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.wave-bar {
  width: 4px;
  border-radius: 2px;
  background: #5C9400;
  animation: waveAnim 1.4s ease-in-out infinite alternate;
}

.wave-bar:nth-child(2) { animation-delay: 0.2s; height: 60%; }
.wave-bar:nth-child(3) { animation-delay: 0.4s; height: 85%; }
.wave-bar:nth-child(4) { animation-delay: 0.1s; height: 40%; }
.wave-bar:nth-child(5) { animation-delay: 0.6s; height: 95%; }
.wave-bar:nth-child(6) { animation-delay: 0.3s; height: 70%; }
.wave-bar:nth-child(7) { animation-delay: 0.5s; height: 50%; }
.wave-bar:nth-child(8) { animation-delay: 0.25s; height: 75%; }

@keyframes waveAnim {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

/* --- Scroll Text Highlight (Jay Dickinson Effect) --- */
.scroll-highlight-container {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.scroll-highlight-text {
  font-size: clamp(1.6rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.025em;
  color: #0F172A;
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}

.word-span {
  display: inline-block;
  opacity: 0.22;
  transition: opacity 0.25s ease, color 0.25s ease, transform 0.25s ease;
  will-change: opacity, color;
}

.word-span.highlighted {
  opacity: 1;
  color: #0F172A;
}

.word-span.highlighted-accent {
  opacity: 1;
  color: #5C9400;
}

/* --- Interactive Process Rail (01 -> 02 -> 03 -> 04) --- */
.process-rail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
  position: relative;
}

@media (min-width: 768px) {
  .process-rail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .process-rail-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-step-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step-card:hover {
  transform: translateY(-6px);
  border-color: #5C9400;
  box-shadow: 0 16px 36px -8px rgba(92, 148, 0, 0.15);
}

.step-num-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: #5C9400;
  background: rgba(92, 148, 0, 0.1);
  border: 1px solid rgba(92, 148, 0, 0.3);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  align-self: flex-start;
}

/* --- Bento Showcase Grid --- */
.bento-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 1024px) {
  .bento-showcase-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .bento-wide {
    grid-column: span 2;
  }
}

.bento-showcase-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 3.5vw, 2.75rem);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-showcase-card:hover {
  transform: translateY(-5px);
  border-color: #5C9400;
  box-shadow: 0 16px 36px -8px rgba(92, 148, 0, 0.14);
}

.bento-tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.bento-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

/* Floating Tech Chips */
.floating-chip {
  position: absolute;
  display: none;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  animation: floatAnim 6s ease-in-out infinite;
  z-index: 2;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.875rem;
}

@media (min-width: 1024px) {
  .floating-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
}

.chip-1 { top: 20%; left: 8%; animation-delay: 0s; }
.chip-2 { top: 25%; right: 8%; animation-delay: 1.5s; }
.chip-3 { bottom: 20%; left: 10%; animation-delay: 3s; }
.chip-4 { bottom: 18%; right: 10%; animation-delay: 4.5s; }

@keyframes floatAnim {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
}

/* --- Annnimate Signature Custom Studio Cursor --- */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: #5C9400;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out, width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(92, 148, 0, 0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background 0.3s ease;
}

.custom-cursor-ring.cursor-hover {
  width: 58px;
  height: 58px;
  border-color: #5C9400;
  background: rgba(92, 148, 0, 0.08);
  backdrop-filter: blur(2px);
}

@media (hover: none) or (max-width: 1024px) {
  .custom-cursor-dot, .custom-cursor-ring {
    display: none !important;
  }
}

/* --- Annnimate Bento Focus & Spotlight Card Grid --- */
.bento-grid {
  display: grid;
  position: relative;
}

.bento-card, .pillar-card, .package-card, .project-card, .stat-card, .client-card-modern, .testimonial-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, border-color 0.3s ease, box-shadow 0.35s ease;
}

.bento-card::after, .pillar-card::after, .package-card::after, .project-card::after, .stat-card::after, .client-card-modern::after, .testimonial-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(92, 148, 0, 0.12), transparent 65%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.bento-card:hover::after, .pillar-card:hover::after, .package-card:hover::after, .project-card:hover::after, .stat-card:hover::after, .client-card-modern:hover::after, .testimonial-card:hover::after {
  opacity: 1;
}

/* Bento Focus: Softly dim sibling cards on grid hover */
.pillars-grid:hover .pillar-card:not(:hover),
.packages-grid:hover .package-card:not(:hover),
.portfolio-grid:hover .project-card:not(:hover),
.clients-grid-modern:hover .client-card-modern:not(:hover),
.testimonials-grid:hover .testimonial-card:not(:hover) {
  opacity: 0.72;
  transform: scale(0.985);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 2rem;
  min-height: 48px;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  position: relative;
  z-index: 10;
  user-select: none;
  overflow: hidden;
}

/* Annnimate Signature Rolling Text */
.roll-text-track {
  display: inline-flex;
  flex-direction: column;
  position: relative;
  line-height: 1.2;
  overflow: hidden;
  height: 1.25em;
  text-align: inherit;
}

.roll-text-item {
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn:hover .roll-text-track .roll-text-item:first-child {
  transform: translateY(-100%);
}

.btn:hover .roll-text-track .roll-text-item:last-child {
  transform: translateY(-100%);
}

.btn-primary {
  background: #5C9400;
  color: #FFFFFF !important;
  font-weight: 700;
  border: 1px solid #4D7C00;
  box-shadow: 0 4px 16px rgba(92, 148, 0, 0.3);
}

.btn-primary:hover {
  background: #4D7C00;
  color: #FFFFFF !important;
  border-color: #3E6300;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(92, 148, 0, 0.45);
}

.btn-secondary {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: var(--text-primary) !important;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background: #F8FAFC;
  border-color: #0F172A;
  color: #0F172A !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.btn-logout {
  background: #FEE2E2;
  border: 1px solid #FCA5A5;
  color: #B91C1C !important;
  font-weight: 700;
}

.btn-logout:hover {
  background: #EF4444;
  color: #FFFFFF !important;
  border-color: #DC2626;
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  min-height: 38px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 1.2rem 2.5rem;
  min-height: 56px;
  font-size: 1.1rem;
}

/* --- Stats Grid --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

@media (min-width: 860px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  text-align: center;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.stat-card:hover {
  border-color: var(--lime);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-value {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 800;
  font-family: var(--font-display);
  line-height: 1;
  margin-bottom: 0.65rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* --- Client Logos & Partners Showcase --- */
.clients-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .clients-grid-modern {
    grid-template-columns: repeat(5, 1fr);
  }
}

.client-card-modern {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.client-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.client-card-modern:hover {
  transform: translateY(-6px);
  border-color: #5C9400;
  box-shadow: 0 12px 28px rgba(92, 148, 0, 0.12);
}

.client-card-modern:hover::before {
  opacity: 1;
}

.client-logo-box {
  width: 100%;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  padding: 0.5rem;
}

.client-logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.client-card-modern:hover .client-logo-box img {
  transform: scale(1.08);
}

.client-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.client-card-role {
  font-size: 0.72rem;
  font-weight: 700;
  color: #5C9400;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 4vw, 4.5rem);
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.client-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.client-item:hover {
  color: var(--primary);
  transform: scale(1.06);
}

/* --- Cards & Pillars Grid --- */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 3vw, 3rem);
  margin-top: clamp(2.5rem, 4.5vw, 4.5rem);
}

@media (min-width: 768px) and (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar-card {
  padding: clamp(2.25rem, 3.5vw, 3.25rem);
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.pillar-card:hover {
  border-color: var(--lime);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.pillar-icon-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 1.65rem;
  border: 1px solid var(--border-color);
  background: rgba(92, 148, 0, 0.08);
  color: var(--lime);
  transition: all var(--transition-normal);
}

.pillar-card:hover .pillar-icon-box {
  transform: scale(1.08) rotate(3deg);
  border-color: #5C9400;
  background: rgba(92, 148, 0, 0.15);
}

.pillar-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.pillar-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin-top: auto;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  color: var(--text-secondary);
}

.service-item-icon {
  margin-top: 0.25rem;
  flex-shrink: 0;
  color: var(--lime);
}

/* --- Commercial Proposal & Contract Packages --- */
.packages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 3vw, 3rem);
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

@media (min-width: 860px) {
  .packages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.package-card {
  padding: clamp(2.25rem, 4vw, 3.5rem) clamp(1.75rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.package-card:hover {
  border-color: #5C9400;
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.package-card.highlight {
  border-color: #5C9400;
  background: linear-gradient(180deg, rgba(92, 148, 0, 0.05) 0%, #FFFFFF 100%);
}

.package-header {
  margin-bottom: 1.5rem;
}

.package-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.package-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

.package-price {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 900;
  font-family: var(--font-display);
  color: #5C9400;
  margin: 1.5rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.package-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.package-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

.feature-icon {
  width: 20px;
  height: 20px;
  color: var(--lime);
  flex-shrink: 0;
}

/* Itemized & AMC Tables */
.proposal-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-card);
}

.proposal-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.proposal-table th {
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1.15rem 1.5rem;
  border-bottom: 2px solid var(--border-color);
}

.proposal-table td {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 500;
  background: var(--bg-card);
}

.proposal-table tr:last-child td {
  border-bottom: none;
}

.proposal-table tr:hover td {
  background: var(--bg-card-hover);
}

.price-highlight {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--lime);
  font-size: 1.1rem;
}

.payment-terms-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-card);
}

/* --- Testimonials Grid --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 4.5vw, 4.5rem);
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.quote-icon {
  position: absolute;
  top: clamp(1.25rem, 2vw, 1.75rem);
  right: clamp(1.25rem, 2vw, 1.75rem);
  color: #5C9400;
  opacity: 0.5;
  width: 32px;
  height: 32px;
}

.testimonial-quote {
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.testimonial-author {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 0.8125rem;
  color: var(--primary);
  font-weight: 600;
}

/* --- Call to Action Banner --- */
.cta-banner {
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 4vw, 3.5rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border: 1px solid #334155;
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: clamp(3rem, 5vw, 5rem);
  box-shadow: var(--shadow-lg);
}

.cta-banner .section-title {
  color: #FFFFFF;
}

.cta-banner .section-subtitle {
  color: #CBD5E1;
}

/* --- Contact Section & Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: clamp(2.5rem, 4.5vw, 4.5rem);
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 1.25fr;
  }
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 2.5vw, 2.25rem);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.contact-info-item:hover .contact-icon {
  border-color: #5C9400;
  color: #5C9400;
  background: rgba(92, 148, 0, 0.08);
  transform: scale(1.05);
}

.form-group {
  margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

::placeholder,
.form-input::placeholder,
.form-textarea::placeholder {
  color: #94A3B8;
  opacity: 1;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: clamp(0.9rem, 1.8vw, 1.15rem) clamp(1rem, 2vw, 1.35rem);
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

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

/* Input Icon Wrapper */
.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.input-icon-wrapper .form-input {
  padding-left: 2.75rem;
}

/* --- Quote Generator Page Styles --- */
.quote-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 3.5vw, 3.5rem);
  margin-top: clamp(2rem, 3.5vw, 3rem);
}

@media (min-width: 1024px) {
  .quote-layout {
    grid-template-columns: 1.4fr 1fr;
  }
}

.invoice-preview-card {
  position: sticky;
  top: 6.5rem;
}

.line-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(0.85rem, 1.5vw, 1.1rem) clamp(1rem, 1.8vw, 1.25rem);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.totals-breakdown {
  border-top: 1px solid var(--border-color);
  padding-top: 1.35rem;
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.totals-row.final {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  border-top: 1px solid var(--border-color);
  padding-top: 0.9rem;
  margin-top: 0.6rem;
}

/* --- Footer --- */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding-top: clamp(4rem, 7vw, 6.5rem);
  padding-bottom: clamp(2.25rem, 4vw, 3.5rem);
  margin-top: clamp(4.5rem, 8vw, 7.5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

@media (min-width: 600px) and (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 901px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 1.15rem;
  margin-bottom: 1.5rem;
  max-width: 340px;
  line-height: 1.65;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  font-weight: 800;
  margin-bottom: 1.35rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: clamp(1.5rem, 2.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* --- Toast Notification --- */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10000;
  background: #0F172A;
  color: #FFFFFF;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: none;
  animation: slideUp 0.3s ease-out;
}

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

/* ==========================================================================
   MASTER OPERATIONS & FINANCIAL ERP DASHBOARD (POLISHED LIGHT THEME)
   ========================================================================== */

.dashboard-body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
}

/* Login Gate */
.login-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-card {
  max-width: 440px;
  width: 100%;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25);
  color: var(--text-primary);
}

/* Dashboard Navigation Bar */
.dash-navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--glass-nav);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem clamp(1rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}

.dash-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.dash-brand-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dash-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(92, 148, 0, 0.1);
  color: #4D7C00;
  border: 1px solid rgba(92, 148, 0, 0.25);
  display: inline-block;
}

.live-clock-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-secondary);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

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

@media (max-width: 768px) {
  .dash-navbar {
    padding: 0.65rem 1rem;
  }
  .dash-nav-container {
    gap: 0.75rem;
  }
  .dash-tag {
    display: none;
  }
  .live-clock-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
  }
  .dash-nav-actions .btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* Dashboard Main Content */
.dash-main-content {
  padding-top: clamp(1.25rem, 3vw, 2.25rem);
  padding-bottom: 4rem;
}

/* Metrics Grid */
.dash-metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 580px) {
  .dash-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .dash-metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric-box {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  text-align: left;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.metric-box:hover {
  transform: translateY(-2px);
  border-color: #5C9400;
  box-shadow: 0 8px 24px rgba(92, 148, 0, 0.1);
}

.metric-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.metric-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.metric-box .stat-value {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  margin-bottom: 0.2rem;
  line-height: 1.1;
}

.metric-subtext {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Controls & Tabs Bar */
.dash-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.dash-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.25rem 0.25rem 0.5rem 0;
  max-width: 100%;
  flex-wrap: nowrap;
}

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

.dash-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.dash-tab:hover {
  border-color: #5C9400;
  color: #5C9400;
  background: rgba(92, 148, 0, 0.04);
}

.dash-tab.active {
  background: #5C9400;
  color: #FFFFFF !important;
  border-color: #4D7C00;
  box-shadow: 0 4px 14px rgba(92, 148, 0, 0.3);
}

.dash-action-buttons {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .dash-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .dash-tabs {
    width: 100%;
  }
  .dash-action-buttons {
    width: 100%;
  }
  .dash-action-buttons .btn {
    flex: 1;
    justify-content: center;
  }
}

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

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

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

/* --- NOC Calendar Engine Styles --- */
.calendar-wrapper {
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

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

.calendar-month-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--text-primary);
}

.calendar-legend {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.cal-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cal-filter-pill.active {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}

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

.dot-paid { background: #5C9400; }
.dot-due { background: #F59E0B; }
.dot-overdue { background: #EF4444; }

.calendar-nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cal-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cal-nav-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.calendar-days-grid-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.calendar-grid-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-day-cell {
  min-height: 110px;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.calendar-day-cell:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.calendar-day-cell.prev-month-day {
  background: #F8FAFC;
  opacity: 0.5;
}

.calendar-day-cell.today-cell {
  border: 2px solid #5C9400;
  background: rgba(92, 148, 0, 0.03);
}

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

.day-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-primary);
}

.today-tag {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-full);
  background: #5C9400;
  color: #FFFFFF;
}

.day-subscriber-pills {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  overflow-y: auto;
  max-height: 90px;
}

.subscriber-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0.45rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.subscriber-pill:hover {
  transform: scale(1.02);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 4px;
  flex-shrink: 0;
}

.pill-paid {
  background: rgba(92, 148, 0, 0.12);
  color: #3E6300;
  border: 1px solid rgba(92, 148, 0, 0.35);
}
.pill-paid .pill-dot { background: #5C9400; }

.pill-due {
  background: rgba(245, 158, 11, 0.12);
  color: #B45309;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.pill-due .pill-dot { background: #F59E0B; }

.pill-overdue {
  background: rgba(239, 68, 68, 0.12);
  color: #B91C1C;
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.pill-overdue .pill-dot { background: #EF4444; }

.pill-upcoming {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}
.pill-upcoming .pill-dot { background: #94A3B8; }

.pill-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70px;
}

.pill-price {
  font-family: var(--font-mono);
  font-weight: 700;
}

/* --- Modals & Overlays --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-dialog {
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.3);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--text-primary);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

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

.modal-close-btn:hover {
  color: var(--text-primary);
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .grid-2col {
    grid-template-columns: 1fr 1fr;
  }
}

/* Invoice Drawer / Box */
.invoice-summary-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.dispatch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .dispatch-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.dispatch-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #FFFFFF;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-card);
}

.dispatch-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.whatsapp-card {
  border-color: rgba(92, 148, 0, 0.4);
}
.whatsapp-card:hover {
  background: rgba(92, 148, 0, 0.05);
  border-color: #5C9400;
}
.whatsapp-card .dispatch-icon {
  color: #5C9400;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.email-card {
  border-color: #CBD5E1;
}
.email-card:hover {
  background: #F8FAFC;
  border-color: #0F172A;
}
.email-card .dispatch-icon {
  color: #0F172A;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.dispatch-card strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.dispatch-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Floating WhatsApp Enterprise Widget */
.floating-whatsapp-widget {
  position: fixed;
  bottom: clamp(1.5rem, 3vw, 2.25rem);
  right: clamp(1.5rem, 3vw, 2.25rem);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.4rem;
  background: #5C9400;
  border: 1px solid #4D7C00;
  border-radius: var(--radius-full);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 8px 24px rgba(92, 148, 0, 0.35);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.floating-whatsapp-widget:hover {
  background: #4D7C00;
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 30px rgba(92, 148, 0, 0.5);
}

.floating-whatsapp-widget svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* --- Job Cards & Field Deployments --- */
.job-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .job-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .job-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.job-card-item {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  position: relative;
  transition: all var(--transition-normal);
}

.job-card-item:hover {
  border-color: #5C9400;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.job-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.job-category-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-weight: 700;
}

.job-status-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.job-status-completed {
  background: rgba(92, 148, 0, 0.12);
  color: #3E6300;
  border: 1px solid rgba(92, 148, 0, 0.35);
}

.job-status-progress {
  background: rgba(59, 130, 246, 0.12);
  color: #1D4ED8;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.job-status-pending {
  background: rgba(239, 68, 68, 0.12);
  color: #B91C1C;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.job-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.job-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.job-materials-summary {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: clamp(0.9rem, 2vw, 1.25rem);
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
}

.job-materials-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.job-material-line {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
}

.job-cost-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

/* --- Financial Ledger Transactions --- */
.ledger-summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.tx-amount-income {
  color: #4D7C00 !important;
  font-family: var(--font-mono);
  font-weight: 700;
}

.tx-amount-expense {
  color: #B91C1C !important;
  font-family: var(--font-mono);
  font-weight: 700;
}

/* --- Analytics & Cash Flow Charts --- */
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 1.5rem;
}

@media (min-width: 992px) {
  .analytics-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.chart-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  position: relative;
}

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

.chart-canvas-container {
  width: 100%;
  height: 280px;
  position: relative;
}

.breakdown-bars-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.breakdown-item-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
  font-weight: 600;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill-green {
  height: 100%;
  background: #5C9400;
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px rgba(92, 148, 0, 0.4);
  transition: width 0.6s ease-out;
}

.progress-fill-white {
  height: 100%;
  background: #0F172A;
  border-radius: var(--radius-full);
  transition: width 0.6s ease-out;
}

/* --- Executive Vault & Rules Engine --- */
.vault-locked-box {
  max-width: 480px;
  margin: clamp(2rem, 5vw, 4rem) auto;
  padding: clamp(2.25rem, 5vw, 3.5rem) clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.pin-keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: 260px;
  margin: 1.5rem auto;
}

.pin-key-btn {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-key-btn:hover {
  background: #5C9400;
  color: #FFFFFF;
  border-color: #5C9400;
  transform: scale(1.05);
}

.pin-display-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pin-dot-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  background: transparent;
  transition: all 0.2s ease;
}

.pin-dot-circle.filled {
  background: #5C9400;
  border-color: #5C9400;
  box-shadow: 0 0 10px rgba(92, 148, 0, 0.5);
}

.vault-unlocked-panel {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.vault-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .vault-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .rules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .rules-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.rule-card {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: var(--radius-md);
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all var(--transition-fast);
}

.rule-card:hover {
  border-color: #5C9400;
  transform: translateY(-2px);
}

/* Printable A4 Sheet Styles */
.printable-invoice {
  display: none;
  background: #FFFFFF;
  color: #000000;
  padding: 2.5rem;
}

@media print {
  .no-print, .dash-navbar, .dash-controls-bar, .modal-overlay, .login-gate-overlay {
    display: none !important;
  }
  body, .dashboard-body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  .printable-invoice {
    display: block !important;
  }
}

/* --- Tariff & Pricing Manager Styles --- */
.tariffs-manager-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 1024px) {
  .tariffs-manager-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tariff-group-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tariff-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.tariffs-items-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tariff-edit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  transition: all var(--transition-fast);
}

.tariff-edit-row:hover {
  border-color: #5C9400;
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.tariff-info-col {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.tariff-name-input {
  font-weight: 700;
  font-size: 0.925rem;
  color: var(--text-primary);
  border: none;
  background: transparent;
  width: 100%;
  padding: 0;
}

.tariff-name-input:focus {
  outline: none;
  border-bottom: 1px solid #5C9400;
}

.tariff-desc-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.tariff-price-col {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tariff-price-input {
  width: 110px;
  padding: 0.4rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: #3E6300;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  text-align: right;
}

.tariff-price-input:focus {
  outline: none;
  border-color: #5C9400;
  box-shadow: 0 0 0 2px rgba(92, 148, 0, 0.2);
}

.tariff-action-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tariff-action-btn:hover {
  color: #EF4444;
  background: #FEE2E2;
}
