/* Modals, Overlays, Toasts, and Interactive Popups */

/* Shared Modal Backdrop */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 40, 26, 0.65);
  backdrop-filter: blur(5px);
  z-index: 2800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Quick View Modal Box */
.quick-view-modal {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 860px;
  width: 100%;
  padding: 36px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--honey-border);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest-dark);
  cursor: pointer;
  z-index: 5;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--honey-primary);
  color: #ffffff;
}

/* Search Modal Overlay */
.search-modal-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 640px;
  width: 100%;
  padding: 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  position: relative;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.search-input-field {
  width: 100%;
  padding: 16px 20px 16px 50px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--honey-primary);
  font-size: 1.1rem;
  background: var(--bg-cream);
}

.search-input-icon {
  position: absolute;
  left: 20px;
  color: var(--honey-dark);
  pointer-events: none;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 340px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-result-item:hover {
  background: var(--honey-light);
}

.search-result-thumb {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

/* Toast System - Luxury Honey Orange Bee Drag */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 48px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: none;
  overflow: visible;
}

.toast-item {
  pointer-events: auto;
  position: relative;
  min-width: 320px;
  max-width: 440px;
  padding: 16px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 48%, #c2410c 100%);
  color: #ffffff !important;
  box-shadow: 0 14px 38px rgba(234, 88, 12, 0.42), 0 4px 12px rgba(0, 0, 0, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: slideInRightToast 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.94rem;
  font-weight: 600;
  overflow: visible;
  line-height: 1.45;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.toast-item span,
.toast-item .toast-message {
  color: #ffffff !important;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  flex: 1;
}

.toast-item.toast-error {
  background: linear-gradient(135deg, #f97316 0%, #dc2626 55%, #991b1b 100%);
  box-shadow: 0 14px 38px rgba(220, 38, 38, 0.42), 0 4px 12px rgba(0, 0, 0, 0.14);
}

.toast-item.toast-warning {
  background: linear-gradient(135deg, #fb923c 0%, #d97706 50%, #b45309 100%);
  box-shadow: 0 14px 38px rgba(217, 119, 6, 0.42), 0 4px 12px rgba(0, 0, 0, 0.14);
}

.toast-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.toast-icon svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  stroke-width: 2.6;
}

/* Bee Drag Tether & Character - Perfectly perched at top-right corner */
.toast-bee-dragger {
  position: absolute;
  top: -30px;
  right: 12px;
  width: 76px;
  height: 48px;
  pointer-events: none;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.toast-bee-rope {
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 38px;
  height: 24px;
  overflow: visible;
  pointer-events: none;
}

.toast-bee-sprite {
  position: absolute;
  right: 0;
  top: 0;
  width: 48px;
  height: 38px;
  transform-origin: 30% 60%;
  animation: beeFloatGentle 2.6s ease-in-out infinite alternate;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.22));
}

.toast-bee-sprite .bee-wing {
  transform-origin: 24px 11px;
  animation: beeWingFlap 0.12s ease-in-out infinite alternate;
}

.toast-bee-sprite .wing-front {
  transform-origin: 28px 9px;
  animation: beeWingFlapFront 0.10s ease-in-out infinite alternate;
}

@keyframes beeFloatGentle {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-5px) rotate(4deg);
  }
  100% {
    transform: translateY(2px) rotate(-3deg);
  }
}

@keyframes beeWingFlap {
  0% {
    transform: rotate(-32deg) scaleY(1);
    opacity: 0.95;
  }
  100% {
    transform: rotate(-10deg) scaleY(0.55);
    opacity: 0.7;
  }
}

@keyframes beeWingFlapFront {
  0% {
    transform: rotate(-12deg) scaleY(1);
    opacity: 0.98;
  }
  100% {
    transform: rotate(8deg) scaleY(0.5);
    opacity: 0.75;
  }
}

/* =======================================================
   Animated Bee Dragging Toast OUT of the Screen
   ======================================================= */
.toast-item.toast-bee-dragging-out {
  animation: beeDragToastOut 0.75s cubic-bezier(0.38, 0, 0.18, 1) forwards !important;
  pointer-events: none;
}

.toast-item.toast-bee-dragging-out .toast-bee-sprite {
  animation: beeHaulingPull 0.75s cubic-bezier(0.38, 0, 0.18, 1) forwards !important;
}

.toast-item.toast-bee-dragging-out .bee-wing {
  animation-duration: 0.045s !important;
}

.toast-item.toast-bee-dragging-out .rope-line {
  stroke: #ffffff !important;
  stroke-width: 2.8 !important;
  stroke-dasharray: none !important;
  filter: drop-shadow(0 0 4px rgba(254, 240, 138, 0.9));
  transition: all 0.15s ease;
}

@keyframes slideInRightToast {
  0% {
    transform: translateX(calc(100% + 50px));
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes beeDragToastOut {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
    opacity: 1;
  }
  16% {
    /* Anticipation tug: bee stretches forward, toast digs in slightly */
    transform: translateX(-16px) translateY(3px) rotate(-2.5deg);
    opacity: 1;
  }
  38% {
    /* Toast gets pulled forward with organic tilt */
    transform: translateX(36px) translateY(-6px) rotate(2.5deg);
    opacity: 1;
  }
  100% {
    /* Dragged completely off screen to the right */
    transform: translateX(calc(100% + 320px)) translateY(-20px) rotate(7deg);
    opacity: 0;
  }
}

@keyframes beeHaulingPull {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  16% {
    /* Bee leans forward with intense strain */
    transform: translateX(20px) translateY(-8px) rotate(28deg) scale(1.18);
  }
  38% {
    transform: translateX(65px) translateY(-14px) rotate(22deg) scale(1.22);
  }
  100% {
    /* Bee accelerates ahead pulling the toast behind it */
    transform: translateX(200px) translateY(-26px) rotate(26deg) scale(1.28);
  }
}

@media (max-width: 640px) {
  .toast-container {
    bottom: 20px;
    right: 16px;
    left: 16px;
  }
  .toast-item {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
}

/* ==========================================================================
   Clean & Minimal Customer Authentication Modal (Split Two-Column Design)
   Reference: Modern luxury split card popup with branded showcase & clean form
   ========================================================================== */

.clean-auth-modal {
  display: flex;
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 820px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.22), 0 8px 24px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  animation: cleanModalZoom 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  margin: 20px;
}

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

/* Close Button (Minimal × at top right) */
.clean-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s ease;
}

.clean-modal-close:hover {
  background: #f3f4f6;
  color: #111827;
}

.clean-modal-close svg {
  width: 18px;
  height: 18px;
}

/* Left Showcase Panel */
.clean-auth-left {
  width: 42%;
  background: linear-gradient(145deg, #fdfbf7 0%, #fbf5e7 50%, #f7ebce 100%);
  padding: 48px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border-right: 1px solid rgba(229, 231, 235, 0.6);
  position: relative;
}

.clean-brand-center {
  margin: auto 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.clean-logo-badge {
  width: 88px;
  height: 88px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  margin-bottom: 18px;
}

.clean-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.clean-brand-title {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 2.5px;
  color: #111827;
  margin-bottom: 4px;
}

.clean-brand-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #b45309;
  text-transform: uppercase;
}

.clean-brand-bottom {
  font-size: 0.84rem;
  color: #4b5563;
  font-weight: 600;
  text-align: center;
  margin-top: 24px;
}

/* Right Content & Form Panel */
.clean-auth-right {
  width: 58%;
  padding: 40px 38px 32px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  max-height: 88vh;
  overflow-y: auto;
}

.clean-auth-header {
  margin-bottom: 18px;
}

.clean-title {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.clean-subtitle {
  font-size: 0.86rem;
  color: #6b7280;
  line-height: 1.45;
}

/* Notice banner */
.clean-notice-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #fef3c7;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #92400e;
  font-weight: 600;
  margin-bottom: 14px;
}

.clean-notice-icon svg {
  width: 16px;
  height: 16px;
}

/* 1-Click Demo Bar */
.clean-demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  font-size: 0.78rem;
  color: #4b5563;
  margin-bottom: 16px;
}

.clean-demo-pill {
  padding: 4px 10px;
  background: #ce4c00;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clean-demo-pill:hover {
  background: #ea5a07;
  color: #ffffff;
}

/* Feedback messages */
.clean-feedback {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.clean-feedback.error {
  background: #fee2e2;
  color: #b91c1c;
}
.clean-feedback.success {
  background: #ecfdf5;
  color: #047857;
}

/* Form Styles */
.clean-form-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.clean-field {
  display: flex;
  flex-direction: column;
}

.clean-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.clean-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #111827;
  margin-bottom: 6px;
}

.clean-field-header .clean-label {
  margin-bottom: 0;
}

.clean-forgot-btn {
  background: none;
  border: none;
  font-size: 0.76rem;
  font-weight: 700;
  color: #ce4c00;
  cursor: pointer;
  padding: 0;
}

.clean-forgot-btn:hover {
  text-decoration: underline;
}

/* Input Container with Icon */
.clean-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.clean-input-icon {
  position: absolute;
  left: 14px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.clean-input-icon svg {
  width: 17px;
  height: 17px;
}

.clean-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  font-size: 0.92rem;
  color: #111827;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.clean-input:focus {
  border-color: #ce4c00;
  box-shadow: 0 0 0 3px rgba(206, 76, 0, 0.16);
}

.clean-toggle-eye {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.clean-toggle-eye:hover {
  opacity: 1;
}

/* Primary Honey Button (SIGN IN - Navbar Terracotta Orange) */
.clean-primary-btn {
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, #d85300 0%, #ce4c00 55%, #c44400 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(206, 76, 0, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 4px;
}

.clean-primary-btn:hover {
  background: linear-gradient(135deg, #ea5a07 0%, #d85300 55%, #ce4c00 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 7px 22px rgba(206, 76, 0, 0.45);
}

.clean-primary-btn:active {
  transform: translateY(0);
}


/* Google Button (SIGN IN WITH GOOGLE) */
.clean-google-btn {
  width: 100%;
  padding: 11px 16px;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #1f2937;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clean-google-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.clean-google-btn:active {
  background: #f3f4f6;
}

.clean-google-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.clean-google-icon svg {
  width: 18px;
  height: 18px;
}

/* Disclaimer / Terms text */
.clean-terms-text {
  font-size: 0.72rem;
  color: #9ca3af;
  text-align: center;
  margin-top: 10px;
  line-height: 1.4;
}

.clean-terms-text a {
  color: #6b7280;
  text-decoration: underline;
}

/* Switch link prompt */
.clean-switch-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #4b5563;
  margin-top: 6px;
}

.clean-switch-btn {
  background: none;
  border: none;
  color: #111827;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-family: inherit;
  font-size: 0.85rem;
}

.clean-switch-btn:hover {
  color: #d97706;
}

/* Responsive (Mobile Collapse to Single Column) */
@media (max-width: 720px) {
  .clean-auth-modal {
    flex-direction: column;
    max-width: 440px;
    border-radius: 20px;
    margin: 16px;
  }
  .clean-auth-left {
    width: 100%;
    padding: 28px 24px 20px;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }
  .clean-brand-bottom {
    display: none;
  }
  .clean-logo-badge {
    width: 68px;
    height: 68px;
    margin-bottom: 10px;
  }
  .clean-auth-right {
    width: 100%;
    padding: 24px 20px 24px;
  }
}

