/* ================================================
   A.V.A LOGISTICS — Global Design System
   Atlantic Voyage Agency
   ================================================ */

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

/* ─── CSS Custom Properties ─────────────────────── */
:root {
  /* Brand Colors */
  --ava-blue-900: #0a1a3d;
  --ava-blue-800: #0d2157;
  --ava-blue-700: #1a3a8f;
  --ava-blue-600: #1e4db7;
  --ava-blue-500: #2563eb;
  --ava-blue-400: #3b82f6;
  --ava-blue-300: #93c5fd;
  --ava-blue-100: #dbeafe;
  --ava-blue-50:  #eff6ff;

  --ava-ocean-dark: #0c2340;
  --ava-ocean-mid: #1a4d8f;
  --ava-silver: #c0cfe8;
  --ava-accent: #f59e0b;   /* Jamaican gold accent */
  --ava-accent-dark: #d97706;
  --ava-green: #10b981;
  --ava-red: #ef4444;
  --ava-orange: #f97316;

  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Typography */
  --font-heading: 'Barlow Condensed', 'Inter', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.12), 0 4px 10px rgba(0,0,0,.08);
  --shadow-xl: 0 25px 60px rgba(0,0,0,.18);
  --shadow-blue: 0 4px 20px rgba(37,99,235,.35);

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --trans-fast: 150ms ease;
  --trans-mid: 250ms ease;
  --trans-slow: 400ms ease;

  /* Container */
  --container-max: 1280px;
  --container-pad: 1.5rem;
}

/* ─── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ─── Container ─────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.section { padding: var(--space-4xl) 0; }
.section-sm { padding: var(--space-2xl) 0; }
.section-lg { padding: 5rem 0; }

/* ─── Typography ─────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.display-1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; }
.display-2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; }
.h1 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
.h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
.h4 { font-size: 1.25rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.lead { font-size: 1.125rem; line-height: 1.7; color: var(--gray-600); }
.text-white { color: var(--white); }
.text-blue { color: var(--ava-blue-600); }
.text-accent { color: var(--ava-accent); }
.text-muted { color: var(--gray-500); }
.text-center { text-align: center; }
.text-bold { font-weight: 700; }
.fw-600 { font-weight: 600; }

/* ─── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--trans-mid);
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--ava-blue-600);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--ava-blue-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37,99,235,.45);
}
.btn-accent {
  background: var(--ava-accent);
  color: var(--gray-900);
  box-shadow: 0 4px 15px rgba(245,158,11,.35);
}
.btn-accent:hover {
  background: var(--ava-accent-dark);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--ava-blue-600);
  border-color: var(--ava-blue-600);
}
.btn-outline:hover {
  background: var(--ava-blue-600);
  color: var(--white);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--ava-blue-700);
}
.btn-white:hover {
  background: var(--ava-blue-50);
  transform: translateY(-2px);
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1.0625rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-icon { padding: 0.75rem; border-radius: var(--radius-md); }

/* ─── Cards ──────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}
.card-body { padding: var(--space-xl); }
.card-header {
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--gray-100);
  font-weight: 600;
}
.card-hover { transition: all var(--trans-mid); }
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

/* ─── Badges ─────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-blue { background: var(--ava-blue-100); color: var(--ava-blue-700); }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }
.badge-orange { background: #fed7aa; color: #9a3412; }

/* ─── Forms ──────────────────────────────────────── */
.form-group { margin-bottom: var(--space-lg); }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.375rem;
}
.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
}
.form-control:focus {
  outline: none;
  border-color: var(--ava-blue-500);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.form-control::placeholder { color: var(--gray-400); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-hint { font-size: 0.8125rem; color: var(--gray-500); margin-top: 0.25rem; }
.form-error { font-size: 0.8125rem; color: var(--ava-red); margin-top: 0.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }

/* ─── Navbar ─────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-xl);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
}
.navbar-logo {
  height: 48px;
  width: auto;
}
.navbar-logo-text { display: none; }
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}
.nav-link {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--trans-fast);
  white-space: nowrap;
}
.nav-link:hover { background: var(--ava-blue-50); color: var(--ava-blue-600); }
.nav-link.active { color: var(--ava-blue-600); background: var(--ava-blue-50); font-weight: 600; }
.navbar-dropdown { position: relative; }
.navbar-dropdown > .nav-link::after { content: '▾'; margin-left: 0.25rem; font-size: 0.75rem; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--trans-mid);
  z-index: 999;
}
.navbar-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
}
.dropdown-item:hover { background: var(--ava-blue-50); color: var(--ava-blue-600); }
.dropdown-item .icon { font-size: 1rem; }
.navbar-actions { display: flex; align-items: center; gap: 0.625rem; flex-shrink: 0; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  transition: all var(--trans-mid);
  border-radius: 2px;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10,26,61,.6);
  backdrop-filter: blur(4px);
}
.mobile-nav.open { display: block; }
.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(340px, 95vw);
  height: 100%;
  background: var(--white);
  padding: 1.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--trans-slow);
  box-shadow: -10px 0 40px rgba(0,0,0,.2);
}
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.mobile-nav-close {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gray-500);
  cursor: pointer;
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-700);
}
.mobile-nav-link .icon { font-size: 1.25rem; }
.mobile-nav-section { margin-top: 1.5rem; }
.mobile-nav-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 0.75rem;
}

/* ─── Hero ───────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ava-blue-900) 0%, var(--ava-ocean-mid) 50%, var(--ava-blue-800) 100%);
  color: var(--white);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  line-height: 0;
}
.hero-waves svg { width: 100%; height: 60px; }

/* ─── Section Headings ───────────────────────────── */
.section-heading { max-width: 700px; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ava-blue-600);
  margin-bottom: 0.75rem;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  background: var(--ava-blue-600);
  border-radius: 2px;
}
.section-title { margin-bottom: 1rem; }
.section-desc { color: var(--gray-600); font-size: 1.0625rem; line-height: 1.7; }

/* ─── Dividers ───────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--gray-200); my: var(--space-xl); }

/* ─── Grid Layouts ───────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-xl); }

/* ─── Stat boxes ─────────────────────────────────── */
.stat-box {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--ava-blue-600);
  line-height: 1;
}
.stat-label { color: var(--gray-600); font-size: 0.875rem; margin-top: 0.25rem; }

/* ─── Tracking ───────────────────────────────────── */
.tracking-timeline { padding: 0; }
.timeline-item {
  display: flex;
  gap: var(--space-md);
  position: relative;
  padding-bottom: var(--space-xl);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:last-child .timeline-line { display: none; }
.timeline-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  position: relative;
  z-index: 1;
}
.timeline-icon.done { background: var(--ava-green); color: white; }
.timeline-icon.active { background: var(--ava-blue-600); color: white; box-shadow: 0 0 0 4px var(--ava-blue-100); }
.timeline-icon.pending { background: var(--gray-200); color: var(--gray-500); }
.timeline-line {
  position: absolute;
  left: 19px;
  top: 40px;
  width: 2px;
  height: calc(100% - 40px);
  background: var(--gray-200);
}
.timeline-line.done { background: var(--ava-green); }
.timeline-content { flex: 1; padding-top: 0.5rem; }
.timeline-event { font-weight: 600; color: var(--gray-800); margin-bottom: 0.125rem; }
.timeline-meta { font-size: 0.8125rem; color: var(--gray-500); }

/* ─── Alerts / Notices ───────────────────────────── */
.alert {
  display: flex;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid;
  font-size: 0.9375rem;
}
.alert-info { background: var(--ava-blue-50); border-color: var(--ava-blue-200, #bfdbfe); color: var(--ava-blue-800); }
.alert-success { background: #ecfdf5; border-color: #6ee7b7; color: #065f46; }
.alert-warning { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.alert-error { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }

/* ─── Tabs ───────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: var(--space-xl);
  overflow-x: auto;
}
.tab-btn {
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-500);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--trans-fast);
  white-space: nowrap;
}
.tab-btn:hover { color: var(--ava-blue-600); }
.tab-btn.active { color: var(--ava-blue-600); border-bottom-color: var(--ava-blue-600); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ─── Sidebar Portal Layout ──────────────────────── */
.portal-layout {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--ava-blue-900);
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-logo {
  padding: 1.5rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-logo img { height: 44px; }
.sidebar-nav { padding: 1rem 0.75rem; flex: 1; }
.sidebar-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.35);
  padding: 0.75rem 0.75rem 0.375rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  transition: all var(--trans-fast);
  cursor: pointer;
}
.sidebar-link:hover { background: rgba(255,255,255,.1); color: var(--white); }
.sidebar-link.active { background: var(--ava-blue-600); color: var(--white); }
.sidebar-link .icon { font-size: 1.1rem; flex-shrink: 0; width: 20px; text-align: center; }
.sidebar-link .badge-count {
  margin-left: auto;
  background: var(--ava-accent);
  color: var(--gray-900);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
}
.sidebar-footer {
  padding: 1rem 0.75rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.portal-main { flex: 1; background: var(--gray-50); min-width: 0; }
.portal-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 var(--space-xl);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.portal-content { padding: var(--space-xl); }
.portal-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}
.portal-title { font-size: 1.625rem; font-weight: 700; color: var(--gray-900); }
.portal-subtitle { color: var(--gray-500); font-size: 0.9375rem; margin-top: 0.25rem; }

/* ─── KPI Cards ──────────────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-lg); }
.kpi-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-lg) var(--space-xl);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}
.kpi-label { font-size: 0.8125rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.06em; }
.kpi-value { font-size: 2rem; font-weight: 800; font-family: var(--font-heading); color: var(--gray-900); line-height: 1.2; margin-top: 0.25rem; }
.kpi-change { font-size: 0.8125rem; margin-top: 0.25rem; }
.kpi-change.up { color: var(--ava-green); }
.kpi-change.down { color: var(--ava-red); }
.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* ─── Table ──────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.data-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}
.data-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}
.data-table tr:hover td { background: var(--gray-50); }
.data-table .text-mono { font-family: monospace; font-size: 0.85rem; }

/* ─── Progress Steps ─────────────────────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-2xl);
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  position: relative;
  flex: 1;
  max-width: 120px;
}
.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-400);
  transition: all var(--trans-mid);
  z-index: 1;
  position: relative;
}
.step-item.done .step-circle { background: var(--ava-green); border-color: var(--ava-green); color: white; }
.step-item.active .step-circle { background: var(--ava-blue-600); border-color: var(--ava-blue-600); color: white; box-shadow: 0 0 0 4px var(--ava-blue-100); }
.step-label { font-size: 0.7rem; font-weight: 600; color: var(--gray-400); text-align: center; }
.step-item.active .step-label { color: var(--ava-blue-600); }
.step-item.done .step-label { color: var(--ava-green); }
.step-connector {
  flex: 1;
  height: 2px;
  background: var(--gray-200);
  position: relative;
  top: -14px;
}
.step-connector.done { background: var(--ava-green); }

/* ─── Social & WhatsApp ──────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  cursor: pointer;
  transition: transform var(--trans-mid);
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 30px; height: 30px; fill: white; }

/* ─── Footer ─────────────────────────────────────── */
.footer {
  background: var(--ava-blue-900);
  color: rgba(255,255,255,.8);
  padding: 4rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { height: 52px; margin-bottom: 1rem; }
.footer-tagline { font-size: 0.9375rem; color: rgba(255,255,255,.6); line-height: 1.7; }
.footer-heading { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--white); margin-bottom: 1rem; }
.footer-link {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,.6);
  padding: 0.25rem 0;
  transition: color var(--trans-fast);
}
.footer-link:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-socials { display: flex; gap: 0.625rem; }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,.7);
  transition: all var(--trans-fast);
  cursor: pointer;
}
.social-btn:hover { background: var(--ava-blue-600); color: white; }
.footer-contact-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: rgba(255,255,255,.7); margin-bottom: 0.5rem; }
.footer-contact-item .icon { color: var(--ava-accent); }

/* ─── Utility ────────────────────────────────────── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.w-full { width: 100%; }
.hidden { display: none !important; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.bg-blue { background: var(--ava-blue-600); }
.bg-blue-dark { background: var(--ava-blue-900); }
.bg-blue-light { background: var(--ava-blue-50); }
.bg-white { background: var(--white); }
.bg-gray { background: var(--gray-50); }
.border { border: 1px solid var(--gray-200); }
.shadow { box-shadow: var(--shadow-md); }
.overflow-hidden { overflow: hidden; }

/* ─── Animations ─────────────────────────────────── */
@keyframes fadeIn { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
@keyframes slideIn { from { transform:translateX(-20px); opacity:0; } to { transform:translateX(0); opacity:1; } }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.6; } }
@keyframes spin { to { transform:rotate(360deg); } }
.animate-fadein { animation: fadeIn 0.5s ease both; }
.loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--ava-blue-600);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --container-pad: 1rem; }
  .navbar-nav, .navbar-actions .btn:not(.btn-primary) { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: var(--space-2xl) 0; }
  .section-lg { padding: 3rem 0; }
  .step-label { display: none; }
  .sidebar { display: none; }
  .portal-layout { flex-direction: column; }
  .portal-main { width: 100%; }
}
@media (max-width: 480px) {
  .btn-lg { padding: 0.875rem 1.5rem; font-size: 1rem; }
  .display-1 { font-size: 2.25rem; }
}
