/* =============================================================
   VMon Hosting Theme - Main Stylesheet
   Primary: #0056d6 | Accent: #00b4ff | Dark: #0a1628
   ============================================================= */

/* ──────────────────────────────────────────────────────────────
   1. CSS VARIABLES & RESET
   ────────────────────────────────────────────────────────────── */
:root {
  --blue-50:  #e8f0fe;
  --blue-100: #c2d4fc;
  --blue-200: #93b4fa;
  --blue-300: #5e90f7;
  --blue-400: #3570f4;
  --blue-500: #0056d6;
  --blue-600: #0047bb;
  --blue-700: #003899;
  --blue-800: #002b7a;
  --blue-900: #001d5c;

  --accent:   #00b4ff;
  --accent-2: #00d4aa;

  --dark:     #0a1628;
  --dark-2:   #0f2044;
  --dark-3:   #1a3260;

  --text-primary:   #1a2340;
  --text-secondary: #4a5568;
  --text-muted:     #718096;

  --white: #ffffff;
  --light: #f0f6ff;
  --border: #e2e8f8;

  --gradient-primary: linear-gradient(135deg, #0056d6 0%, #003899 100%);
  --gradient-hero: linear-gradient(135deg, #0a1628 0%, #001d5c 50%, #003899 100%);
  --gradient-accent: linear-gradient(135deg, #0056d6 0%, #00b4ff 100%);

  --shadow-sm: 0 1px 3px rgba(0,86,214,.08), 0 1px 2px rgba(0,86,214,.04);
  --shadow-md: 0 4px 16px rgba(0,86,214,.12), 0 2px 8px rgba(0,86,214,.06);
  --shadow-lg: 0 10px 40px rgba(0,86,214,.2), 0 4px 16px rgba(0,86,214,.1);
  --shadow-xl: 0 20px 60px rgba(0,86,214,.25), 0 8px 32px rgba(0,86,214,.12);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --transition: .25s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-500); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-600); }
ul { list-style: none; }

/* ──────────────────────────────────────────────────────────────
   2. UTILITIES
   ────────────────────────────────────────────────────────────── */
.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header { text-align: center; margin-bottom: 56px; }
.section-header.light .section-title,
.section-header.light .section-desc { color: #fff; }

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-50);
  color: var(--blue-500);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--blue-100);
  margin-bottom: 14px;
}
.section-badge.light {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.25);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

.section-bg-blue {
  background: var(--gradient-hero);
  padding: 80px 0;
}

.section-bg-light {
  background: var(--light);
  padding: 80px 0;
}

/* ──────────────────────────────────────────────────────────────
   3. BUTTONS
   ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .9rem;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-lg { padding: 14px 30px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 6px 14px; font-size: .8rem; }

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,86,214,.35);
}
.btn-primary:hover {
  color: #fff;
  box-shadow: 0 8px 28px rgba(0,86,214,.5);
}

.btn-outline-primary {
  background: transparent;
  color: var(--blue-500);
  border-color: var(--blue-500);
}
.btn-outline-primary:hover {
  background: var(--blue-500);
  color: #fff;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: #fff;
}

.btn-white-solid {
  background: #fff;
  color: var(--blue-600);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.btn-white-solid:hover {
  background: var(--blue-50);
  color: var(--blue-700);
}

.btn-service {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.btn-promo {
  background: rgba(255,255,255,.2);
  color: #fff;
  border-color: rgba(255,255,255,.4);
  font-size: .85rem;
  padding: 8px 18px;
  border-radius: 8px;
  flex-shrink: 0;
}
.btn-promo:hover { background: rgba(255,255,255,.3); color: #fff; }

/* ──────────────────────────────────────────────────────────────
   4. HEADER
   ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

/* Header top bar */
.header-top {
  background: var(--gradient-primary);
  padding: 10px 0;
}
.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.header-top-info,
.header-top-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-top-info a,
.header-top-links a {
  color: rgba(255,255,255,.9);
  font-size: .88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-top-info a:hover,
.header-top-links a:hover { color: #fff; }

.btn-register {
  background: rgba(255,255,255,.2) !important;
  padding: 3px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.4);
}

/* New header top classes - v1.1.0 */
.header-top-left,
.header-top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-top-left a {
  color: rgba(255,255,255,.9);
  font-size: .88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.header-top-left a:hover { color: #fff; }
/* Bell badge */
.header-bell-link { position: relative; }
.header-bell-wrap { position: relative; display: inline-flex; align-items: center; }
.bell-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #ef4444;
  color: #fff;
  font-size: .6rem;
  font-weight: 800;
  line-height: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bell-pulse 2s ease-in-out infinite;
}
@keyframes bell-pulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.2); }
}
.header-divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,.3);
}
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 2px 4px;
}
.lang-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 16px;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}
.lang-btn.active,
.lang-btn:hover {
  background: rgba(255,255,255,.25);
  color: #fff;
}
.header-ticket-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  text-decoration: none;
  transition: all var(--transition);
}
.header-ticket-btn:hover { background: rgba(255,255,255,.25); color: #fff; }
.header-auth-btn {
  color: rgba(255,255,255,.85);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
}
.header-auth-btn:hover { color: #fff; }

/* Phone block in header main bar */
.header-main-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-phone-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,86,214,.4); }
  50%       { box-shadow: 0 0 0 8px rgba(0,86,214,0); }
}
.header-phone-text { white-space: nowrap; }
.header-phone-label {
  font-size: .68rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.header-phone-number {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue-500);
  line-height: 1;
  letter-spacing: -.01em;
}

/* Submenu item icon */
.sub-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  flex-shrink: 0;
  margin-right: 4px;
  opacity: .9;
}

/* Header main */
.header-main { padding: 20px 0; }
.header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

/* Logo */
.site-logo { flex-shrink: 0; min-width: 120px; }
.site-logo a { display: flex; align-items: center; }
.site-logo-img { height: 40px; width: auto; display: block; }
.logo-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 800;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
}
.logo-name { color: #fff; font-size: 1.4rem; font-weight: 800; letter-spacing: -.5px; }
.logo-vps  { color: #0056d6; font-weight: 900; }
.logo-tagline {
  color: var(--blue-500);
  font-size: .7rem;
  background: var(--blue-50);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

/* Navigation */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
  color: var(--blue-500);
  background: var(--blue-50);
}

/* Dropdown & Mega Menu Base */
.nav-menu .menu-item-has-children { position: relative; }
.nav-menu .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
}
.nav-menu .menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-menu .sub-menu li a {
  display: block;
  color: var(--text-primary);
  font-size: .95rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-menu .sub-menu li a:hover {
  color: var(--blue-500);
  background: var(--blue-50);
  padding-left: 16px;
}

/* AZDIGI-Style Mega Menu */
.has-mega-menu { position: static !important; }
@media (min-width: 993px) { 
  .mobile-mega-menu { display: none !important; } 
}

.mega-menu-wrapper {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 100%;
  max-width: 960px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  border: 1px solid var(--border);
  overflow: hidden;
}

/* Invisible block to prevent menu from closing when hovering between navbar and submenu */
.has-mega-menu::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 20px;
}

@media (min-width: 993px) {
  .has-mega-menu:hover .mega-menu-wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

.mega-sidebar {
  width: 260px;
  background: #f8fafc;
  padding: 24px 16px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mega-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.mega-tab i:first-child {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.mega-tab-arrow {
  margin-left: auto;
  font-size: 0.8rem;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.2s ease;
}

.mega-tab:hover,
.mega-tab.active {
  background: #fff;
  color: var(--blue-600);
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}

.mega-tab:hover i:first-child,
.mega-tab.active i:first-child {
  color: var(--blue-500);
}

.mega-tab:hover .mega-tab-arrow,
.mega-tab.active .mega-tab-arrow {
  opacity: 1;
  transform: translateX(0);
}

.mega-content {
  flex: 1;
  padding: 32px;
  background: #fff;
  position: relative;
  min-height: 400px;
}

.mega-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}
.mega-panel.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
}
.mega-grid.single-col { grid-template-columns: 1fr; }

.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}
.mega-item:hover {
  background: var(--blue-50);
  border-color: var(--blue-100);
}

.mega-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.mega-icon.default { font-size: 32px; background: transparent; }
.mega-icon.blue { background: #e0f2fe; color: #0284c7; }
.mega-icon.green { background: #dcfce7; color: #16a34a; }
.mega-icon.indigo { background: #e0e7ff; color: #4f46e5; }
.mega-icon.purple { background: #f3e8ff; color: #9333ea; }

.mega-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.mega-item:hover .mega-info h4 { color: var(--blue-600); }

.mega-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.mega-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.mega-badge.hot { background: #fee2e2; color: #ef4444; }
.mega-badge.new { background: #dcfce7; color: #16a34a; }

/* Mobile fallback for Mega Menu */
@media (max-width: 992px) {
  .has-mega-menu { position: relative !important; }
  .mega-menu-wrapper {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    display: none;
    margin-top: 5px;
    background: rgba(255, 255, 255, 0.98); /* Slightly transparent white for mobile to blend well */
    overflow: hidden;
  }
  .desktop-mega-menu { display: none !important; }
  .mobile-mega-menu { display: none; } /* Reverted to block when .sub-open kicks in via other css */
  .has-mega-menu.sub-open .mega-menu-wrapper { display: flex; opacity: 1; visibility: visible; }
  
  .mega-sidebar { 
    width: 100%; 
    border-right: none; 
    border-bottom: 1px solid var(--border); 
    padding: 8px 12px; 
    flex-direction: row; 
    overflow-x: auto;
    white-space: nowrap; /* Prevent tabs from breaking into multiple lines and forcing height */
    -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
    scrollbar-width: none; /* Hide scrollbar Firefox */
    background: transparent;
  }
  .mega-sidebar::-webkit-scrollbar { display: none; /* Hide scrollbar Chrome/Safari */ }
  
  .mega-tab { 
    width: auto; 
    padding: 8px 12px; 
    font-size: 1rem;
  }
  
  .mega-content { 
    padding: 12px; 
    min-height: auto; 
    width: 100%; 
    overflow-x: hidden; 
    background: transparent;
  }
  
  .mega-grid { 
    grid-template-columns: 1fr; 
    gap: 8px; 
  }
  
  .mega-item {
    padding: 10px;
  }
  
  .mega-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .mega-icon.default { font-size: 24px; }
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition);
  border-radius: 2px;
}
.nav-close {
  display: none;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
  padding: 10px 14px;
  margin-bottom: 20px;
  line-height: 1;
}
.nav-close:hover { background: rgba(255,255,255,.25); }

/* ──────────────────────────────────────────────────────────────
   5. HERO SECTION
   ────────────────────────────────────────────────────────────── */
.hero-section {
  background: var(--gradient-hero);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 60px 0 100px;
}

.hero-bg-particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(0,180,255,.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0,86,214,.2) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0,56,153,.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Grid overlay */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,180,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,180,255,.15);
  color: var(--accent);
  border: 1px solid rgba(0,180,255,.3);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 500px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.hero-feat {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.85);
  font-size: .88rem;
  font-weight: 500;
}
.hero-feat .fa-check-circle { color: var(--accent-2); }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stat { text-align: center; }
.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat-number span { font-size: 1rem; color: var(--accent); }
.stat-label { font-size: .75rem; color: rgba(255,255,255,.6); margin-top: 4px; font-weight: 500; }
.hero-stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.15); }

/* Server card visual */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-card-stack { position: relative; width: 100%; max-width: 440px; }

.hero-server-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  overflow: hidden;
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255,255,255,.1);
}

.server-card-header {
  background: rgba(0,0,0,.2);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}
.server-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.server-dot.green { background: #10b981; }
.server-dot.yellow { background: #f59e0b; }
.server-dot.red { background: #ef4444; }

.server-card-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }

.server-stat-row {
  display: grid;
  grid-template-columns: 36px 1fr 44px;
  align-items: center;
  gap: 10px;
}
.server-stat-row > span:first-child {
  color: rgba(255,255,255,.5);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.server-stat-row > span:last-child {
  color: rgba(255,255,255,.7);
  font-size: .78rem;
  text-align: right;
}

.server-bar {
  height: 6px;
  background: rgba(255,255,255,.1);
  border-radius: 3px;
  overflow: hidden;
}
.server-bar-fill {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 3px;
  transition: width 1.5s ease;
}
.server-bar-fill.green-bar { background: linear-gradient(135deg,#10b981,#34d399); }

.server-card-footer {
  padding: 12px 16px;
  background: rgba(16,185,129,.1);
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.text-green { color: #10b981; }

.hero-float-badge {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: float-badge 3s ease-in-out infinite;
  z-index: 2;
}
.badge-location { bottom: 50px; left: -40px; animation-delay: .5s; }
.badge-deploy   { top: -20px; right: -30px; animation-delay: 1.5s; }

.hero-float-badge i { color: var(--blue-500); font-size: 1.1rem; }
.badge-title { font-size: .82rem; font-weight: 700; color: var(--text-primary); }
.badge-sub   { font-size: .72rem; color: var(--text-muted); }

@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  line-height: 0;
  z-index: 0;
}
.hero-wave svg { width: 100%; }

/* ──────────────────────────────────────────────────────────────
   6. PROMO BANNER
   ────────────────────────────────────────────────────────────── */
/* Offset anchor scroll for fixed header */
section[id] { scroll-margin-top: 90px; }
.promo-banner-section { padding: 20px 0; }
.promo-banner {
  background: var(--gradient-accent);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}
.promo-icon { color: #fff; font-size: 1.4rem; }
.promo-content {
  flex: 1;
  color: rgba(255,255,255,.9);
  font-size: .9rem;
}
.promo-code {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 2px 10px;
  border-radius: 6px;
  margin-left: 10px;
  font-size: 0.82rem;
  font-family: monospace;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  user-select: none;
}
.promo-code:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.promo-code:active {
  transform: translateY(0);
}
.promo-code .copy-tooltip {
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #2563eb; /* blue-600 */
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: system-ui, -apple-system, sans-serif;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  font-weight: 500;
  z-index: 10;
}
.promo-code .copy-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: #2563eb transparent transparent transparent;
}
.promo-code .copy-tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ──────────────────────────────────────────────────────────────
   7. SERVICES SECTION
   ────────────────────────────────────────────────────────────── */
.services-section { padding: 80px 0; }

.services-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  background: var(--blue-50);
  padding: 6px;
  border-radius: var(--radius-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.svc-tab {
  background: none;
  border: none;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  flex: 1;
}
.svc-tab.active,
.svc-tab:hover {
  background: #fff;
  color: var(--blue-500);
  box-shadow: var(--shadow-sm);
}

.svc-panel { display: none; }
.svc-panel.active { display: block; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200);
}
.service-card:hover::before { opacity: 1; }

.service-card.popular {
  border-color: var(--blue-400);
  box-shadow: var(--shadow-md);
  padding-top: 44px;
}
.service-card.popular::before { opacity: 1; }

.service-badge-popular {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.service-flag {
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}
.service-flag-icon {
  font-size: 1.7rem !important;
}
.service-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.service-desc {
  font-size: .87rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.service-specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--light);
  border-radius: var(--radius-md);
}
.service-specs li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .84rem;
  color: var(--text-secondary);
}
.service-specs li .fas { color: var(--blue-500); font-size: .7rem; }

.service-price {
  text-align: center;
  padding: 12px 0;
}
.price-label { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.price-amount {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--blue-600);
  line-height: 1.2;
}
.price-amount span { font-size: 1rem; font-weight: 700; color: var(--blue-500); }
.price-unit { font-size: .8rem; color: var(--text-muted); }

/* ──────────────────────────────────────────────────────────────
   8. WHY SECTION
   ────────────────────────────────────────────────────────────── */
.why-section { padding: 0; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.why-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
}
.why-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.2);
}

.why-icon {
  width: 52px;
  height: 52px;
  background: var(--gradient-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.why-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.why-desc {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
}

/* ──────────────────────────────────────────────────────────────
   9. OS SECTION
   ────────────────────────────────────────────────────────────── */
.os-section { padding: 80px 0; }

.os-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}
.os-tab {
  background: var(--light);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 10px 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
}
.os-tab.active, .os-tab:hover {
  background: var(--blue-500);
  color: #fff;
  border-color: var(--blue-500);
}

.os-panel { display: none; }
.os-panel.active { display: block; }

.os-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.os-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.os-card:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.os-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.os-name { font-size: .85rem; font-weight: 600; color: var(--text-primary); }
.os-version { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }

/* ──────────────────────────────────────────────────────────────
   11. TESTIMONIALS (CUSTOM AUTO-SLIDER)
   ────────────────────────────────────────────────────────────── */
.testimonials-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.custom-slider-container {
  max-width: 800px; /* Adjusting to roughly 40-50% of typical containers */
  width: 45%; 
  margin: 0 auto;
  position: relative;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  padding: 15px 40px;
  overflow: visible; /* Allow buttons to overflow slightly if needed */
}

.custom-slider-viewport {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.custom-slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.custom-slider-item {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-slider-item img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Navigation Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  color: var(--text-main);
}
.slider-arrow:hover {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 86, 214, 0.2);
  border-color: var(--blue-600);
}
.slider-arrow.prev { left: -25px; }
.slider-arrow.next { right: -25px; }

/* Dots Pagination */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.slider-dot.active {
  background: var(--blue-600);
  transform: scale(1.3);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .custom-slider-container { width: 60%; }
}
@media (max-width: 992px) {
  .custom-slider-container { width: 80%; padding: 30px; }
  .slider-arrow.prev { left: -15px; }
  .slider-arrow.next { right: -15px; }
}
@media (max-width: 768px) {
  .custom-slider-container { 
    width: 95%; 
    padding: 20px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  }
  .slider-arrow { width: 40px; height: 40px; }
  .slider-arrow.prev { left: 5px; }
  .slider-arrow.next { right: 5px; }
  .custom-slider-container { overflow: hidden; } /* Clip arrows on small mobile if needed */
}

/* Hide legacy elements */
.proxy-slide-wrap, .proxy-slide-dots, .marquee-container, .masonry-container { display: none !important; }
──────────────────────────────────────────────────── */
.datacenter-section { padding: 80px 0; }

.dc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.dc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all var(--transition);
}
.dc-card:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.dc-card.dc-soon { opacity: .6; }

.dc-flag { font-size: 2.2rem; line-height: 1; flex-shrink: 0; }
.dc-country { font-size: .95rem; font-weight: 700; color: var(--text-primary); }
.dc-locations {
  font-size: .78rem;
  color: var(--blue-500);
  margin: 4px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.dc-desc { font-size: .75rem; color: var(--text-muted); }


/* Hide legacy slider classes if they remain in other files temporarily */
.proxy-slide-wrap, .proxy-slide-dots, .marquee-container { display: none !important; }

.testimonial-stars { color: #f59e0b; display: flex; gap: 3px; font-size: .85rem; }
.testimonial-text {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}
.author-name { font-size: .9rem; font-weight: 700; color: var(--text-primary); }
.author-role { font-size: .78rem; color: var(--text-muted); }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}
.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.carousel-btn:hover {
  background: var(--blue-500);
  color: #fff;
  border-color: var(--blue-500);
}
.carousel-dots { display: flex; gap: 6px; }
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.carousel-dot.active {
  background: var(--blue-500);
  width: 24px;
  border-radius: 4px;
}

/* ──────────────────────────────────────────────────────────────
   12. FAQ SECTION
   ────────────────────────────────────────────────────────────── */
.faq-section { padding: 80px 0; }

.faq-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: start;
}

.faq-header-col { position: sticky; top: 100px; }
.faq-header-col .section-title { text-align: left; }
.faq-header-col .section-desc { text-align: left; margin: 0; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--blue-300); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
}
.faq-question:hover { color: var(--blue-500); }
.faq-item.open .faq-question { color: var(--blue-500); }

.faq-icon { flex-shrink: 0; transition: transform var(--transition); color: var(--text-muted); }
.faq-item.open .faq-icon { transform: rotate(180deg); color: var(--blue-500); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .2s ease;
}
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer p {
  padding: 0 20px 18px;
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ──────────────────────────────────────────────────────────────
   13. BLOG SECTION
   ────────────────────────────────────────────────────────────── */
.blog-section { padding: 0; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.blog-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: var(--blue-200);
}

.blog-img-link { display: block; overflow: hidden; aspect-ratio: 16/9; }
.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.blog-card:hover .blog-img { transform: scale(1.05); }

.blog-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.3);
  font-size: 2.5rem;
}

.blog-content { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }

.blog-meta {
  display: flex;
  gap: 14px;
  font-size: .75rem;
  color: var(--text-muted);
}
.blog-meta span { display: flex; align-items: center; gap: 4px; }

.blog-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}
.blog-title a { color: var(--text-primary); }
.blog-title a:hover { color: var(--blue-500); }

.blog-excerpt {
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue-500);
  margin-top: 4px;
}
.blog-read-more:hover { gap: 10px; }

/* ──────────────────────────────────────────────────────────────
   14. PARTNERS SECTION
   ────────────────────────────────────────────────────────────── */
.partners-section { padding: 60px 0; }

.partners-track-wrapper {
  overflow: hidden;
  position: relative;
}
.partners-track-wrapper::before,
.partners-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
}
.partners-track-wrapper::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.partners-track-wrapper::after  { right: 0; background: linear-gradient(-90deg, #fff, transparent); }

.partners-track {
  display: flex;
  gap: 24px;
  animation: scroll-partners 25s linear infinite;
}
.partners-track:hover { animation-play-state: paused; }

@keyframes scroll-partners {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 8px 12px;
  transition: transform var(--transition);
}
.partner-item:hover { transform: translateY(-4px); }
.partner-brand-icon {
  font-size: 2.8rem;
  line-height: 1;
  transition: opacity var(--transition);
}
.partner-brand-img {
  width: 2.8rem;
  height: 2.8rem;
  object-fit: contain;
  transition: opacity var(--transition);
}
.partner-brand-text {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: -.5px;
  transition: opacity var(--transition);
}
.partner-item:hover .partner-brand-icon,
.partner-item:hover .partner-brand-img,
.partner-item:hover .partner-brand-text { opacity: .8; }
.partner-name { font-size: .75rem; color: var(--text-muted); font-weight: 600; }

/* ──────────────────────────────────────────────────────────────
   15. CTA SECTION
   ────────────────────────────────────────────────────────────── */
.cta-section { padding: 0; }
.cta-bg {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
.cta-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(0,180,255,.2) 0%, transparent 60%);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.cta-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 28px;
  line-height: 1.7;
  max-width: 520px;
}
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.cta-badge-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cta-badge {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: rgba(255,255,255,.85);
  font-size: .84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.cta-badge i { color: var(--accent); }

/* ──────────────────────────────────────────────────────────────
   16. FOOTER
   ────────────────────────────────────────────────────────────── */
.site-footer { background: var(--dark); }

.footer-main { padding: 70px 0 40px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}
.footer-logo i { color: var(--accent); }
.footer-logo-img { height: 40px; width: auto; display: block; }

.footer-desc {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-contact { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  line-height: 1.5;
}
.contact-item i { color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.contact-item a { color: rgba(255,255,255,.7); }
.contact-item a:hover { color: #fff; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  transition: all var(--transition);
  font-size: .85rem;
}
.footer-social a:hover {
  background: var(--blue-500);
  color: #fff;
  border-color: var(--blue-500);
  transform: translateY(-2px);
}

.footer-col-title {
  font-size: .82rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}

.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links li a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .84rem;
  color: rgba(255,255,255,.5);
  transition: all var(--transition);
}
.footer-links li a i { font-size: .6rem; color: var(--accent); }
.footer-links li a:hover {
  color: rgba(255,255,255,.9);
  padding-left: 6px;
}

.footer-payment-fallback {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.payment-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  color: rgba(255,255,255,.6);
}
.payment-badge i { color: var(--accent); }

.payment-badge + .payment-badge { margin-top: 4px; }
.footer-payments { gap: 10px; }
.footer-certs { display: flex; flex-direction: column; gap: 8px; }
.cert-link { display: block; }
.cert-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  transition: all var(--transition);
}
.cert-badge i { color: var(--blue-300); }
.cert-link:hover .cert-badge { background: rgba(255,255,255,.1); color: rgba(255,255,255,.9); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}

/* Language toast */
.lang-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(10,22,40,.92);
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}
.lang-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.lang-toast i { color: var(--accent); }

/* Language toggle — vi-text / en-text */
.en-text { display: none !important; }
.vi-text { display: inline; }
body.lang-en .vi-text { display: none !important; }
body.lang-en .en-text { display: inline !important; }
/* Block-level variants */
.en-block { display: none !important; }
body.lang-en .vi-block { display: none !important; }
body.lang-en .en-block { display: block !important; }

/* ──────────────────────────────────────────────────────────────
   17. FLOATING CONTACT & BACK TO TOP
   ────────────────────────────────────────────────────────────── */
.float-contact {
  position: fixed;
  bottom: 80px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
}

.float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  width: 46px;
  height: 46px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  overflow: hidden;
  white-space: nowrap;
}
.float-btn i { font-size: 1rem; flex-shrink: 0; line-height: 1; }
.float-zalo-icon { flex-shrink: 0; width: 20px; height: 20px; }
.float-btn span { opacity: 0; max-width: 0; overflow: hidden; transition: all var(--transition); }
.float-btn:hover { width: auto; gap: 8px; padding: 0 16px; height: 46px; color: #fff; }
.float-btn:hover span { opacity: 1; max-width: 120px; }

.float-zalo     { background: #0068ff; }
.float-messenger{ background: #0084ff; }
.float-phone    { background: #10b981; animation: pulse-phone 2s infinite; }
.float-support  { background: var(--blue-500); }

@keyframes pulse-phone {
  0%, 100% { box-shadow: 0 4px 16px rgba(16,185,129,.4); }
  50%       { box-shadow: 0 4px 28px rgba(16,185,129,.7); }
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 46px;
  height: 46px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ──────────────────────────────────────────────────────────────
   18. RESPONSIVE
   ────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .faq-layout  { grid-template-columns: 1fr; }
  .faq-header-col { position: static; }
  .faq-header-col .section-title,
  .faq-header-col .section-desc { text-align: center; }
  .faq-header-col .section-badge { display: block; width: max-content; margin: 0 auto 14px; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-badge-group { grid-template-columns: repeat(2,auto); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .header-phone-label { display: none; }
  .header-phone-number { font-size: .9rem; }
}

@media (max-width: 768px) {
  /* Header top: keep visible but compact */
  .header-top { padding: 5px 0; }
  .header-top-inner { gap: 6px; }
  .header-top-left a[href*="mailto"] { display: none; }  /* hide email */
  .header-divider { display: none; }                    /* hide separators */
  .header-ticket-btn { display: none; }                 /* hide ticket link */
  .header-auth-btn { padding: 2px 8px; gap: 4px; }
  .header-auth-btn .vi-text,
  .header-auth-btn .en-text,
  body.lang-en .header-auth-btn .en-text,
  body.lang-en .header-auth-btn .vi-text { display: none !important; } /* icon-only on mobile */

  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--dark);
    z-index: 2000;
    padding: 24px;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
  }
  .site-nav.open { transform: translateX(0); }
  .nav-close { display: block; }

  .nav-menu {
    flex-direction: column;
    align-items: stretch; /* Change to stretch from flex-start to prevent overflow */
    gap: 4px;
    width: 100%;
  }
  .nav-menu > li {
    width: 100%;
  }
  .nav-menu > li > a {
    color: rgba(255,255,255,.8);
    font-size: 1rem;
    padding: 12px;
    width: 100%;
    display: flex;
    justify-content: space-between; /* Put arrow on right */
  }
  .nav-menu .sub-menu {
    position: static;
    background: rgba(255,255,255,.06);
    border: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 4px 0 4px 16px;
    margin-top: 4px;
    display: none; /* Collapsed by default on mobile */
  }
  .nav-menu li.sub-open > .sub-menu { display: block; }
  .nav-menu .sub-menu li a { color: rgba(255,255,255,.6); }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-section { min-height: auto; padding: 80px 0 120px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }

  .services-grid { grid-template-columns: 1fr; }
  .testimonials-carousel { grid-template-columns: 1fr; }

  .why-grid { grid-template-columns: 1fr; }
  .dc-grid  { grid-template-columns: repeat(2, 1fr); }
  .os-grid  { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { justify-content: center; text-align: center; }

  .float-contact { bottom: 60px; }
  .back-to-top { right: auto; left: 20px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; }
  .dc-grid { grid-template-columns: 1fr; }
  .os-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .promo-banner { flex-direction: column; text-align: center; }
}

/* ──────────────────────────────────────────────────────────────
   19. ANIMATIONS
   ────────────────────────────────────────────────────────────── */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fade-in-up .6s ease forwards;
}

/* Stagger children */
.services-grid .service-card:nth-child(1) { animation-delay: .05s; }
.services-grid .service-card:nth-child(2) { animation-delay: .1s; }
.services-grid .service-card:nth-child(3) { animation-delay: .15s; }
.services-grid .service-card:nth-child(4) { animation-delay: .2s; }
.services-grid .service-card:nth-child(5) { animation-delay: .25s; }
.services-grid .service-card:nth-child(6) { animation-delay: .3s; }

/* ──────────────────────────────────────────────────────────────
   20. INNER PAGES
   ────────────────────────────────────────────────────────────── */
.page-hero {
  background: var(--gradient-hero);
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(0,180,255,.15) 0%, transparent 60%);
}
.page-hero-title {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  position: relative;
  margin-bottom: 12px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  position: relative;
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb i { font-size: .6rem; }

.page-body,
.blog-single-content {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}
.page-body h1,.page-body h2,.page-body h3,
.blog-single-content h1,.blog-single-content h2,.blog-single-content h3 {
  color: var(--text-primary);
  font-weight: 700;
  margin: 1.5em 0 .5em;
  font-family: inherit;
}
.page-body h4,.page-body h5,.page-body h6,
.blog-single-content h4,.blog-single-content h5,.blog-single-content h6 {
  color: var(--text-primary);
  font-weight: 600;
  margin: 1.2em 0 .4em;
}
.page-body p, .blog-single-content p { margin-bottom: 1em; }
.page-body ul, .blog-single-content ul { list-style: disc; padding-left: 20px; margin-bottom: 1em; }
.page-body ol, .blog-single-content ol { list-style: decimal; padding-left: 20px; margin-bottom: 1em; }
.page-body li, .blog-single-content li { margin-bottom: .35em; }
.page-body a, .blog-single-content a { color: var(--blue-500, #0056d6); text-decoration: underline; }
.page-body a:hover, .blog-single-content a:hover { opacity: .8; }

/* ── Gutenberg block overrides inside blog content ─────────────────── */
.blog-single-content .wp-block-image,
.blog-single-content figure { margin: 1.5em 0; max-width: 100%; }
.blog-single-content .wp-block-image img,
.blog-single-content figure img { max-width: 100%; height: auto; border-radius: 8px; }
.blog-single-content .wp-block-image.aligncenter,
.blog-single-content figure.aligncenter { text-align: center; }
.blog-single-content .wp-block-image.alignleft { float: left; margin-right: 1.5em; }
.blog-single-content .wp-block-image.alignright { float: right; margin-left: 1.5em; }
.blog-single-content figcaption { font-size: .8rem; color: var(--text-muted); text-align: center; margin-top: .4em; }
.blog-single-content .wp-block-quote,
.blog-single-content blockquote {
  border-left: 4px solid var(--blue-500, #0056d6);
  margin: 1.5em 0;
  padding: .8em 1.2em;
  background: rgba(0,86,214,.05);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-primary);
}
.blog-single-content .wp-block-quote cite,
.blog-single-content blockquote cite { display: block; margin-top: .5em; font-size: .85em; font-style: normal; color: var(--text-muted); }
.blog-single-content .wp-block-separator,
.blog-single-content hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }
.blog-single-content .wp-block-table table,
.blog-single-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .9rem; }
.blog-single-content table th,
.blog-single-content table td { border: 1px solid var(--border); padding: 9px 14px; text-align: left; }
.blog-single-content table thead th { background: var(--bg-secondary, #f1f5f9); font-weight: 600; }
.blog-single-content table tbody tr:nth-child(even) { background: rgba(0,0,0,.025); }
.blog-single-content .wp-block-embed { margin: 1.5em 0; }
.blog-single-content .wp-block-embed iframe { max-width: 100%; border-radius: 8px; }
.blog-single-content .wp-block-list { padding-left: 20px; }
.blog-single-content .wp-block-list li { margin-bottom: .4em; }
.blog-single-content .wp-block-columns { display: flex; gap: 24px; flex-wrap: wrap; margin: 1.5em 0; }
.blog-single-content .wp-block-column { flex: 1; min-width: 200px; }
.blog-single-content strong, .blog-single-content b { font-weight: 700; color: var(--text-primary); }
.blog-single-content img { max-width: 100%; height: auto; border-radius: 6px; }

.blog-single-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.blog-single-meta span { display: flex; align-items: center; gap: 6px; }

.blog-single-thumb {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}
.blog-single-thumb img { width: 100%; }

.blog-single-footer {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 32px;
  font-size: .84rem;
  color: var(--text-muted);
}

/* Code blocks in blog single */
.blog-single-content code,
.entry-content code {
  background: rgba(0,0,0,.06) !important;
  border: 1px solid rgba(0,0,0,.12) !important;
  border-radius: 5px !important;
  padding: 2px 7px !important;
  font-size: .85em !important;
  font-family: 'Courier New', Courier, monospace !important;
  color: #0369a1 !important;
}
.blog-single-content pre,
.entry-content pre,
.wp-block-code {
  background: #1e293b !important;
  border: 1px solid rgba(0,0,0,.2) !important;
  border-radius: 12px !important;
  padding: 20px !important;
  overflow-x: auto;
  margin: 20px 0 !important;
}
.blog-single-content pre code,
.entry-content pre code,
.wp-block-code code {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  font-size: .83rem !important;
  color: #7dd3fc !important;
  line-height: 1.6 !important;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.post-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition);
}
.post-nav-btn:hover {
  background: var(--blue-500);
  color: #fff;
  border-color: var(--blue-500);
}
.post-nav-next { margin-left: auto; }

/* ──────────────────────────────────────────────────────────────
   21. WORDPRESS CORE ADJUSTMENTS
   ────────────────────────────────────────────────────────────── */
.wp-caption { max-width: 100%; }
.sticky { position: relative; }
.bypostauthor { }
.alignleft  { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { clear: both; display: block; margin: 0 auto 1em; }

/* ──────────────────────────────────────────────────────────────
   22. COOKIE BANNER
   ────────────────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--dark);
  border-top: 2px solid var(--blue-500);
  padding: 16px 32px;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 -4px 30px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner.visible {
  transform: translateY(0);
}
/* cookie-content and cookie-actions are direct children of .cookie-banner */
.cookie-content {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.cookie-icon {
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.cookie-text {
  font-size: .84rem;
  color: rgba(255,255,255,.7);
  line-height: 1.6;
}
.cookie-text strong {
  color: #fff;
  display: block;
  margin-bottom: 4px;
  font-size: .9rem;
}
.cookie-text a {
  color: var(--accent);
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}
.cookie-actions button {
  padding: 9px 20px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
#cookie-decline {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.15);
}
#cookie-decline:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
}
#cookie-accept {
  background: var(--gradient-primary);
  color: #fff;
}
#cookie-accept:hover {
  opacity: .9;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 16px; }
  .cookie-actions { width: 100%; justify-content: flex-end; margin-left: 0; }
}
