/* ==========================================================================
   SỬA ĐIỆN NƯỚC 247 - DUAL THEME STYLESHEET (LIGHT DEFAULT & DARK MODE)
   ========================================================================== */

/* -------------------------------------------------------------------------- */
/* LIGHT THEME (DEFAULT)                                                      */
/* -------------------------------------------------------------------------- */
:root {
  /* Brand & Core Palette - Light Theme */
  --bg-dark: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.92);
  --bg-hero: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #f0f9ff 100%);
  --bg-strip: rgba(2, 132, 199, 0.06);
  --bg-input: #ffffff;
  --bg-modal: #ffffff;
  
  --color-primary: #0284c7;
  --color-primary-hover: #0369a1;
  --color-primary-glow: rgba(2, 132, 199, 0.25);
  --color-cyan: #0284c7;
  --color-accent: #f59e0b;
  --color-accent-hover: #d97706;
  --color-accent-glow: rgba(245, 158, 11, 0.35);
  --color-success: #10b981;
  --color-danger: #ef4444;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --text-heading: #0f172a;
  
  --glass-border: #e2e8f0;
  --glass-border-glow: rgba(2, 132, 199, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 10px 30px rgba(2, 132, 199, 0.15);
  
  --font-heading: 'Be Vietnam Pro', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Grotesk', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------------------------------------------------- */
/* DARK THEME (TOGGLEABLE)                                                   */
/* -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --bg-dark: #070b15;
  --bg-card: rgba(18, 27, 46, 0.85);
  --bg-card-hover: rgba(28, 41, 69, 0.9);
  --bg-header: rgba(7, 11, 21, 0.88);
  --bg-hero: radial-gradient(circle at 50% 20%, #0d1e3d 0%, #070b15 70%);
  --bg-strip: rgba(0, 136, 255, 0.08);
  --bg-input: rgba(0, 0, 0, 0.5);
  --bg-modal: #0d1527;

  --color-primary: #0088ff;
  --color-primary-hover: #1aa0ff;
  --color-primary-glow: rgba(0, 136, 255, 0.4);
  --color-cyan: #00f2fe;
  --color-accent: #ff9e00;
  --color-accent-hover: #ff7700;
  --color-accent-glow: rgba(255, 158, 0, 0.4);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-heading: #ffffff;

  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-glow: rgba(0, 136, 255, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(0, 136, 255, 0.25);
}

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

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.25;
}

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

a:hover {
  color: var(--color-primary-hover);
}

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

[data-theme="dark"] .gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--color-cyan) 50%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight {
  color: var(--color-accent);
}

.text-center { text-align: center; }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.w-full { width: 100%; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.hidden { display: none !important; }

/* Buttons & CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0284c7 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px var(--color-primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--color-primary-glow);
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 4px 20px var(--color-accent-glow);
}

.btn-accent:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 28px var(--color-accent-glow);
}

.btn-hotline {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
}

[data-theme="dark"] .btn-hotline {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ff6b6b;
}

.btn-hotline:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #b91c1c;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.35);
}

.btn-hero-glass {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-heading);
  padding: 16px 28px;
  font-size: 1rem;
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.btn-hero-glass:hover {
  background: #ffffff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline-white {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

[data-theme="dark"] .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #facc15;
}

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

/* Language Selector Styles */
.lang-selector-wrapper {
  position: relative;
  display: inline-block;
}

.lang-toggle-btn {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 0 12px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

[data-theme="dark"] .lang-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
}

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

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  min-width: 160px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  transform: translateY(10px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lang-dropdown.show {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.lang-dropdown button {
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 8px 12px;
  text-align: left;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  transition: var(--transition-fast);
}

.lang-dropdown button:hover {
  background: var(--bg-strip);
  color: var(--color-primary);
}

.lang-dropdown button.active {
  background: var(--color-primary-glow);
  color: var(--color-primary);
  font-weight: 700;
}

.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-xl { padding: 18px 36px; font-size: 1.15rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* Pulse Animation */
.pulse-btn {
  animation: pulse-ring 2.5s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-success);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-success);
  animation: pulse-dot-anim 1.5s infinite alternate;
}

@keyframes pulse-dot-anim {
  from { opacity: 0.4; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.2); }
}

/* Glassmorphic / Clean Card Style */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--glass-border-glow);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   SECTION: ANNOUNCEMENT BAR
   ========================================================================== */
.top-announcement {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: #f8fafc;
  border-bottom: 1px solid rgba(2, 132, 199, 0.2);
  padding: 8px 0;
  font-size: 0.85rem;
}

.announcement-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.announcement-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f8fafc;
}

.announcement-contact {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-hotline-item {
  color: #f87171;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.top-zalo-link {
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.divider { color: #64748b; }

/* ==========================================================================
   HEADER & NAVIGATION (ROBOTO FONT)
   ========================================================================== */
.site-header,
.top-announcement,
.oc-header-bar,
.tech-header-bar,
.mobile-header-bar,
.site-header *,
.top-announcement *,
.oc-header-bar *,
.tech-header-bar *,
.mobile-header-bar * {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: 14px 0;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #38bdf8 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #ffffff;
  position: relative;
  box-shadow: 0 4px 15px var(--color-primary-glow);
}

.logo-drop {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 0.9rem;
  color: var(--color-accent);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  color: var(--text-heading);
}

.brand-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.92rem;
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

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

.btn-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.btn-subtext { font-size: 0.65rem; opacity: 0.85; font-weight: 600; }
.btn-maintext { font-size: 0.95rem; font-weight: 800; }

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  font-size: 1.5rem;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--bg-card);
  z-index: 1000;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open { right: 0; }

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

.drawer-close {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

.drawer-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-link {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid var(--glass-border);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 80px 0 100px 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(241, 245, 249, 0.65) 100%), 
              url('https://images.unsplash.com/photo-1621905251189-08b45d6a269e?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  overflow: hidden;
}

[data-theme="dark"] .hero-section {
  background: linear-gradient(135deg, rgba(7, 11, 21, 0.75) 0%, rgba(13, 30, 61, 0.70) 100%), 
              url('https://images.unsplash.com/photo-1621905251189-08b45d6a269e?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.45;
}

.hero-glow-1 {
  position: absolute;
  top: -150px;
  left: 10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.15) 0%, rgba(0,0,0,0) 70%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: -150px;
  right: 10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(0,0,0,0) 70%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.3);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3rem;
  letter-spacing: -1px;
  margin-bottom: 18px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 620px;
}

/* Hero Metrics */
.hero-metrics {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 32px;
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

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

.metric-num {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.metric-unit {
  font-size: 1.2rem;
  color: var(--color-accent);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.metric-divider {
  width: 1px;
  height: 36px;
  background: var(--glass-border);
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.hero-guarantee-list {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.guarantee-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.guarantee-chip i {
  color: var(--color-success);
}

/* Quick Emergency Form Card */
.emergency-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border-glow);
  box-shadow: var(--shadow-lg);
}

.card-header-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

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

.quick-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group input, .form-group select, .form-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary-glow);
}

.form-group select option {
  background: var(--bg-card);
  color: var(--text-main);
}

.form-footer-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 14px;
}

/* ==========================================================================
   SERVICES STRIP
   ========================================================================== */
.services-strip {
  background: var(--bg-strip);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 18px 0;
}

.strip-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

.strip-item i {
  font-size: 1.4rem;
  color: var(--color-accent);
}

/* ==========================================================================
   SECTIONS COMMON
   ========================================================================== */
.section {
  padding: 90px 0;
}

.section-header {
  margin-bottom: 50px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* ==========================================================================
   SECTION: SERVICES GRID
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 28px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: var(--transition-fast);
}

.service-card:hover::before { opacity: 1; }

.service-icon-box {
  width: 60px;
  height: 60px;
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  transition: var(--transition-fast);
}

.service-card:hover .service-icon-box {
  background: var(--color-primary);
  color: #ffffff;
  transform: scale(1.05) rotate(-4deg);
}

.service-card-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.service-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.service-features-list {
  list-style: none;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-features-list li {
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-features-list li i {
  color: var(--color-success);
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}

.service-price {
  display: flex;
  flex-direction: column;
}

.price-lbl { font-size: 0.75rem; color: var(--text-muted); }
.price-val { font-family: var(--font-mono); font-size: 1.2rem; font-weight: 700; color: var(--color-accent); }

/* ==========================================================================
   SECTION: PRICE CALCULATOR
   ========================================================================== */
.calculator-section {
  position: relative;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.92) 100%), 
              url('https://images.unsplash.com/photo-1585704032915-c3400ca199e7?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

[data-theme="dark"] .calculator-section {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(7, 11, 21, 0.92) 100%), 
              url('https://images.unsplash.com/photo-1585704032915-c3400ca199e7?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

.calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border-glow);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.calc-step-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-heading);
}

.calc-service-options, .calc-time-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.calc-option-btn {
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  padding: 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
}

.calc-option-btn:hover {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.4);
  color: var(--color-primary);
}

.calc-option-btn.active {
  background: rgba(2, 132, 199, 0.12);
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 700;
  box-shadow: 0 0 12px var(--color-primary-glow);
}

.calc-quantity-control {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-input);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  width: fit-content;
  border: 1px solid var(--glass-border);
}

.btn-qty {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 1rem;
  cursor: pointer;
}

.qty-val {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.qty-unit {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.calc-result-box {
  margin-top: 36px;
  background: rgba(2, 132, 199, 0.05);
  border: 1px solid rgba(2, 132, 199, 0.25);
  padding: 24px 30px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

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

.result-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.result-price-group {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.result-price {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-accent);
}

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

/* ==========================================================================
   WHY CHOOSE US GRID
   ========================================================================== */
.why-us-section {
  position: relative;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.94) 0%, rgba(241, 245, 249, 0.90) 100%), 
              url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=1920&q=80') center/cover fixed no-repeat;
}

[data-theme="dark"] .why-us-section {
  background: linear-gradient(135deg, rgba(7, 11, 21, 0.95) 0%, rgba(15, 23, 42, 0.90) 100%), 
              url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=1920&q=80') center/cover fixed no-repeat;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.why-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.why-icon {
  width: 54px;
  height: 54px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--color-accent);
  margin-bottom: 18px;
}

.why-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PROCESS STEPS
   ========================================================================== */
.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.step-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 0 0 24px 0;
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.step-img-wrapper {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.step-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.step-card:hover .step-img {
  transform: scale(1.08);
}

.step-body-content {
  padding: 24px 20px 0 20px;
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 2.8rem;
  font-weight: 800;
  color: rgba(2, 132, 199, 0.1);
  position: absolute;
  top: 16px;
  right: 20px;
  line-height: 1;
}

.step-icon {
  width: 48px;
  height: 48px;
  background: rgba(2, 132, 199, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 18px;
}

.step-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step-card p { font-size: 0.88rem; color: var(--text-muted); }

/* ==========================================================================
   LIVE ACTIVE TECHNICIAN RADAR MAP
   ========================================================================== */
.live-map-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-card);
}

.map-visual-container {
  position: relative;
  width: 100%;
  height: 440px;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(14, 165, 233, 0.4);
  overflow: hidden;
  box-shadow: var(--shadow-lg), inset 0 0 50px rgba(0,0,0,0.6);
}

.map-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65) contrast(1.15) saturate(1.1);
  z-index: 1;
}

.map-overlay-grid {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.1) 0%, rgba(15, 23, 42, 0.6) 100%),
              linear-gradient(rgba(14, 165, 233, 0.15) 1px, transparent 1px),
              linear-gradient(90deg, rgba(14, 165, 233, 0.15) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  z-index: 2;
  pointer-events: none;
}

.radar-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  margin-top: -250px;
  margin-left: -250px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(14, 165, 233, 0.35) 0deg, transparent 60deg, transparent 360deg);
  animation: radarRotate 8s linear infinite;
  pointer-events: none;
  z-index: 3;
}

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

.map-tech-pin {
  position: absolute;
  z-index: 10;
  cursor: pointer;
}

.tech-avatar-wrapper {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: #0f172a;
}

.map-tech-pin:hover .tech-avatar-wrapper {
  transform: scale(1.25);
  z-index: 20;
}

.tech-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.tech-badge-icon {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.badge-electric { background: #f59e0b; }
.badge-water { background: #0284c7; }
.badge-it { background: #3b82f6; }
.badge-appliance { background: #f97316; }
.badge-pump { background: #10b981; }

.avatar-ring-pulse {
  position: absolute;
  inset: -6px;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  animation: avatarPulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes avatarPulse {
  75%, 100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.tech-info-popover {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  pointer-events: none;
}

.map-tech-pin:hover .tech-info-popover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.tech-name { font-weight: 800; font-size: 0.85rem; color: #ffffff; }
.tech-status { font-size: 0.78rem; color: #38bdf8; font-weight: 600; }
.tech-exp { font-size: 0.7rem; color: var(--text-muted); }

.map-region-label {
  position: absolute;
  z-index: 5;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.label-hcm { top: 12px; left: 16px; }
.label-bd { top: 12px; left: 50%; transform: translateX(-50%); }
.label-vt { bottom: 16px; right: 16px; }

/* Notice Banner */
.travel-notice-box {
  background: rgba(239, 68, 68, 0.1);
  border: 2px solid #ef4444;
  color: #dc2626;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.15);
}

[data-theme="dark"] .travel-notice-box {
  background: rgba(239, 68, 68, 0.16);
  border-color: #f87171;
  color: #ff6b6b;
}

.travel-notice-box i {
  font-size: 1.5rem;
  flex-shrink: 0;
  color: #dc2626;
}

[data-theme="dark"] .travel-notice-box i {
  color: #f87171;
}

/* ==========================================================================
   LOCATIONS SECTION
   ========================================================================== */
.region-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 12px;
  overflow-x: auto;
}

.region-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.region-tab.active {
  background: var(--color-primary);
  color: #ffffff;
}

.district-chips-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.district-chip {
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.district-chip i { color: var(--color-success); font-size: 0.8rem; }

.location-status-banner {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.9rem;
}

.status-left { display: flex; align-items: center; gap: 8px; font-weight: 500; }

/* ==========================================================================
   TESTIMONIALS & FAQS
   ========================================================================== */
.testimonials-section {
  position: relative;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.96) 0%, rgba(241, 245, 249, 0.92) 100%),
              url('https://images.unsplash.com/photo-1513694203232-719a280e022f?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

[data-theme="dark"] .testimonials-section {
  background: linear-gradient(135deg, rgba(7, 11, 21, 0.96) 0%, rgba(15, 23, 42, 0.92) 100%),
              url('https://images.unsplash.com/photo-1513694203232-719a280e022f?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rating-stars {
  color: #f59e0b;
  margin-bottom: 12px;
  display: flex;
  gap: 4px;
}

.testimonial-text {
  font-size: 0.92rem;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 20px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
}

.user-details { display: flex; flex-direction: column; }
.user-name { font-weight: 700; font-size: 0.95rem; }
.user-district { font-size: 0.78rem; color: var(--text-muted); }

/* FAQ Accordion */
.faq-accordion {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 24px;
  text-align: left;
  color: var(--text-heading);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.faq-answer {
  padding: 0 24px 20px 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  display: none;
}

.faq-content-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 20px;
  align-items: center;
}

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

.faq-media-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-icon { transform: rotate(180deg); }

/* ==========================================================================
   FINAL CTA BANNER
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.92) 0%, rgba(3, 105, 161, 0.95) 100%), 
              url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  color: #ffffff;
  padding: 85px 0;
  position: relative;
  overflow: hidden;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.cta-content h2 { font-size: 2.4rem; margin-bottom: 10px; color: #ffffff; }
.cta-content p { font-size: 1.1rem; opacity: 0.95; max-width: 600px; }
.cta-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  border-top: 1px solid var(--glass-border);
  padding-top: 70px;
}

.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4, .site-footer .brand-title {
  color: #ffffff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 50px;
}

.footer-desc { font-size: 0.88rem; color: #94a3b8; }
.footer-contact-info p { font-size: 0.85rem; color: #cbd5e1; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.footer-contact-info i { color: #38bdf8; }

.footer-heading { font-size: 1.1rem; margin-bottom: 18px; color: #ffffff; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #94a3b8; font-size: 0.88rem; }
.footer-links a:hover { color: #ffffff; padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  font-size: 0.82rem;
  color: #64748b;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-socials { display: flex; gap: 14px; font-size: 1.2rem; }
.footer-socials a { color: #94a3b8; }
.footer-socials a:hover { color: #ffffff; }

/* ==========================================================================
   FLOATING BUTTONS & TOAST
   ========================================================================== */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.6rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
}

.float-zalo { background: #0084ff; }
.float-booking { background: var(--color-primary); color: #ffffff; }
.float-phone { background: linear-gradient(135deg, #ef4444, #dc2626); }

.float-btn:hover { transform: scale(1.1); }

.float-tooltip {
  position: absolute;
  right: 70px;
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}

.float-btn:hover .float-tooltip { opacity: 1; }

.pulse-ring {
  animation: pulse-ring-anim 2s infinite;
}

@keyframes pulse-ring-anim {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 20px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Toast Popup */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 99;
}

.toast-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--color-primary);
  box-shadow: var(--shadow-lg);
  max-width: 360px;
  transform: translateY(150%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-card.show { transform: translateY(0); }

.toast-icon { font-size: 1.8rem; color: var(--color-success); }
.toast-title { font-size: 0.85rem; font-weight: 700; color: var(--text-heading); }
.toast-desc { font-size: 0.78rem; color: var(--text-muted); }
.toast-close { background: none; border: none; color: var(--text-dim); cursor: pointer; }

/* ==========================================================================
   MODAL DIALOG
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 620px;
  background: var(--bg-modal);
  border: 1px solid var(--glass-border-glow);
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

.modal-icon {
  width: 50px;
  height: 50px;
  background: rgba(2, 132, 199, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--color-primary);
  margin: 0 auto 10px auto;
}

.modal-header h3 { font-size: 1.4rem; margin-bottom: 4px; }
.modal-header p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }

.modal-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.booking-success-view { text-align: center; padding: 20px 0; }
.success-icon { font-size: 4rem; color: var(--color-success); margin-bottom: 10px; }
.success-summary { background: rgba(0, 0, 0, 0.03); padding: 16px; border-radius: var(--radius-md); margin-top: 16px; text-align: left; font-size: 0.9rem; }

/* ==========================================================================
   REAL FIELD WORK GALLERY & MOBILE STICKY BAR
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-card {
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

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

.gallery-img-wrapper {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: var(--bg-strip);
}

.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img-wrapper img {
  transform: scale(1.08);
}

.gallery-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(2, 132, 199, 0.9);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
}

.gallery-card-body {
  padding: 18px 20px;
}

.gallery-title {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--text-heading);
}

.gallery-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Mobile Sticky Action Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 999;
  background: var(--bg-card);
  border-top: 1px solid var(--glass-border-glow);
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
  padding: 10px 16px;
  gap: 12px;
}

.mobile-bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  color: #ffffff;
  min-height: 48px;
}

.mobile-bar-call {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.mobile-bar-zalo {
  background: linear-gradient(135deg, #0084ff, #0066cc);
  box-shadow: 0 4px 14px rgba(0, 132, 255, 0.3);
}

/* RESPONSIVE MEDIA QUERIES & MOBILE ZIP OPTIMIZATION */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

.hero-section {
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .hero-container { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-buttons { justify-content: center; }
}

@media (max-width: 768px) {
  .site-header { padding: 10px 0; }
  .header-actions .btn-hotline,
  .header-actions .open-booking-modal {
    display: none !important;
  }
  .header-actions { gap: 8px; }
  .brand-title { font-size: 1.05rem; }
  .brand-sub { font-size: 0.6rem; }
  .logo-icon { width: 36px; height: 36px; font-size: 1.2rem; }
  .theme-toggle-btn { width: 36px; height: 36px; font-size: 1.1rem; }
  .mobile-menu-toggle { padding: 6px 10px; font-size: 1.3rem; }
  .mobile-sticky-bar { display: flex; }
  .floating-cta { bottom: 80px; right: 16px; }
  .toast-container { bottom: 80px; left: 16px; right: 16px; max-width: none; }
  .gallery-grid { grid-template-columns: 1fr; }
  body { padding-bottom: 70px; }

  .hero-section {
    padding: 35px 0 50px 0;
  }
  .hero-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    padding: 0 14px;
    box-sizing: border-box;
  }
  .hero-content, .hero-card-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .hero-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px;
    margin-bottom: 24px;
  }
  .hero-metrics .metric-divider {
    display: none;
  }
  .hero-metrics .metric-item {
    text-align: center;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    padding: 14px 16px;
    font-size: 0.95rem;
  }
  .travel-notice-box {
    width: 100%;
    box-sizing: border-box;
    font-size: 0.82rem;
    padding: 12px;
    line-height: 1.45;
  }
  .guarantee-chip {
    font-size: 0.78rem;
    padding: 4px 10px;
    max-width: 100%;
    box-sizing: border-box;
  }
  .map-visual-container {
    height: 320px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .hero-title { font-size: 1.6rem; line-height: 1.25; word-break: break-word; }
  .hero-subtitle { font-size: 0.88rem; }
  .section { padding: 40px 0; }
  .section-title { font-size: 1.35rem; }
  .section-desc { font-size: 0.85rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .top-announcement { display: none; }
  .glass-card { padding: 18px 14px; }
  .emergency-card { padding: 16px 12px; }
}

/* ==========================================================================
   DISPATCH APP & TECHNICIAN SUBSYSTEMS STYLES
   ========================================================================== */
.dispatch-app-section {
  background: var(--bg-strip);
  padding: 60px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.dispatch-tabs-wrapper {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.dispatch-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-normal);
}

.dispatch-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.dispatch-tab.active {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0284c7 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 16px var(--color-primary-glow);
}

.dispatch-tab-content {
  display: none;
}

.dispatch-tab-content.active {
  display: block;
}

.dispatch-card {
  padding: 32px;
}

/* Console Header */
.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
}

.console-title-group h3 {
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-heading);
}

.console-title-group p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Metrics Grid */
.ops-metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.ops-metric-card {
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ops-num {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.ops-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* Jobs Control Bar */
.jobs-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--bg-card);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  font-size: 0.85rem;
  font-weight: 600;
}

.form-select-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  outline: none;
}

.notice-badge {
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Jobs Table */
.jobs-table-container {
  width: 100%;
  overflow-x: auto;
}

.jobs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.jobs-table th {
  background: rgba(2, 132, 199, 0.08);
  color: var(--text-heading);
  padding: 14px 16px;
  font-weight: 700;
  border-bottom: 2px solid var(--glass-border);
  white-space: nowrap;
}

.jobs-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--glass-border);
  vertical-align: middle;
}

.jobs-table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.job-code-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(2, 132, 199, 0.1);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.customer-cell {
  display: flex;
  flex-direction: column;
}

.customer-cell strong {
  color: var(--text-heading);
}

.customer-cell span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.service-cell {
  font-weight: 600;
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.new { background: rgba(148, 163, 184, 0.15); color: #64748b; border: 1px solid rgba(148, 163, 184, 0.3); }
.status-pill.broadcasted { background: rgba(245, 158, 11, 0.15); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.3); }
.status-pill.transit { background: rgba(56, 189, 248, 0.15); color: #0284c7; border: 1px solid rgba(56, 189, 248, 0.3); }
.status-pill.surveying { background: rgba(168, 85, 247, 0.15); color: #9333ea; border: 1px solid rgba(168, 85, 247, 0.3); }
.status-pill.pending { background: rgba(234, 179, 8, 0.15); color: #ca8a04; border: 1px solid rgba(234, 179, 8, 0.3); }
.status-pill.executing { background: rgba(2, 132, 199, 0.15); color: #0284c7; border: 1px solid rgba(2, 132, 199, 0.3); }
.status-pill.done { background: rgba(16, 185, 129, 0.15); color: #059669; border: 1px solid rgba(16, 185, 129, 0.3); }
.status-pill.closed { background: rgba(34, 197, 94, 0.2); color: #16a34a; border: 1px solid rgba(34, 197, 94, 0.4); }
.status-pill.cancelled { background: rgba(239, 68, 68, 0.15); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.3); }

/* Tech App Styles */
.tech-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
}

.tech-profile-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tech-avatar-big {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #38bdf8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 15px var(--color-primary-glow);
}

.tech-profile-info {
  display: flex;
  flex-direction: column;
}

.tech-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tech-name-row h3 {
  font-size: 1.25rem;
}

.tech-status-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.tech-status-badge.ready { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.tech-status-badge.busy { background: rgba(245, 158, 11, 0.15); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.3); }
.tech-status-badge.blocked { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.4); }

.tech-switcher {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tech-switcher label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
}

.rule-banner-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-main);
  font-size: 0.88rem;
}

.rule-banner-warning i {
  font-size: 1.6rem;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* Stepper Bar */
.stepper-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin: 30px 0;
  padding: 0 10px;
}

.stepper-bar::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 30px;
  right: 30px;
  height: 3px;
  background: var(--glass-border);
  z-index: 1;
  transform: translateY(-50%);
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: var(--transition-fast);
}

.step-item.active .step-circle {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 0 15px var(--color-primary-glow);
}

.step-item.completed .step-circle {
  border-color: var(--color-success);
  background: var(--color-success);
  color: #ffffff;
}

.step-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.step-item.active .step-title {
  color: var(--color-primary);
}

/* Tech Workspace Card */
.tech-workspace-card {
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.job-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
  background: var(--bg-card);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

/* Rules Tab Grid */
.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.rule-card {
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.rule-card h4 {
  font-size: 1.1rem;
  margin-top: 10px;
  margin-bottom: 8px;
}

.rule-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.modal-lg {
  max-width: 780px;
}

@media (max-width: 992px) {
  .ops-metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .rules-grid {
    grid-template-columns: 1fr;
  }
  .job-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .ops-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stepper-bar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .stepper-bar::before {
    display: none;
  }
}

/* 3D Animated Pin Styling */
.custom-3d-pin-wrapper {
  background: transparent !important;
  border: none !important;
}

.pin-3d {
  position: relative;
  width: 44px;
  height: 44px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  border: 2px solid #38bdf8;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.6), inset 0 0 10px rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatPin 2s ease-in-out infinite;
}

.pin-avatar {
  transform: rotate(45deg);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-emoji {
  font-size: 1.3rem;
}

/* Pulsing light ring under the pin */
.pin-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 50px;
  height: 50px;
  border: 2px solid #10b981;
  border-radius: 50%;
  animation: pulseRing 1.5s ease-out infinite;
  pointer-events: none;
  opacity: 0;
}

/* Pin drop shadow on map */
.pin-shadow {
  position: absolute;
  bottom: -15px;
  left: 22px;
  width: 16px;
  height: 4px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  transform: translate(-50%, 0);
  filter: blur(1px);
  animation: shadowScale 2s ease-in-out infinite;
}

@keyframes floatPin {
  0%, 100% {
    transform: translateY(0) rotate(-45deg);
  }
  50% {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@keyframes shadowScale {
  0%, 100% {
    transform: translate(-50%, 0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translate(-50%, 0) scale(0.6);
    opacity: 0.15;
  }
}

@keyframes pulseRing {
  0% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0;
  }
}

/* Leaflet Map popup customization */
.leaflet-popup-content-wrapper {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.5) !important;
  padding: 5px;
}
.leaflet-popup-tip {
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid rgba(255,255,255,0.1);
}
.map-popup-card {
  font-family: 'Be Vietnam Pro', sans-serif;
  color: #fff;
}
.popup-header {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 6px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.popup-role-tag {
  background: #38bdf8;
  color: #0f172a;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.popup-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff !important;
}
.popup-body p {
  margin: 4px 0 !important;
  font-size: 0.8rem;
  color: #cbd5e1 !important;
}
.popup-body p i {
  color: #38bdf8;
  margin-right: 4px;
  width: 14px;
}
.popup-status {
  margin-top: 8px !important;
  font-weight: 500;
  color: #10b981 !important;
}


