/* Page-specific styles extracted from inline <style> blocks in index.html */

/* ------------------------------------------------------------
   ROI calculator styles (scoped)
------------------------------------------------------------ */
/* :root {
--bg-dark: #fdfdfd;
--card-bg: #FFFDE3;
--text-light: #000;
--highlight: #ffc000;
--border-color: #444;
--primary-color: #ffc000;
}

body {
font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif,"Graphik", "IBM Plex Sans Arabic";
margin: 0;
background: var(--bg-dark);
color: var(--text-light);
font-size: 12px;
}

.container {
max-width: 650px;
margin: 80px auto;
background: var(--card-bg);
padding: 30px;
border-radius: 15px;
box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.container h2{
font-size: 22px;
line-height: 0.4;

}
.container p{
font-size: 12px;
line-height: 0.7;

} */
/* ROI calculator: keep styles scoped to the section (avoid global side-effects). */
#savings-calculator input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
#savings-calculator input[type="number"]::-webkit-inner-spin-button,
#savings-calculator input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

/* ROI currency select: modern, consistent styling (custom arrow + better focus) */
#savings-calculator .roi-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  cursor: pointer;
  font-weight: 600;
  line-height: 1.1;

  /* Match Bootstrap's `form-control-sm` radius so it aligns with the inputs below */
  border-radius: var(--bs-border-radius-sm, 0.25rem);
  padding: 0.45rem 2.25rem 0.45rem 0.75rem; /* extra right padding for arrow */

  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6 8l4 4 4-4' stroke='%236B7280' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  transition: border-color 160ms ease, box-shadow 160ms ease,
    background-color 160ms ease;
}
#savings-calculator .roi-select:hover {
  border-color: rgba(0, 0, 0, 0.25);
}
#savings-calculator .roi-select:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
}
.uc-dark #savings-calculator .roi-select:hover {
  border-color: rgba(255, 255, 255, 0.25);
}
.uc-dark #savings-calculator .roi-select:focus {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}
.uc-dark #savings-calculator .roi-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6 8l4 4 4-4' stroke='%23E5E7EB' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Custom (non-native) dropdown menu for ROI select (so the opened options don't look "browser-default") */
#savings-calculator .roi-custom-select {
  position: relative;
  width: 100%;
}
#savings-calculator .roi-custom-select.is-enhanced > select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#savings-calculator .roi-custom-select .roi-select-btn {
  width: 100%;
  text-align: left;
}
#savings-calculator .roi-custom-select .roi-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 50;

  display: none;
  max-height: 260px;
  overflow: auto;

  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
  padding: 6px;
}
#savings-calculator .roi-custom-select.is-open .roi-select-menu {
  display: block;
}
#savings-calculator .roi-custom-select .roi-select-option {
  padding: 10px 10px;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  color: rgba(17, 24, 39, 0.92);
}
#savings-calculator .roi-custom-select .roi-select-option:hover,
#savings-calculator
  .roi-custom-select
  .roi-select-option[aria-selected="true"],
#savings-calculator .roi-custom-select .roi-select-option.is-active {
  background: rgba(0, 0, 0, 0.06);
}
.uc-dark #savings-calculator .roi-custom-select .roi-select-menu {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgb(17, 24, 39);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
}
.uc-dark #savings-calculator .roi-custom-select .roi-select-option {
  color: rgba(255, 255, 255, 0.92);
}
.uc-dark #savings-calculator .roi-custom-select .roi-select-option:hover,
.uc-dark
  #savings-calculator
  .roi-custom-select
  .roi-select-option[aria-selected="true"],
.uc-dark #savings-calculator .roi-custom-select .roi-select-option.is-active {
  background: rgba(255, 255, 255, 0.08);
}

/* ROI tables + tooltips */
#savings-calculator .roi-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
#savings-calculator .roi-table th,
#savings-calculator .roi-table td {
  padding: 0.65rem 0.85rem;
  border: none;
  vertical-align: middle;
}
#savings-calculator .roi-table thead th {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(17, 24, 39, 0.7);
  background: rgba(0, 0, 0, 0.03);
}
.uc-dark #savings-calculator .roi-table thead th {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
}
#savings-calculator .roi-table td:last-child,
#savings-calculator .roi-table th:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
#savings-calculator .roi-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.uc-dark #savings-calculator .roi-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

#savings-calculator .info-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  margin-left: 6px;
  color: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.15);
  cursor: help;
  user-select: none;
}
.uc-dark #savings-calculator .info-icon {
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.22);
}

#savings-calculator .info-icon .tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  max-width: 320px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.98);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  z-index: 50;
  transition: opacity 0.15s ease;
  pointer-events: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
#savings-calculator .info-icon:hover .tooltip {
  visibility: visible;
  opacity: 1;
}
#savings-calculator .info-icon .tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(17, 24, 39, 0.98);
}

/* ROI calculator: (most styling is handled via theme utility classes) */

/* ------------------------------------------------------------
   Feature descriptions
------------------------------------------------------------ */
.feature-description {
  opacity: 1;
  max-height: none;
  overflow: visible;
}

/* ------------------------------------------------------------
   Video
------------------------------------------------------------ */
.video-container {
  position: relative;
  width: 80%;
  max-width: 1050px;
  margin: 0 auto;
  padding: 15px;
  box-sizing: border-box;
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
}

.video-container::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.video-container video {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  width: calc(100% - 30px);
  height: calc(100% - 30px);
  object-fit: fill;
  border-radius: 15px;
}

/* Override for events section video container only */
#events .video-container {
  width: 100%;
  max-width: none;
  margin: 0;
  height: 584px;
}

#events .video-container::before {
  display: none;
}

#events .video-container video {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* ------------------------------------------------------------
   AI Seller Modal + Bootstrap overrides + buttons
------------------------------------------------------------ */
#aiSellerModal .modal-content {
  border-radius: 20px !important;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

#aiSellerModal .form-control:focus {
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

#aiSellerModal .btn-light:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

#aiSellerModal .modal-header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

#aiSellerModal .form-label {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

#aiSellerModal .modal-backdrop {
  backdrop-filter: blur(5px);
}

#aiSellerModal .form-control::placeholder {
  color: black;
  opacity: 1;
}

.small-close {
  transform: scale(0.75);
}

/* Override Bootstrap primary color with custom yellow */
.text-primary,
.text-primary-hover:hover,
.hover\:text-primary:hover,
.text-primary-focus:focus,
.focus\:text-primary:focus {
  color: #ffc000 !important;
}

.bg-primary,
.bg-primary-hover:hover,
.hover\:bg-primary:hover {
  background-color: #ffc000 !important;
}

/* Override Bootstrap CSS variables */
:root {
  --bs-primary-rgb: 255, 192, 0 !important;
  --bs-primary: #ffc000 !important;
  --bs-secondary-rgb: 255, 253, 227 !important;
  --bs-btn-bg: #ffc000 !important;
  --bs-btn-border-color: #ffc000 !important;
  --bs-btn-hover-bg: #e6ac00 !important;
  --bs-btn-hover-border-color: #e6ac00 !important;
  --bs-btn-active-bg: #cc9900 !important;
  --bs-btn-active-border-color: #cc9900 !important;
}

/* Override Bootstrap button primary classes */
.btn-primary {
  --bs-btn-color: #000 !important;
  --bs-btn-bg: #ffc000 !important;
  --bs-btn-border-color: #ffc000 !important;
  --bs-btn-hover-color: #000 !important;
  --bs-btn-hover-bg: #e6ac00 !important;
  --bs-btn-hover-border-color: #e6ac00 !important;
  --bs-btn-focus-shadow-rgb: 255, 192, 0 !important;
  --bs-btn-active-color: #000 !important;
  --bs-btn-active-bg: #cc9900 !important;
  --bs-btn-active-border-color: #cc9900 !important;
  background-color: #ffc000 !important;
  border-color: #ffc000 !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #e6ac00 !important;
  border-color: #e6ac00 !important;
  color: #000 !important;
}

.btn-primary:active {
  background-color: #cc9900 !important;
  border-color: #cc9900 !important;
  color: #000 !important;
}

/* Specific overrides for navbar buttons */
.uc-navbar .btn-primary,
.uc-navbar-right .btn-primary,
header .btn-primary {
  --bs-btn-color: #000 !important;
  --bs-btn-bg: #ffc000 !important;
  --bs-btn-border-color: #ffc000 !important;
  --bs-btn-hover-color: #000 !important;
  --bs-btn-hover-bg: #e6ac00 !important;
  --bs-btn-hover-border-color: #e6ac00 !important;
  --bs-btn-focus-shadow-rgb: 255, 192, 0 !important;
  --bs-btn-active-color: #000 !important;
  --bs-btn-active-bg: #cc9900 !important;
  --bs-btn-active-border-color: #cc9900 !important;
  background-color: #ffc000 !important;
  border-color: #ffc000 !important;
  color: #000 !important;
}

.uc-navbar .btn-primary:hover,
.uc-navbar .btn-primary:focus,
.uc-navbar-right .btn-primary:hover,
.uc-navbar-right .btn-primary:focus,
header .btn-primary:hover,
header .btn-primary:focus {
  background-color: #e6ac00 !important;
  border-color: #e6ac00 !important;
  color: #000 !important;
}

.uc-navbar .btn-primary:hover span,
.uc-navbar .btn-primary:focus span,
.uc-navbar-right .btn-primary:hover span,
.uc-navbar-right .btn-primary:focus span,
header .btn-primary:hover span,
header .btn-primary:focus span {
  color: #000 !important;
}

.uc-navbar .btn-primary:active,
.uc-navbar-right .btn-primary:active,
header .btn-primary:active {
  background-color: #cc9900 !important;
  border-color: #cc9900 !important;
  color: #000 !important;
}

/* Ensure all button sizes have consistent primary styling */
.btn-sm.btn-primary,
.btn-md.btn-primary,
.btn-lg.btn-primary,
.btn.btn-sm.btn-primary,
.btn.btn-md.btn-primary,
.btn.btn-lg.btn-primary {
  --bs-btn-color: #000 !important;
  --bs-btn-bg: #ffc000 !important;
  --bs-btn-border-color: #ffc000 !important;
  --bs-btn-hover-color: #000 !important;
  --bs-btn-hover-bg: #e6ac00 !important;
  --bs-btn-hover-border-color: #e6ac00 !important;
  --bs-btn-focus-shadow-rgb: 255, 192, 0 !important;
  --bs-btn-active-color: #000 !important;
  --bs-btn-active-bg: #cc9900 !important;
  --bs-btn-active-border-color: #cc9900 !important;
  background-color: #ffc000 !important;
  border-color: #ffc000 !important;
  color: #000 !important;
}

.btn-sm.btn-primary:hover,
.btn-md.btn-primary:hover,
.btn-lg.btn-primary:hover,
.btn.btn-sm.btn-primary:hover,
.btn.btn-md.btn-primary:hover,
.btn.btn-lg.btn-primary:hover {
  background-color: #e6ac00 !important;
  border-color: #e6ac00 !important;
  color: #000 !important;
}

.btn-sm.btn-primary:active,
.btn-md.btn-primary:active,
.btn-lg.btn-primary:active,
.btn.btn-sm.btn-primary:active,
.btn.btn-md.btn-primary:active,
.btn.btn-lg.btn-primary:active {
  background-color: #cc9900 !important;
  border-color: #cc9900 !important;
  color: #000 !important;
}

/* Override uc-link colors */
.uc-link {
  color: #ffc000 !important;
}

.uc-link:hover,
.uc-link:focus {
  color: #e6ac00 !important;
}

.uc-link:active {
  color: #cc9900 !important;
}

/* Prevent color change on hover for all highlighted spans */
.d-inline-flex.px-1.bg-secondary.text-primary.-rotate-1:hover,
.d-inline-flex.px-1.bg-secondary.text-primary.-rotate-1.lg\:-rotate-2:hover,
span.d-inline-flex.px-1.bg-secondary.text-primary.-rotate-1:hover,
span.d-inline-flex.px-1.bg-secondary.text-primary.-rotate-1.lg\:-rotate-2:hover {
  color: #ffc000 !important;
}

/* Navbar active state styling */
.uc-navbar-nav li.uc-active > a,
.uc-navbar-nav a[aria-current="page"],
.uc-navbar-nav a.uc-active {
  color: #ffc000 !important;
  font-weight: 600;
}

.uc-navbar-nav li.uc-active > a:hover,
.uc-navbar-nav a[aria-current="page"]:hover {
  color: #e6ac00 !important;
}

/* Restore comfortable navbar spacing without using global `nav a { ... }` rules */
/* - Keep spacing generous on XL+ (>=1200px) */
/* - Slightly tighten spacing on LG (992px–1199.98px) to prevent overlap with right-side buttons */
@media (min-width: 1200px) {
  .uc-navbar .uc-navbar-nav {
    gap: 20px !important;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .uc-navbar .uc-navbar-nav {
    gap: 12px !important;
  }

  /* Give the center nav a bit more room without changing the look elsewhere */
  .uc-navbar-right .btn.btn-primary {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}

/* Product Collage Styles */
.product-collage .collage-image:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18),
    0 6px 20px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
  .product-collage {
    max-width: 100% !important;
    gap: 8px !important;
  }

  .product-collage .collage-image {
    height: 140px !important;
    border-radius: 12px !important;
  }

  .collage-item-2 {
    transform: translate(-8px, 5px) !important;
  }

  .collage-item-3 {
    transform: translate(5px, -5px) !important;
  }
}

@media (max-width: 480px) {
  .product-collage .collage-image {
    height: 120px !important;
    border-radius: 10px !important;
  }

  .collage-item-2 {
    transform: translate(-5px, 3px) !important;
  }

  .collage-item-3 {
    transform: translate(3px, -3px) !important;
  }
} */

/* Enhanced AI Seller Button Styles */
.ai-seller-container {
  position: fixed !important;
  bottom: 20px !important;
  left: 20px !important;
  z-index: 50 !important; /* keep below offcanvas menu */
  animation: slideInUp 0.6s ease-out;
}

/* Ensure the offcanvas sidebar always overlays fixed UI (like AI seller button) */
#uc-menu-panel {
  z-index: 2000 !important;
}

#uc-menu-panel .uc-offcanvas-bar {
  z-index: 2000 !important;
}

/* Main Button Styles */
.ai-seller-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #ffc000 0%, #ff8c00 100%);
  color: black;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(255, 192, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  min-width: 200px;
  justify-content: center;
  white-space: nowrap;
}

.ai-seller-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 192, 0, 0.5);
  background: linear-gradient(135deg, #ffb300 0%, #ff7f00 100%);
}

.ai-seller-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 6px 24px rgba(255, 192, 0, 0.4);
}

.ai-seller-btn:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

/* Button States */
.ai-seller-btn.connecting {
  background: linear-gradient(135deg, #ffc000 0%, #ff9500 100%);
  box-shadow: 0 8px 32px rgba(255, 192, 0, 0.4);
}

.ai-seller-btn.processing {
  background: linear-gradient(135deg, #ffb300 0%, #ff8c00 100%);
  box-shadow: 0 8px 32px rgba(255, 192, 0, 0.4);
}

/* Form Validation Styles */
#aiSellerModal .form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#aiSellerModal .form-control.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#aiSellerModal .invalid-feedback {
  display: none;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  color: #ff6b6b !important;
  font-weight: 500;
}

#aiSellerModal .invalid-feedback.show {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Success state for valid fields */
#aiSellerModal .form-control.is-valid {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.ai-seller-btn.listening {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  box-shadow: 0 8px 32px rgba(67, 233, 123, 0.4);
  animation: pulse-listening 2s ease-in-out infinite;
}

.ai-seller-btn.error {
  background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  box-shadow: 0 8px 32px rgba(255, 65, 108, 0.4);
}

/* Connected State - Wider button with enhanced visual feedback */
.ai-seller-btn.connected {
  min-width: 280px;
  position: relative;
  overflow: visible;
  transform: scale(1.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-seller-btn.conversation {
  min-width: 280px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: visible;
}

.ai-seller-btn.conversation::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #667eea, #764ba2, #667eea);
  border-radius: 52px;
  z-index: -1;
  opacity: 0.6;
  animation: border-glow 2s ease-in-out infinite;
}

.ai-seller-btn.conversation::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

/* Enhanced processing state with width increase */
.ai-seller-btn.processing {
  min-width: 220px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  box-shadow: 0 8px 32px rgba(79, 172, 254, 0.4);
  animation: processing-glow 2s ease-in-out infinite;
}

/* Enhanced listening state with width increase */
.ai-seller-btn.listening {
  min-width: 220px;
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  box-shadow: 0 8px 32px rgba(67, 233, 123, 0.4);
  animation: listening-pulse 2s ease-in-out infinite;
}

/* Icon Styles */
.btn-icon {
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.btn-icon.spinning {
  animation: spin 1s linear infinite;
}

.btn-icon.pulse {
  animation: pulse-icon 1.5s ease-in-out infinite;
}

/* Loading Spinner */
.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Progress Ring */
.progress-ring {
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50px;
  border: 3px solid transparent;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ai-seller-btn.loading .progress-ring {
  opacity: 1;
  animation: rotate-border 2s linear infinite;
}

/* Audio Visualizer Bars */
.audio-visualizer {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
}

.font-xl {
  font-size: 16px;
}
.font-x2 {
  font-size: 17px;
}

.audio-bar {
  width: 3px;
  height: 12px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  animation: audio-wave 1.5s ease-in-out infinite;
}

.audio-bar:nth-child(2) {
  animation-delay: 0.1s;
}
.audio-bar:nth-child(3) {
  animation-delay: 0.2s;
}
.audio-bar:nth-child(4) {
  animation-delay: 0.3s;
}
.audio-bar:nth-child(5) {
  animation-delay: 0.4s;
}

/* Close Button */
.close-btn {
  margin-left: 8px;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0;
  transform: scale(0);
}

.close-btn.visible {
  opacity: 1;
  transform: scale(1);
}

.close-btn:hover {
  background: white;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Text transitions */
.btn-text {
  transition: all 0.3s ease;
  opacity: 1;
}

.btn-text.fade-out {
  opacity: 0;
  transform: translateX(-10px);
}

.btn-text.fade-in {
  opacity: 1;
  transform: translateX(0);
}

/* Animations */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse-listening {
  0%,
  100% {
    box-shadow: 0 8px 32px rgba(67, 233, 123, 0.4);
  }
  50% {
    box-shadow: 0 8px 48px rgba(67, 233, 123, 0.6);
  }
}

@keyframes border-glow {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.02);
  }
}

@keyframes processing-glow {
  0%,
  100% {
    box-shadow: 0 8px 32px rgba(79, 172, 254, 0.4);
  }
  50% {
    box-shadow: 0 8px 48px rgba(79, 172, 254, 0.6);
  }
}

@keyframes listening-pulse {
  0%,
  100% {
    box-shadow: 0 8px 32px rgba(67, 233, 123, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 8px 48px rgba(67, 233, 123, 0.6);
    transform: scale(1.02);
  }
}

@keyframes connected-breathe {
  0%,
  100% {
    transform: scale(1.02);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes connected-glow {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

.ai-seller-btn.connected {
  animation: connected-breathe 3s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4),
    0 0 20px rgba(102, 126, 234, 0.2);
}

.ai-seller-btn.connected::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(
    45deg,
    rgba(102, 126, 234, 0.3),
    rgba(118, 75, 162, 0.3)
  );
  border-radius: 54px;
  z-index: -1;
  animation: connected-glow 2s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

@keyframes rotate-border {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes audio-wave {
  0%,
  100% {
    height: 6px;
    opacity: 0.5;
  }
  50% {
    height: 16px;
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive styles for enhanced button */
@media (max-width: 768px) {
  .ai-seller-btn {
    min-width: 180px;
    padding: 12px 16px;
    font-size: 13px;
  }
  .ai-seller-btn.conversation,
  .ai-seller-btn.processing,
  .ai-seller-btn.listening {
    min-width: 240px;
  }

  .ai-seller-container {
    bottom: 15px !important;
    left: 15px !important;
  }
}

@media (max-width: 480px) {
  .ai-seller-btn {
    min-width: 160px;
    padding: 10px 14px;
    font-size: 12px;
  }

  .ai-seller-btn.conversation,
  .ai-seller-btn.processing,
  .ai-seller-btn.listening {
    min-width: 200px;
  }

  .ai-seller-container {
    bottom: 10px !important;
    left: 10px !important;
  }

  }

   @media (max-width: 380px) {
    .ai-seller-btn {
    min-width: 120px;
    padding: 8px 12px;
    font-size: 11px;
    }

   .ai-seller-container {
   bottom: 5px !important;
   left: 5px !important;
  }
}

/* Ensure proper button alignment */
#aiSellerBtn {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}

/* End Conversation Button Styles */
.end-conversation-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 65, 108, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 12px;
  justify-content: center;
  white-space: nowrap;
  height: 35px;
  width: 35px;
  animation: slideInRight 0.4s ease-out;
}

.end-conversation-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 65, 108, 0.5);
  background: linear-gradient(135deg, #e53e3e 0%, #dc2626 100%);
}

.end-conversation-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(255, 65, 108, 0.4);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive styles for end conversation button */
@media (max-width: 768px) {
  .end-conversation-btn {
    font-size: 12px;
    margin-left: 8px;
  }
}

@media (max-width: 480px) {
  .end-conversation-btn {
    margin-left: 6px;
  }
}

/* ------------------------------------------------------------
   Events swiper (was inline near Events section)
------------------------------------------------------------ */
.events-swiper {
  width: 100%;
  height: 400px; /* h-96 = 24rem = 384px */
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
@media (min-width: 768px) {
  .events-swiper {
    height: 600px; /* md:h-[600px] */
  }
}
.events-swiper .swiper-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
}
/* Ensure consistent slide dimensions - fixed height */
.events-swiper .swiper-slide {
  position: relative;
  width: 100% !important;
  height: 100% !important;
  min-height: 100%;
  max-height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* Bottom-right badge overlay on each carousel image (scoped to Events swiper) */
.events-swiper .event-badge {
  padding: 20px;
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 140px;
  height: 86px;
  object-fit: contain;
  border-radius: 8px;
  padding: 4px;
  /* background: rgba(255, 255, 255, 0.75); */
  /* box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15); */
  z-index: 5;
  pointer-events: none;
  user-select: none;
}

/* Ensure images maintain aspect ratio without stretching */
.events-swiper .swiper-slide img {
  display: block;
  object-fit: cover;
  object-position: center;
  /* width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: 100%; */
}
.events-swiper-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.events-swiper-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(0, 0, 0, 0.5);
  opacity: 1;
  transition: all 0.3s ease;
  margin: 0;
}
.events-swiper-pagination .swiper-pagination-bullet-active {
  background: rgb(0, 0, 0);
  width: 32px;
  border-radius: 4px;
}
/* Dark mode styles */
.uc-dark .events-swiper-pagination .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5) !important;
}
.uc-dark .events-swiper-pagination .swiper-pagination-bullet-active {
  background: white !important;
}

/* ------------------------------------------------------------
   Lightweight enter-view animations (transform/opacity only)
------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 480ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}

.reveal.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ------------------------------------------------------------
   Anchor scroll offset (sticky header)
------------------------------------------------------------ */
#roi-calculator {
  scroll-margin-top: 110px;
}

