/* ==========================================================================
   Bahrio Logistics ERP — Commercial Showcase Stylesheet
   Design System: Refined Ocean Light Theme with Arabic/GCC Typography & RTL
   ========================================================================== */

:root {
  --primary-900: #0f172a;
  --primary-800: #1e293b;
  --primary-700: #334155;
  --primary-600: #0284c7;
  --primary-500: #0ea5e9;
  --primary-100: #e0f2fe;
  --primary-50:  #f0f9ff;

  --accent-gold: #d97706;
  --accent-gold-light: #f59e0b;
  --accent-gold-dark: #b45309;
  --accent-gold-soft: rgba(245, 158, 11, 0.12);

  --accent-teal: #0284c7;
  --accent-emerald: #059669;
  
  --bg-light: #f8fafc;
  --bg-subcard: #f1f5f9;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --border-light: #e2e8f0;
  
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* Base & Typography */
html {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: clip !important;
  overflow-x: hidden !important;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: clip !important;
  overflow-x: hidden !important;
  margin: 0;
  padding: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img, svg, video, canvas, iframe {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  transition: all 0.25s ease-in-out;
}

/* Arabic / GCC Accent styling */
.font-arabic {
  font-family: 'Cairo', 'Inter', sans-serif !important;
}

/* RTL Mode Global Styles */
[dir="rtl"],
body.rtl-mode {
  font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-align: right;
}

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

/* Top Notification Strip */
.bahrio-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 0.45rem 0;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .bahrio-topbar {
    font-size: 0.76rem;
    padding: 0.35rem 0;
  }
}

/* Language Toggle Button in Topbar */
.btn-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-50);
  border: 1px solid var(--border-light);
  color: var(--primary-600);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-lang-toggle:hover {
  background: var(--primary-600);
  color: #ffffff;
  border-color: var(--primary-600);
}

/* Navbar */
.bahrio-navbar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.85rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03);
}

.bahrio-navbar .nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.bahrio-navbar .nav-link:hover {
  color: var(--primary-600);
  background: var(--primary-50);
}

.bahrio-navbar .nav-link.active {
  color: var(--primary-600);
  background: var(--primary-50);
  font-weight: 600;
}

/* Mobile Navbar Toggler */
.bahrio-navbar .navbar-toggler {
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.7rem;
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  outline: none;
}

.bahrio-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25);
}

.bahrio-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2815, 23, 42, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  width: 1.4em;
  height: 1.4em;
  display: inline-block;
  vertical-align: middle;
}

.bahrio-navbar .dropdown-menu {
  min-width: 260px;
  background: #ffffff;
  border: 1px solid var(--border-light) !important;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08) !important;
  border-radius: var(--radius-md);
}

.bahrio-navbar .dropdown-item {
  transition: all 0.2s ease;
}

.bahrio-navbar .dropdown-item:hover {
  background-color: var(--primary-50);
}

.bahrio-navbar .dropdown-item.active {
  background-color: var(--primary-50);
  color: var(--primary-600);
}

.brand-logo {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
}

.brand-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-right: 10px;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

[dir="rtl"] .brand-logo .logo-icon {
  margin-right: 0;
  margin-left: 10px;
}

/* Buttons */
.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
  color: #ffffff;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.4rem;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.25);
  transition: all 0.25s ease;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #fbbf24, var(--accent-gold-light));
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35);
}

.btn-outline-gold {
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.35rem;
  background: transparent;
  transition: all 0.25s ease;
}

.btn-outline-gold:hover {
  background: var(--accent-gold);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-marine {
  background: var(--primary-600);
  color: #ffffff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.4rem;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.2);
  transition: all 0.25s ease;
}

.btn-marine:hover {
  background: #0369a1;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.3);
}

/* Hero Section */
.hero-section {
  background: radial-gradient(circle at 85% 15%, rgba(14, 165, 233, 0.09), transparent 50%),
              radial-gradient(circle at 15% 85%, rgba(245, 158, 11, 0.08), transparent 45%),
              linear-gradient(180deg, #f8fafc 0%, #ffffff 60%, #f1f5f9 100%);
  color: var(--text-main);
  padding: 5rem 0 4.5rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-gold-dark);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-highlight-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  border-radius: var(--radius-md);
}

.hero-highlight-badge {
  background: #fef3c7 !important;
  color: #92400e !important;
  border: 1px solid #fde68a !important;
  font-weight: 700 !important;
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-highlight-box {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.25) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.05);
  word-break: break-word;
  overflow: hidden;
}

.hero-highlight-box .badge {
  font-size: 0.82rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

@media (max-width: 575.98px) {
  .hero-highlight-box {
    padding: 1rem !important;
    margin-bottom: 1.25rem !important;
  }
  .hero-highlight-box .badge {
    font-size: 0.78rem;
    white-space: normal !important;
    text-align: start;
  }
}

/* Subpage Banner */
.subpage-hero {
  background: radial-gradient(circle at 90% 10%, rgba(14, 165, 233, 0.08), transparent 40%),
              radial-gradient(circle at 10% 90%, rgba(245, 158, 11, 0.06), transparent 40%),
              linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: var(--text-main);
  padding: 4rem 0 3.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.subpage-hero h1 {
  color: var(--text-main);
}

/* Dashboard Mockup Card */
.mockup-window {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.mockup-header {
  background: #f8fafc;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
}

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

.mockup-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-body {
  padding: 1.5rem;
  background: #ffffff;
}

/* Feature Cards */
.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(2, 132, 199, 0.3);
}

.feature-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.35rem;
}

.icon-blue { background: rgba(14, 165, 233, 0.12); color: #0284c7; }
.icon-gold { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.icon-emerald { background: rgba(16, 185, 129, 0.12); color: #059669; }
.icon-purple { background: rgba(168, 85, 247, 0.12); color: #9333ea; }
.icon-navy { background: rgba(2, 132, 199, 0.12); color: #0369a1; }

/* Corridor / Port Pills */
.port-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.port-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.port-flag {
  font-size: 2rem;
}

/* Stats Counter */
.stat-box {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 0.35rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Footer */
.bahrio-footer {
  background: #ffffff;
  color: var(--text-muted);
  padding: 4.5rem 0 2rem 0;
  border-top: 1px solid var(--border-light);
}

.bahrio-footer h4,
.bahrio-footer h5 {
  color: var(--text-main);
  font-weight: 700;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.bahrio-footer a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.bahrio-footer a:hover {
  color: var(--primary-600);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
  margin-top: 3.5rem;
  font-size: 0.88rem;
}

/* RTL Specific Overrides */
[dir="rtl"] .me-1 { margin-left: 0.25rem !important; margin-right: 0 !important; }
[dir="rtl"] .me-2 { margin-left: 0.5rem !important; margin-right: 0 !important; }
[dir="rtl"] .me-3 { margin-left: 1rem !important; margin-right: 0 !important; }
[dir="rtl"] .ms-1 { margin-right: 0.25rem !important; margin-left: 0 !important; }
[dir="rtl"] .ms-2 { margin-right: 0.5rem !important; margin-left: 0 !important; }
[dir="rtl"] .ms-3 { margin-right: 1rem !important; margin-left: 0 !important; }

[dir="rtl"] .ph-caret-right::before {
  content: "\e138"; /* flips caret direction in Phosphor if applicable or uses caret-left */
}

/* ==============================================================================
   Mobile & Tablet Responsive Optimizations (QA & UX Engineered)
   ============================================================================== */

@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.35rem;
    line-height: 1.3;
  }

  /* Mobile Navbar Drawer */
  .bahrio-navbar .navbar-collapse {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 1.25rem;
    margin-top: 0.75rem;
    max-height: 80vh;
    overflow-y: auto;
  }

  .bahrio-navbar .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid #f1f5f9;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .bahrio-navbar .navbar-nav .nav-item:last-child .nav-link {
    border-bottom: none;
  }

  .bahrio-navbar .navbar-collapse .d-flex.align-items-center {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100%;
    gap: 10px !important;
    margin-top: 1rem;
  }

  .bahrio-navbar .navbar-collapse .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
  }
}

@media (max-width: 767.98px) {
  /* Prevent iOS Safari input auto-zoom by enforcing 16px minimum font size */
  input.form-control,
  select.form-select,
  textarea.form-control {
    font-size: 16px !important;
    min-height: 46px;
  }

  .hero-section {
    padding: 3.25rem 0 3rem 0;
  }

  .subpage-hero {
    padding: 2.75rem 0 2.25rem 0;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.32;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }

  h1.display-5,
  .display-5 {
    font-size: 1.85rem !important;
    line-height: 1.3;
  }

  h2.display-6,
  h3.display-6,
  .display-6 {
    font-size: 1.55rem !important;
    line-height: 1.35;
  }

  .feature-card {
    padding: 1.35rem;
  }

  .mockup-body {
    padding: 1rem;
  }

  .stat-box {
    padding: 1.25rem 0.75rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.82rem;
  }

  .bahrio-footer {
    padding: 3rem 0 1.5rem 0;
  }

  .footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.75rem;
    line-height: 1.35;
  }

  .btn-lg {
    padding: 0.65rem 1.15rem;
    font-size: 0.92rem;
    min-height: 46px;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
  }

  .port-card {
    padding: 0.9rem;
    gap: 0.75rem;
  }

  .port-flag {
    font-size: 1.6rem;
  }
}

/* ==============================================================================
   Zero Horizontal Overflow & Mobile Viewport Protection
   ============================================================================== */
html {
  overflow-x: clip !important;
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0;
  padding: 0;
}

body {
  overflow-x: clip !important;
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
}

main, section, header, footer, nav, .bahrio-navbar, .bahrio-topbar, .subpage-hero, .hero-section {
  max-width: 100% !important;
  overflow-x: clip !important;
}

/* Responsive Gutter Containment (Prevents row negative margins from exceeding container padding on mobile) */
@media (max-width: 991.98px) {
  .row.g-5, .row.gx-5 {
    --bs-gutter-x: 1.5rem !important;
    --bs-gutter-y: 1.5rem !important;
  }
}

@media (max-width: 767.98px) {
  .container {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
  }
  .row {
    --bs-gutter-x: 1rem !important;
  }
  .row.g-4, .row.g-5, .row.gx-4, .row.gx-5 {
    --bs-gutter-x: 1rem !important;
    --bs-gutter-y: 1.25rem !important;
  }
}

@media (max-width: 575.98px) {
  .container {
    padding-right: 0.85rem !important;
    padding-left: 0.85rem !important;
  }
  .bahrio-topbar .container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  .row, .row.g-2, .row.g-3, .row.g-4, .row.g-5, .row.gx-2, .row.gx-3, .row.gx-4, .row.gx-5 {
    --bs-gutter-x: 0.75rem !important;
  }
}

/* Utilities for constrained containers */
.max-w-500 { max-width: 500px !important; width: 100%; }
.max-w-700 { max-width: 700px !important; width: 100%; }
.max-w-750 { max-width: 750px !important; width: 100%; }
.max-w-850 { max-width: 850px !important; width: 100%; }
.max-w-900 { max-width: 900px !important; width: 100%; }

/* Prevent elements from blowing out width */
*, *::before, *::after {
  box-sizing: border-box;
  overflow-wrap: break-word;
}

img, svg, video, canvas, iframe, picture {
  max-width: 100% !important;
  height: auto;
}

.badge, .btn, .nav-link, .port-card, .feature-card {
  max-width: 100%;
}

.badge-container, .d-flex.gap-2, .d-flex.gap-3 {
  flex-wrap: wrap;
}

/* Responsive Table container */
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
}

/* Responsive Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 4px;
  max-width: 100%;
  padding: 0;
  margin-bottom: 0;
}

.pagination .page-item {
  display: inline-block;
}

/* Ensure code and preformatted blocks wrap or scroll internally without page widening */
pre, code, kbd, samp {
  max-width: 100%;
  word-break: break-word;
  white-space: pre-wrap;
}

/* ==========================================================================
   Mobile Offcanvas Drawer Styling
   ========================================================================== */
.bahrio-mobile-drawer {
  width: min(340px, 86vw) !important;
  background-color: #ffffff;
  box-shadow: 0 0 40px rgba(15, 23, 42, 0.2) !important;
  border: none !important;
  z-index: 1060;
}

.bahrio-mobile-drawer:not(.show):not(.showing) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.bahrio-mobile-drawer.show,
.bahrio-mobile-drawer.showing {
  display: flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.bahrio-mobile-drawer .offcanvas-header {
  background: #ffffff;
}

.bahrio-mobile-drawer .btn-close {
  padding: 0.75rem;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.bahrio-mobile-drawer .btn-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.bahrio-mobile-drawer .mobile-nav-list .nav-link {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease-in-out;
  min-height: 46px;
}

.bahrio-mobile-drawer .mobile-nav-list .nav-link:hover {
  background-color: rgba(2, 132, 199, 0.08);
  color: var(--primary-600) !important;
}

.bahrio-mobile-drawer .mobile-nav-list .nav-link.active {
  background-color: rgba(2, 132, 199, 0.12) !important;
  color: var(--primary-600) !important;
  font-weight: 600;
}

/* ==========================================================================
   Floating WhatsApp Action Widget (Icon Only)
   ========================================================================== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 20px;
  inset-inline-start: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #25D366;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0, 0, 0, 0.12);
  z-index: 1050;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background-color 0.2s ease;
  text-decoration: none !important;
  transform: translateZ(0);
}

.floating-whatsapp-btn .wa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.floating-whatsapp-btn .wa-icon svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
}

.floating-whatsapp-btn:hover {
  background-color: #20ba59;
  color: #ffffff !important;
  transform: scale(1.08) translateZ(0);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55), 0 4px 10px rgba(0, 0, 0, 0.18);
}

.floating-whatsapp-btn:active {
  transform: scale(0.95) translateZ(0);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
}

@media (max-width: 575.98px) {
  .floating-whatsapp-btn {
    bottom: 16px;
    inset-inline-end: 16px;
    inset-inline-start: auto;
    width: 48px;
    height: 48px;
  }
  .floating-whatsapp-btn .wa-icon svg {
    width: 24px;
    height: 24px;
  }
}




