/* WAGateway 2026 Premium Design System - April-July 2026 Trends */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* 2026 Palette - WhatsApp Green Evolution */
  --wa-50: #F0FDF4;
  --wa-100: #DCFCE7;
  --wa-200: #BBF7D0;
  --wa-300: #86EFAC;
  --wa-400: #4ADE80;
  --wa-500: #22C55E;
  --wa-600: #16A34A;
  --wa-700: #15803D;
  --wa-800: #166534;
  --wa-900: #14532D;
  
  /* 2026 Neutrals - Warm Gray */
  --zinc-50: #FAFAFA;
  --zinc-100: #F4F4F5;
  --zinc-200: #E4E4E7;
  --zinc-300: #D4D4D8;
  --zinc-400: #A1A1AA;
  --zinc-500: #71717A;
  --zinc-600: #52525B;
  --zinc-700: #3F3F46;
  --zinc-800: #27272A;
  --zinc-900: #18181B;
  --zinc-950: #09090B;
  
  /* Semantic */
  --bg: #FCFCF9;
  --bg-subtle: #F9F9F6;
  --surface: #FFFFFF;
  --surface-hover: #FAFAF8;
  --border: #EDEDE9;
  --border-strong: #E4E4E0;
  --text: #1A1A18;
  --text-secondary: #6B6B68;
  --text-tertiary: #9A9A97;
  
  /* 2026 Shadows - Soft & Diffused */
  --shadow-xs: 0 1px 2px rgba(26,26,24,0.04);
  --shadow-sm: 0 1px 3px rgba(26,26,24,0.06), 0 1px 2px rgba(26,26,24,0.04);
  --shadow-md: 0 4px 6px rgba(26,26,24,0.04), 0 2px 4px rgba(26,26,24,0.04);
  --shadow-lg: 0 10px 15px rgba(26,26,24,0.05), 0 4px 6px rgba(26,26,24,0.04);
  --shadow-xl: 0 20px 25px rgba(26,26,24,0.06), 0 8px 10px rgba(26,26,24,0.04);
  --shadow-2xl: 0 25px 50px rgba(26,26,24,0.08);
  
  /* Radius - 2026: More rounded, organic */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-full: 9999px;
  
  /* Motion - 2026: Spring & Fluid */
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Base */
* { font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.font-display { font-family: 'Instrument Serif', serif; }
.font-mono { font-family: 'Geist Mono', monospace; }

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* 2026 Animations - Fluid & Organic */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(0.5deg); } }
@keyframes pulse-subtle { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } }
@keyframes aurora { 0% { transform: translate(0, 0) rotate(0deg) scale(1); } 33% { transform: translate(30px, -30px) rotate(1deg) scale(1.05); } 66% { transform: translate(-20px, 20px) rotate(-1deg) scale(0.95); } 100% { transform: translate(0, 0) rotate(0deg) scale(1); } }
@keyframes grid-move { 0% { transform: translate(0, 0); } 100% { transform: translate(40px, 40px); } }
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.animate-fadeIn { animation: fadeIn 0.6s var(--ease-out-expo); }
.animate-fadeInUp { animation: fadeInUp 0.7s var(--ease-out-expo); }
.animate-scaleIn { animation: scaleIn 0.5s var(--ease-spring); }
.animate-slideLeft { animation: slideInLeft 0.6s var(--ease-out-expo); }
.animate-slideRight { animation: slideInRight 0.6s var(--ease-out-expo); }
.animate-float { animation: float 6s ease-in-out infinite; }

/* Stagger */
.stagger > * { opacity: 0; animation: fadeInUp 0.6s var(--ease-out-expo) forwards; }
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }

/* 2026 Glass - Frosted & Subtle */
.glass {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.5);
}
.glass-strong {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.6);
}

/* 2026 Cards - Bento Style */
.card-2026 {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}
.card-2026::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(34,197,94,0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card-2026:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-2026:hover::before { opacity: 1; }

.card-bento {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
}
.card-bento:hover {
  border-color: var(--zinc-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px) scale(1.005);
}

/* 2026 Buttons - Pill & Tactile */
.btn-2026 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn-2026:active { transform: scale(0.97); }

.btn-primary {
  background: var(--text);
  color: white;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--zinc-800);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.btn-primary:hover::after { transform: translateX(100%); }

.btn-wa {
  background: var(--wa-600);
  color: white;
  box-shadow: 0 2px 8px rgba(22,163,74,0.2);
}
.btn-wa:hover {
  background: var(--wa-700);
  box-shadow: 0 4px 16px rgba(22,163,74,0.3);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-subtle {
  background: var(--zinc-100);
  color: var(--text);
}
.btn-subtle:hover { background: var(--zinc-200); }

/* 2026 Inputs - Minimal & Focus Ring */
.input-2026 {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  transition: all 0.2s var(--ease-smooth);
  outline: none;
}
select.input-2026 {
  padding: 2px 14px !important;
  height: 36px;
  line-height: 1;
}
.input-2026::placeholder { color: var(--text-tertiary); }
.input-2026:hover { border-color: var(--border-strong); }
.input-2026:focus {
  border-color: var(--wa-500);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.1);
  background: white;
}
.input-2026:disabled { opacity: 0.5; cursor: not-allowed; }

/* 2026 Aurora Mesh Background */
.aurora-bg {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.aurora-bg::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: 
    radial-gradient(ellipse 800px 600px at 20% 30%, rgba(34,197,94,0.08), transparent 60%),
    radial-gradient(ellipse 600px 800px at 80% 70%, rgba(132,204,2,0.06), transparent 60%),
    radial-gradient(ellipse 700px 500px at 50% 50%, rgba(34,197,94,0.04), transparent 70%);
  animation: aurora 20s ease-in-out infinite;
  pointer-events: none;
}

/* 2026 Grid Pattern */
.grid-pattern {
  background-image: 
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}

/* 2026 Pricing - Bento & Highlight */
.pricing-2026 {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  position: relative;
  transition: all 0.5s var(--ease-out-expo);
  overflow: hidden;
}
.pricing-2026::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  opacity: 0;
  transition: opacity 0.5s;
}
.pricing-2026:hover {
  border-color: var(--zinc-300);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}
.pricing-2026:hover::before { opacity: 1; }

.pricing-2026.popular {
  border-color: var(--wa-200);
  background: linear-gradient(180deg, var(--wa-50) 0%, var(--surface) 100%);
  box-shadow: 0 0 0 1px var(--wa-200), var(--shadow-lg);
}
.pricing-2026.popular::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, var(--wa-300), var(--wa-500));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
}

/* 2026 Badge */
.badge-2026 {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge-new {
  background: var(--wa-50);
  color: var(--wa-700);
  border: 1px solid var(--wa-200);
}
.badge-neutral {
  background: var(--zinc-100);
  color: var(--zinc-600);
  border: 1px solid var(--zinc-200);
}

/* 2026 Inbox - Refined */
.inbox-2026 {
  height: calc(100vh - 80px);
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.inbox-sidebar-2026 {
  width: 360px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--bg-subtle);
}
.inbox-main-2026 {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #F5F5F0;
  background-image: 
    radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0);
  background-size: 24px 24px;
}

/* 2026 Chat Bubbles - Minimal */
.bubble-2026-in {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px 18px 18px 4px;
  box-shadow: var(--shadow-xs);
  max-width: 68%;
}
.bubble-2026-out {
  background: var(--wa-500);
  color: white;
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 2px 8px rgba(34,197,94,0.15);
  max-width: 68%;
}

/* 2026 Scrollbar - Minimal */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--zinc-200); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--zinc-300); }

/* 2026 Toast - Floating */
.toast-2026 {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--zinc-900);
  color: white;
  padding: 12px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  animation: slideInRight 0.4s var(--ease-out-expo);
  font-size: 13px;
  font-weight: 500;
  max-width: 360px;
}
.toast-2026.success { background: var(--wa-700); }
.toast-2026.error { background: #DC2626; }

/* 2026 Focus Visible */
*:focus-visible {
  outline: 2px solid var(--wa-500);
  outline-offset: 2px;
}

/* 2026 Selection */
::selection { background: var(--wa-100); color: var(--wa-900); }

/* MOBILE 2026 - Compact & Refined */
@media (max-width: 768px) {
  :root {
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
  }
  
  /* Typography - Compact Mobile */
  h1 { font-size: 28px !important; line-height: 1.15 !important; letter-spacing: -0.02em !important; }
  h2 { font-size: 22px !important; line-height: 1.2 !important; }
  h3 { font-size: 18px !important; line-height: 1.25 !important; }
  .text-4xl { font-size: 28px !important; }
  .text-3xl { font-size: 22px !important; }
  .text-2xl { font-size: 18px !important; }
  .text-xl { font-size: 16px !important; }
  .text-lg { font-size: 15px !important; }
  
  /* Buttons - Compact Mobile */
  .btn-2026, .btn-wa, .btn-primary, .btn-ghost {
    padding: 9px 16px !important;
    font-size: 13px !important;
    gap: 6px !important;
  }
  .btn-2026 i, .btn-wa i { font-size: 14px !important; }
  
  /* Inputs - Compact Mobile */
  .input-2026, .input-modern {
    padding: 9px 12px !important;
    font-size: 14px !important;
    border-radius: 10px !important;
  }
  select.input-2026, select.input-modern {
    padding: 9px 32px 9px 12px !important;
  }
  
  /* Cards - Compact Mobile */
  .card-2026, .card-bento, .card-modern, .pricing-2026, .pricing-card {
    padding: 16px !important;
    border-radius: 16px !important;
  }
  
  /* Inbox Mobile */
  .inbox-2026, .inbox-container {
    height: calc(100vh - 64px) !important;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
  }
  .inbox-sidebar-2026, .inbox-sidebar {
    width: 100% !important;
    position: absolute !important;
    z-index: 20 !important;
    height: 100% !important;
    transform: translateX(-100%) !important;
    transition: transform 0.35s var(--ease-out-expo) !important;
  }
  .inbox-sidebar-2026.active, .inbox-sidebar.active {
    transform: translateX(0) !important;
  }
  
  /* Pricing Mobile */
  .pricing-2026.popular { transform: none !important; }
  
  /* Spacing - Compact */
  .p-8 { padding: 16px !important; }
  .p-6 { padding: 14px !important; }
  .py-20 { padding-top: 32px !important; padding-bottom: 32px !important; }
  .py-12 { padding-top: 24px !important; padding-bottom: 24px !important; }
  .gap-8 { gap: 16px !important; }
  .gap-6 { gap: 12px !important; }
  
  /* Toast Mobile */
  .toast-2026, .toast {
    bottom: 16px !important;
    right: 16px !important;
    left: 16px !important;
    max-width: none !important;
    padding: 10px 14px !important;
    font-size: 12px !important;
  }
  
  /* File Input Mobile */
  input[type="file"] {
    font-size: 13px !important;
    padding: 8px !important;
  }
}

/* 2026 Utilities */
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* 2026 Empty State */
.empty-2026 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}
.empty-2026-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--zinc-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--zinc-400);
}

/* 2026 Skeleton - Shimmer */
.skeleton-2026 {
  background: linear-gradient(90deg, var(--zinc-100) 25%, var(--zinc-50) 50%, var(--zinc-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* 2026 Divider */
.divider-2026 {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
