@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&display=swap');

html, body {
  font-family: 'Poppins', sans-serif !important;
}

.font-outfit, .font-poppins {
  font-family: 'Poppins', sans-serif !important;
}

/* ==========================================================================
   SalarySe Referral Code Website - Custom CSS & Modern Design Enhancements
   ========================================================================== */

/* Custom Animations & Micro-Interactions */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}

.pulse-ai {
  animation: pulse-subtle 3s infinite ease-in-out;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-btn {
  background: linear-gradient(90deg, #10b981 0%, #059669 25%, #34d399 50%, #059669 75%, #10b981 100%);
  background-size: 200% 100%;
  animation: shimmer 4s infinite linear;
}

/* Glassmorphism Styling */
.glass-header {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}

/* Modern Card Hover Effects (Zero content changes) */
.modern-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.08), 0 10px 15px -5px rgba(15, 23, 42, 0.04);
}

/* Glowing Accent Ring */
.glow-emerald {
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.2);
}

.glow-emerald-lg {
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.3);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #059669;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #10b981;
}

/* AI Chat Floating Widget Styles */
.ai-chat-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  font-family: 'Poppins', sans-serif;
}

@media (max-width: 768px) {
  .ai-chat-container {
    bottom: 70px; /* Above mobile sticky CTA bar */
    right: 16px;
  }
}

.ai-chat-toggle {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(5, 150, 105, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-chat-toggle:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 30px -5px rgba(5, 150, 105, 0.6);
}

.ai-icon {
  width: 22px;
  height: 22px;
}

.ai-chat-box {
  display: none;
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 480px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.ai-chat-header {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-b: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-avatar {
  width: 32px;
  height: 32px;
  background: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: white;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.ai-chat-title {
  color: white;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}

.ai-chat-subtitle {
  color: #94a3b8;
  font-size: 11px;
}

.ai-chat-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.ai-chat-close:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.ai-chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #090d16;
}

.ai-message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}

.ai-message.bot {
  align-self: flex-start;
  background: #1e293b;
  color: #f1f5f9;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-message.user {
  align-self: flex-end;
  background: #059669;
  color: white;
  border-bottom-right-radius: 4px;
}

.ai-chat-input-area {
  padding: 12px;
  background: #0f172a;
  border-t: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 8px;
}

.ai-chat-input {
  flex: 1;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 12px;
  color: white;
  font-size: 13px;
  outline: none;
}

.ai-chat-input:focus {
  border-color: #059669;
}

.ai-chat-send {
  background: #059669;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.ai-chat-send:hover {
  background: #10b981;
}

/* ==========================================================================
   Responsive Fluid Typography Scale (Desktop & Mobile Optimized)
   ========================================================================== */
body {
  font-size: 0.9375rem; /* 15px mobile base */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
  body {
    font-size: 1.03125rem; /* 16.5px desktop base */
    line-height: 1.75;
  }
}

/* Fluid Heading Scale */
h1 {
  line-height: 1.25;
  word-break: break-word;
  overflow-wrap: break-word;
}

h2 {
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: break-word;
}

h3 {
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: break-word;
}
