/* ==========================================================================
   View360 Modern SaaS Design System - style.css
   ========================================================================== */

/* Typography & Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary: 221.2 83.2% 53.3%;       /* #2563EB - Trust Blue */
  --primary-hover: 224.3 76.3% 48%;   /* #1D4ED8 */
  --accent: 187 85% 45%;               /* #14B8A6 - Tech Cyan */
  --accent-light: 187 85% 95%;         /* Light cyan for subtle backgrounds */
  --background: 0 0% 100%;            /* Pure White */
  --foreground: 222.2 84% 4.9%;        /* #0F172A - Deep Slate */
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --muted: 210 40% 96.1%;             /* Light gray-blue */
  --muted-foreground: 215.4 16.3% 46.9%;
  --border: 214.3 32% 91%;            /* Subtle border grey */
  --input: 214.3 32% 91%;
  --ring: 221.2 83.2% 53.3%;
  --radius: 12px;
  
  /* Gradation colors */
  --gradient-start: #2563eb;
  --gradient-end: #0ea5e9;
  --gradient-accent: #14b8a6;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.625;
  background-color: hsl(var(--background));
  color: #334155; /* Slate 700 */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: hsl(var(--foreground));
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1.25rem; color: #475569; }

/* Grid & Utilities */
.relative { position: relative; z-index: 1; }
.overflow-hidden { overflow: hidden; }
.align-center { align-items: center; }
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-content-center { justify-content: center; }

/* Modern Gradient Text */
.text-gradient {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 50%, var(--gradient-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Glassmorphism Elements */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
}

.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
}

/* Decorative Blur Orbs */
.bg-blur-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.15;
}

.orb-primary {
  background-color: #3b82f6;
  width: 300px;
  height: 300px;
  top: 10%;
  left: 5%;
}

.orb-accent {
  background-color: #14b8a6;
  width: 250px;
  height: 250px;
  bottom: 20%;
  right: 10%;
}

/* Buttons */
.btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  text-transform: none;
  font-size: 15px;
  letter-spacing: normal;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.btn-primary-saas {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white !important;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3);
}

.btn-primary-saas:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.btn-secondary-saas {
  background-color: white;
  color: hsl(var(--foreground)) !important;
  border: 1px solid hsl(var(--border));
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.btn-secondary-saas:hover {
  background-color: hsl(var(--muted));
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.btn-accent-saas {
  background: linear-gradient(135deg, var(--gradient-accent), #0d9488);
  color: white !important;
  box-shadow: 0 4px 14px 0 rgba(20, 184, 166, 0.3);
}

.btn-accent-saas:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Sticky Navbar Override */
nav.navbar.navbar-default {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px -10px rgba(0,0,0,0.05);
}

nav.navbar.navbar-default .navbar-brand img.logo {
  height: 40px !important;
  width: 135px !important;
  aspect-ratio: 3.376 !important;
  transition: transform 0.3s ease;
}

nav.navbar.navbar-default .navbar-brand:hover img.logo {
  transform: scale(1.03);
}

nav.navbar.navbar-default ul.nav > li > a {
  font-family: 'Inter', sans-serif;
  color: #475569 !important;
  font-weight: 500;
  font-size: 15px;
  padding: 24px 18px !important;
  transition: color 0.2s ease;
}

nav.navbar.navbar-default ul.nav > li > a:hover,
nav.navbar.navbar-default ul.nav > li.active > a {
  color: #2563EB !important;
}

nav.navbar.navbar-default .attr-nav ul li.button a {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white !important;
  border-radius: 6px;
  padding: 10px 20px !important;
  font-weight: 600;
  font-size: 14px;
  margin-top: 15px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

/* Hero & Header Section */
.banner-area {
  padding-top: 140px;
  padding-bottom: 100px;
  position: relative;
  background: radial-gradient(circle at top, rgba(239, 246, 255, 0.7) 0%, rgba(255, 255, 255, 1) 80%) !important;
}

.banner-area h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.banner-area h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.banner-area p.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #475569;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.banner-area .button {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Interactive CSS Dashboard Preview widget */
.dashboard-preview-container {
  position: relative;
  margin-top: 50px;
  perspective: 1000px;
}

.mockup-window {
  background: #1e293b;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  width: 100%;
}

.mockup-header {
  height: 40px;
  background: #0f172a;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dot:nth-child(1) { background: #ef4444; }
.mockup-dot:nth-child(2) { background: #eab308; }
.mockup-dot:nth-child(3) { background: #22c55e; }

.mockup-title {
  margin-left: 20px;
  color: #94a3b8;
  font-size: 12px;
  font-family: monospace;
}

.mockup-body {
  padding: 16px;
  color: #f8fafc;
  background: #0f172a;
  min-height: 350px;
}

/* CSS-drawn Dashboard Mockup details */
.dash-grid {
  display: grid;
  grid-template-columns: 200px 1fr 280px;
  gap: 16px;
  height: 330px;
  font-size: 12px;
  color: #94a3b8;
}

@media (max-width: 991px) {
  .dash-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
}

.dash-sidebar {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-nav-item {
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
}

.dash-nav-item.active {
  background: rgba(37, 99, 235, 0.15);
  color: #3b82f6;
  font-weight: 600;
}

.dash-content {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-column: column;
  gap: 16px;
}

.dash-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.dash-status {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
}

.dash-inbox-timeline {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.dash-message {
  background: rgba(255,255,255,0.04);
  padding: 10px;
  border-radius: 6px;
  border-left: 3px solid #2563eb;
}

.dash-message.whatsapp {
  border-left-color: #22c55e;
}

.dash-message-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin-bottom: 4px;
}

.dash-message-meta span.name { color: #f8fafc; font-weight: 600; }

.dash-widget-panel {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash-stat-card {
  background: rgba(255, 255, 255, 0.02);
  padding: 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-stat-card .val {
  font-size: 20px;
  color: #f8fafc;
  font-weight: 700;
  margin-top: 4px;
}

/* Feature/Overview Section styling */
.features-area {
  padding: 100px 0;
  background-color: #f8fafc;
}

.site-heading {
  margin-bottom: 60px;
}

.site-heading h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
}

.site-heading .devider {
  height: 3px;
  width: 60px;
  background: linear-gradient(to right, var(--gradient-start), var(--gradient-accent));
  margin: 15px auto 25px;
  border-radius: 2px;
}

.site-heading p {
  font-size: 1.1rem;
  color: #475569;
  max-width: 700px;
  margin: 0 auto;
}

.feature-box .item {
  padding: 40px 30px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.feature-box .item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.02);
  border-color: rgba(37, 99, 235, 0.15);
}

.feature-box .item .icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background-color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.feature-box .item .icon img {
  width: 32px;
  height: auto;
}

.feature-box .item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-box .item p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
}

/* Interactive Channel Switcher (Simulator) */
.simulator-section {
  padding: 100px 0;
  background: white;
  position: relative;
}

.channel-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 767px) {
  .channel-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 15px;
  }
}

.channel-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
  width: 100%;
}

.channel-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.channel-btn.active {
  background: white;
  border-color: #2563eb;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.08);
}

.channel-btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #475569;
  transition: all 0.2s ease;
}

.channel-btn.active .channel-btn-icon {
  background: #2563eb;
  color: white;
}

.channel-btn-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.channel-btn-info p {
  font-size: 13px;
  color: #475569;
  margin: 4px 0 0 0;
}

.sim-phone-wrapper {
  background: #0f172a;
  border-radius: 40px;
  border: 8px solid #1c1917;
  height: 540px;
  width: 250px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 0 0 2px #44403c,
    0 25px 50px -12px rgba(15, 23, 42, 0.4),
    inset 0 0 3px rgba(255, 255, 255, 0.2);
}

.dynamic-island {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 75px;
  height: 18px;
  background: #000;
  border-radius: 12px;
  z-index: 20;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.15);
}

.sim-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 34px;
  background: #1e293b;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 22px 4px 22px;
  color: white;
  font-size: 11px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
  z-index: 20;
  letter-spacing: -0.01em;
}

/* Shift header down to sit below status bar */
.sim-phone-header {
  margin-top: 34px;
  height: 44px;
  background: #1e293b;
  color: white;
  display: flex;
  align-items: center;
  padding: 0 16px;
  justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sim-phone-body {
  height: 388px;
  background: #f1f5f9;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
}

.sim-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
}

.sim-msg.incoming {
  background: white;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  color: #1e293b;
}

.sim-msg.outgoing {
  background: #2563eb;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.sim-phone-footer {
  height: 58px;
  background: white;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: flex-start;
  padding: 8px 12px 0 12px;
  position: relative;
}

.sim-phone-input {
  flex-grow: 1;
  background: #f1f5f9;
  height: 32px;
  border-radius: 16px;
  padding: 0 12px;
  font-size: 12px;
  color: #334155;
  display: flex;
  align-items: center;
}

.home-indicator {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: #000000;
  border-radius: 2px;
  z-index: 20;
  opacity: 0.8;
}

/* Mobile responsive adjustments for iPhone 17 simulator */
@media (max-width: 767px) {
  .sim-phone-wrapper {
    width: 175px;
    height: 380px;
    border: 6px solid #1c1917;
    border-radius: 30px;
    box-shadow: 0 0 0 1px #44403c, 0 15px 30px -8px rgba(15, 23, 42, 0.4), inset 0 0 2px rgba(255,255,255,0.2);
  }
  .dynamic-island {
    width: 60px;
    height: 14px;
    top: 6px;
  }
  .sim-status-bar {
    height: 26px;
    font-size: 9px;
    padding: 0 12px 2px 12px;
  }
  .sim-status-icons {
    gap: 3px;
    font-size: 8px;
  }
  .sim-phone-header {
    height: 34px;
    font-size: 10px;
  }
  .sim-phone-body {
    height: 260px;
    padding: 8px;
    gap: 8px;
  }
  .sim-msg {
    font-size: 11px;
    padding: 8px 12px;
  }
  .sim-phone-footer {
    height: 44px;
    padding: 6px 10px 0 10px;
  }
  .sim-phone-input {
    height: 24px;
    font-size: 10px;
    border-radius: 12px;
  }
  .home-indicator {
    width: 80px;
    height: 3px;
    bottom: 4px;
  }
}


/* About and Team section styling */
.about-area {
  padding: 100px 0;
  background: white;
}

.about-content h4 {
  color: #2563eb;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.about-content h2 {
  font-size: 2.25rem;
  margin-bottom: 25px;
}

.new-ul-area {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.new-ul-area li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: #475569;
}

.new-ul-area li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #14b8a6;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

/* Solutions vertical lists */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.solution-card {
  padding: 40px;
  background: white;
  border-radius: 16px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 6px rgba(0,0,0,0.01);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.04);
  border-color: rgba(37,99,235,0.1);
}

.solution-card .icon {
  width: 50px;
  height: 50px;
  background: #eff6ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 20px;
  color: #2563eb;
}

/* Ticketing Support System Integration Form & Widget styles */
.tk-tab-switcher {
  display: flex;
  justify-content: center;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 30px;
  max-width: 440px;
  margin: 0 auto 35px auto;
}

.tk-tab {
  flex: 1;
  padding: 10px 20px;
  border: none !important;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  color: #475569;
  transition: all 0.2s ease;
}

.tk-tab.active {
  background: white;
  color: #2563eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.tk-form-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.08);
  border: 1px solid #f1f5f9;
  max-width: 700px;
  margin: 0 auto;
}

.view-container {
  display: none;
}

.view-container.active {
  display: block;
}

.tk-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.tk-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tk-span2 {
  grid-column: span 2;
}

.tk-label {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.tk-req {
  color: #ef4444;
}

.tk-input {
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: white;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.tk-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.tk-input.readonly-field {
  background-color: #f1f5f9;
  cursor: not-allowed;
  border-color: #e2e8f0;
}

.tk-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* CTA Schedule Strip style */
#demo-schedule {
  padding: 35px 0;
  background: #042d45 !important;
  color: white;
}

#demo-schedule h2 {
  color: white;
  margin: 0;
  font-size: 28px;
}

#demo-schedule .sched-btn {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

@media (max-width: 991px) {
  #demo-schedule .sched-btn {
    justify-content: flex-start;
    margin-top: 20px;
  }
}

footer, footer.bg-dark, .footer-area-1 {
  background: #042d45 !important;
  color: #94a3b8 !important;
  padding: 40px 0 25px !important;
  font-size: 14px;
}

footer h3, footer h4 {
  color: white !important;
  margin-bottom: 25px;
  font-size: 16px;
  font-weight: 600;
}

footer a {
  color: #94a3b8 !important;
  font-weight: 500;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #3b82f6 !important;
}

footer hr {
  border-color: rgba(255, 255, 255, 0.05);
  margin: 40px 0 20px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Webchat Widget Brand Styles Override */
#v360widget .chatButton {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)) !important;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4) !important;
  transition: all 0.3s ease !important;
}

#v360widget .chatButton:hover {
  transform: scale(1.05) !important;
  filter: brightness(1.08) !important;
}

#v360widget .chatwrapper .form button {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
  transition: all 0.3s ease !important;
}

#v360widget .chatwrapper .form button:hover {
  filter: brightness(1.08) !important;
}

#v360widget .chatwrapper .chatBox .customer p {
  background: var(--gradient-start) !important;
}

#v360widget .messageInput .send {
  /* removed old overrides to apply new styled layout below */
}

/* Chat Window Size and Layout Reductions */
#v360widget.active {
  width: 48% !important; /* 20% size reduction */
  max-width: 360px !important; /* 450px * 0.8 */
  min-width: 256px !important; /* 320px * 0.8 */
}

#v360widget .chatwrapper {
  max-width: 360px !important; /* 450px * 0.8 */
}

/* Chat Header Reduction and Styling (30% smaller, gradient background) */
#v360widget .chatwrapper .head {
  padding: 14px 18px !important; /* ~30% reduction from 20px 25px */
  height: auto !important; /* dynamically sized to content to prevent text overlap */
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)) !important; /* matching Request Demo bubble */
  border-radius: 10px 10px 0 0 !important;
}

#v360widget .chatwrapper .head .logo-row {
  margin-bottom: 12px !important; /* reduced spacing */
  align-items: center !important;
}

#v360widget .chatwrapper .head .logo {
  width: 100px !important; /* scaled down logo */
  filter: brightness(0) invert(1) !important; /* invert to pure white for blue gradient contrast */
}

#v360widget .chatwrapper .head .close {
  width: 26px !important; /* scaled down close button */
  height: 26px !important;
}

#v360widget .chatwrapper .head h1 {
  color: #ffffff !important;
  margin-bottom: 4px !important;
  font-family: 'Outfit', sans-serif !important;
}

#v360widget .chatwrapper .head p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-family: 'Inter', sans-serif !important;
  margin-bottom: 0 !important;
}

/* Form Layout adjustment to fit smaller wrapper width */
#v360widget .chatwrapper .form {
  padding: 30px 20px !important; /* reduced from 50px 25px */
}

/* Agent Joined Notification Text — 20% smaller, brand blue */
#v360widget .msg-info .msg-text h4 {
  font-size: 14.4px !important; /* 18px × 0.8 = 14.4px */
  color: #0f5a89 !important;
}

/* Custom Message Input Card Layout & Overrides */
#v360widget .messageInput {
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
  margin: 12px 48px 16px 16px !important;
  padding: 0 !important;
  gap: 0 !important;
  width: auto !important;
}

#v360widget .messageInput textarea {
  width: 100% !important;
  height: 50px !important;
  min-height: 50px !important;
  border: none !important;
  border-bottom: 1px solid #f1f5f9 !important;
  border-radius: 12px 12px 0 0 !important;
  padding: 14px 44px 14px 16px !important; /* Spacing on right to avoid overlapping with send button */
  font-size: 14px !important;
  line-height: 1.4 !important;
  color: #334155 !important;
  background: #ffffff !important;
  resize: none !important;
  outline: none !important;
  font-family: 'Inter', sans-serif !important;
  box-sizing: border-box !important;
}

#v360widget .messageInput textarea::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}
#v360widget .messageInput textarea::-webkit-input-placeholder {
  color: #94a3b8 !important;
}
#v360widget .messageInput textarea::-moz-placeholder {
  color: #94a3b8 !important;
}
#v360widget .messageInput textarea:-ms-input-placeholder {
  color: #94a3b8 !important;
}

#v360widget .messageInput .options {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 8px 16px !important;
  background: #ffffff !important;
  border-radius: 0 0 12px 12px !important;
  height: 38px !important;
  border-top: none !important;
  box-sizing: border-box !important;
}

#v360widget .messageInput .options label {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
}

#v360widget .messageInput .options img {
  height: 18px !important;
  width: 18px !important;
  opacity: 0.55 !important;
  transition: opacity 0.2s ease !important;
  cursor: pointer !important;
}

#v360widget .messageInput .options img:hover {
  opacity: 0.85 !important;
}

/* Floating Blue Gradient Send Button */
#v360widget .messageInput .send {
  position: absolute !important;
  right: -22px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4) !important;
  cursor: pointer !important;
  z-index: 10 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#v360widget .messageInput .send:hover {
  transform: translateY(-50%) scale(1.06) !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5) !important;
  filter: brightness(1.08) !important;
}

#v360widget .messageInput .send:active {
  transform: translateY(-50%) scale(0.95) !important;
}

#v360widget .messageInput .send img {
  display: none !important;
}

/* Custom crisp white paper-airplane icon SVG mask */
#v360widget .messageInput .send::after {
  content: "" !important;
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  background-color: #ffffff !important;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M498.1 5.6c-5.1-3.5-11.8-4.4-17.7-2.3L14.3 158.6c-5.6 2-9.6 7-10.2 12.9s2.4 11.7 7.7 14.4l150.3 76.8 76.8 150.3c2.6 5.2 8.1 8.3 13.9 8.2s10.9-3.9 12.9-9.5L499.7 23.3c2.1-5.9 1.2-12.6-2.3-17.7zM203.2 248.8L62.7 177 443.3 48.7 203.2 248.8zm131.8 131.8l-71.8-140.5 200.1-200.1-128.3 340.6z'/></svg>") no-repeat center !important;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M498.1 5.6c-5.1-3.5-11.8-4.4-17.7-2.3L14.3 158.6c-5.6 2-9.6 7-10.2 12.9s2.4 11.7 7.7 14.4l150.3 76.8 76.8 150.3c2.6 5.2 8.1 8.3 13.9 8.2s10.9-3.9 12.9-9.5L499.7 23.3c2.1-5.9 1.2-12.6-2.3-17.7zM203.2 248.8L62.7 177 443.3 48.7 203.2 248.8zm131.8 131.8l-71.8-140.5 200.1-200.1-128.3 340.6z'/></svg>") no-repeat center !important;
  -webkit-mask-size: contain !important;
  mask-size: contain !important;
}

/* Emoji Picker positioning & size alignment */
#v360widget .messageInput .options .emojiButton > div {
  right: auto !important;
  left: -40px !important;
  bottom: 45px !important;
}

#v360widget .EmojiPickerReact {
  width: 290px !important;
  height: 320px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
}

/* ==========================================================================
   RTL & Bilingual Language Switching Overrides
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

/* Language switching visibilities */
html[lang="ar"] .lang-en { display: none !important; }
html[lang="en"] .lang-ar { display: none !important; }

/* RTL layout structures */
html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] body {
  font-family: 'Cairo', 'Inter', sans-serif;
}

html[dir="rtl"] h1, 
html[dir="rtl"] h2, 
html[dir="rtl"] h3, 
html[dir="rtl"] h4, 
html[dir="rtl"] h5, 
html[dir="rtl"] h6 {
  font-family: 'Cairo', 'Outfit', sans-serif;
}

/* Alignments & floats */
html[dir="rtl"] .text-left { text-align: right !important; }
html[dir="rtl"] .text-right { text-align: left !important; }
html[dir="rtl"] .text-center { text-align: center !important; }

/* Bootsnav fixes for RTL */
html[dir="rtl"] .navbar-header {
  float: right !important;
}
html[dir="rtl"] nav.navbar .navbar-brand {
  float: right !important;
  margin-right: 0 !important;
  margin-left: 15px !important;
}
html[dir="rtl"] .attr-nav {
  float: left !important;
}
html[dir="rtl"] .navbar-collapse {
  float: left !important;
}
html[dir="rtl"] nav.navbar.bootsnav ul.nav > li {
  float: right !important;
}
html[dir="rtl"] nav.navbar.bootsnav ul.nav.navbar-center {
  float: none !important;
  display: inline-block;
}

/* Margin and padding flip */
html[dir="rtl"] .ml-auto, html[dir="rtl"] .ms-auto { margin-right: auto !important; margin-left: 0 !important; }
html[dir="rtl"] .mr-auto, html[dir="rtl"] .me-auto { margin-left: auto !important; margin-right: 0 !important; }

/* Layout adjustments */
html[dir="rtl"] .banner-area {
  text-align: right !important;
}
html[dir="rtl"] .banner-area .button {
  justify-content: flex-start !important;
}
html[dir="rtl"] .banner-area.text-center {
  text-align: center !important;
}
html[dir="rtl"] .banner-area.text-center .button {
  justify-content: center !important;
}

/* Icon mirroring */
html[dir="rtl"] .fa-arrow-right, 
html[dir="rtl"] .fa-chevron-right {
  transform: scaleX(-1);
}

/* Footer layout */
html[dir="rtl"] footer .text-right {
  text-align: left !important;
}

/* Language switch widget styling */
.lang-switcher-nav {
  display: flex !important;
  align-items: center;
  margin-left: 15px;
}
html[dir="rtl"] .lang-switcher-nav {
  margin-left: 0;
  margin-right: 15px;
}
.lang-switcher-btn {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: #2563eb;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lang-switcher-btn:hover {
  background: #2563eb;
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Accessibility & Focus Indicators Override */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
  outline: 2px solid #2563eb !important;
  outline-offset: 2px !important;
}

/* Mobile responsive adjustments for navbar-toggle & lang-switcher */
@media (max-width: 767px) {
  nav.navbar.bootsnav .navbar-toggle {
    min-width: 48px !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    top: 10px !important;
  }
  .lang-switcher-btn {
    padding: 12px 18px !important;
    min-height: 48px !important;
    font-size: 14px !important;
  }
}