/* styles.css - Main Styles */

:root {
  /* Light Mode - Minimalist Neutral & Sage Green */

  /* Core Colors */
  --primary: #047857;
  /* Deep Sage/Forest Green - แทนที่ Blue */
  --primary-hover: #047857;
  --secondary: #667eea;
  /* Muted Orange/Mustard (Success/Action) */
  --tertiary: #facc15;
  /* Yellow/Gold (Warning) */
  --danger: #ef4444;
  /* Standard Red */

  /* Background & Surface Colors - Clean Whites */
  --bg-primary: #ffffff;
  /* Pure White */
  --bg-secondary: #f5f5f5;
  /* Very light gray for subtle contrast */
  --surface: #ffffff;
  --surface-variant: #f5f5f5;

  /* Text Colors - High Contrast */
  --text-primary: #171717;
  /* Near black */
  --text-secondary: #525252;
  /* Medium gray */
  --text-tertiary: #a3a3a3;
  /* Subtle light gray */

  /* Border & Divider - Very light */
  --border: #e5e5e5;
  --border-element: #d1d5db;
  /* Slightly darker border for elements */
  --divider: #f3f4f6;

  /* Message Background Colors */
  --success-bg: #dcfce7;
  /* Light green for success messages */
  --info-bg: #dbeafe;
  /* Light blue for info messages */
  --warning-bg: #fef3c7;
  /* Light yellow for warning messages */
  --error-bg: #fee2e2;
  /* Light red for error messages */

  /* Shadows - Minimal and soft */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Override Tailwind dark mode classes to use our custom variables */
.dark {
  --primary: #34d399;
  /* Lighter Sage/Mint Green */
  --primary-hover: #10b981;

  /* Background & Surface Colors - Deep Greys/Blacks */
  --bg-primary: #0a0a0a;
  /* Near-Black */
  --bg-secondary: #1f1f1f;
  /* Slightly lighter for separation */
  --surface: #121212;
  /* Card/surface color */
  --surface-variant: #262626;

  /* Text Colors - White/Light Gray */
  --text-primary: #ffffff;
  --text-secondary: #c2c2c2;
  --text-tertiary: #737373;

  /* Border & Divider - Subtle */
  --border: #262626;
  --border-element: #374151;
  /* Slightly lighter border for elements in dark mode */
  --divider: #3f3f46;

  /* Message Background Colors for Dark Mode */
  --success-bg: #064e3b;
  /* Dark green for success messages */
  --info-bg: #1e3a8a;
  /* Dark blue for info messages */
  --warning-bg: #713f12;
  /* Dark yellow for warning messages */
  --error-bg: #7f1d1d;
  /* Dark red for error messages */

  /* Shadows - Minimal */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
}

/* Body Styles */
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s, color 0.3s;
}

/* Make specific list text pure black in light mode while following theme in dark mode.
   Use more specific selectors and !important to override utility classes when needed. */
body:not(.dark) .custom-dark-aware {
  color: #000000 !important;
}

.dark .custom-dark-aware {
  color: var(--text-primary) !important;
}

/* Extra-specific rules to override utility classes or inline styles on list items */
html:not(.dark) ol.custom-dark-aware,
html:not(.dark) ol.custom-dark-aware>li,
html:not(.dark) ol.custom-dark-aware li {
  color: #000000 !important;
}

.dark ol.custom-dark-aware,
.dark ol.custom-dark-aware>li,
.dark ol.custom-dark-aware li {
  color: var(--text-primary) !important;
}

/* Smooth theme transition */
.theme-transition * {
  transition: background-color 0.3s, color 0.3s, border-color 0.3s !important;
}

/* Scrollbar Styling */
* {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

*::-webkit-scrollbar {
  width: 8px;
}

*::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

*::-webkit-scrollbar-thumb {
  background: var(--text-tertiary);
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Cards */
.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 150;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
}

/* Enhanced Modal Styles */
.modal>div {
  max-height: 90vh;
  overflow-y: auto;
}

/* Ensure modals work properly in both light and dark modes */
.modal .surface {
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

/* Remove gradients from modal dialog containers */
.modal>div {
  background: var(--surface) !important;
  background-image: none !important;
  background-clip: unset !important;
  -webkit-background-clip: unset !important;
}

.modal>div>div {
  background: var(--surface) !important;
  background-image: none !important;
  background-clip: unset !important;
  -webkit-background-clip: unset !important;
}

/* Modal Backdrop */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Dialog Container */
.product-dialog {
  background: var(--surface);
  border-radius: 24px;
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  display: grid;
  grid-template-columns: 45% 55%;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-dialog::-webkit-scrollbar {
  width: 10px;
}

.product-dialog::-webkit-scrollbar-track {
  background: var(--surface-variant);
}

.product-dialog::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

.product-dialog::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

.modal-backdrop.active .product-dialog {
  transform: scale(1);
  opacity: 1;
}

/* Left Side - Image + Info (Sticky Section) */
.dialog-left-section {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 90vh;
  overflow: hidden;
  padding: 0 24px;
}

.dialog-image-section {
  flex-shrink: 0;
  min-height: 350px;
  max-height: 450px;
  background: linear-gradient(135deg, var(--surface-variant) 0%, var(--border) 100%);
  padding: 40px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 24px;
  width: 100%;
}

.dialog-image-section::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  animation: shimmer 8s infinite linear;
}

@keyframes shimmer {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.product-image {
  width: 100%;
  height: 100%;
  max-height: 350px;
  object-fit: contain;
  border-radius: 12px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.product-image:hover {
  transform: scale(1.05);
}

/* Product Info Section (within left side) */
.dialog-info-section {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px 24px 8px;
  min-height: 0;
}

.dialog-info-section::-webkit-scrollbar {
  width: 6px;
}

.dialog-info-section::-webkit-scrollbar-track {
  background: var(--surface-variant);
  border-radius: 3px;
}

.dialog-info-section::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.dialog-info-section::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

.product-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-title {
  font-size: 19.6px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  line-height: 1.3;
}

.price-section {
  margin: 0;
  padding: 14px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-radius: 11.2px;
  display: flex;
  align-items: baseline;
  gap: 8.4px;
}

.price-label {
  color: white;
  font-size: 9.8px;
  font-weight: 500;
  opacity: 0.9;
}

.price-current {
  font-size: 25.2px;
  font-weight: 800;
  color: white;
}

.price-original {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: line-through;
}

/* Right Side - Content */
.dialog-content-section {
  padding: 40px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Close Button - Fixed at top right of dialog */
.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10000;
  color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dark .close-btn {
  background: rgba(0, 0, 0, 0.95);
  color: white;
}

.close-btn:hover {
  background: var(--primary);
  color: white;
  transform: rotate(90deg);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Instructions */
.instructions-section {
  margin: 24px 0;
  padding: 20px;
  background: var(--surface-variant);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

.instructions-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.instructions-text {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 14px;
}

.instructions-text a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.instructions-text a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Form Fields */
.form-field {
  margin-bottom: 20px;
}

.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.field-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease;
  font-family: inherit;
  background-color: var(--surface);
  color: var(--text-primary);
}

.field-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Credit Input Wrapper with Spinner */
.credit-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.product-detail-input-with-spinner {
  width: 100%;
  padding: 14px 44px 14px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease;
  font-family: inherit;
  background-color: var(--surface);
  color: var(--text-primary);
  text-align: left;
  height: 50px;
}

.product-detail-input-with-spinner:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Hide default number input spinner */
.product-detail-input-with-spinner::-webkit-inner-spin-button,
.product-detail-input-with-spinner::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.product-detail-input-with-spinner[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Spinner Buttons Container */
.spinner-buttons {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Individual Spinner Buttons */
.spinner-btn {
  width: 36px;
  height: calc((100% - 2px) / 2);
  min-height: 0;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spinner-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.spinner-btn:active {
  transform: scale(0.95);
}

.spinner-btn svg {
  width: 12px;
  height: 8px;
}

.spinner-btn-up {
  border-radius: 6px 6px 0 0;
}

.spinner-btn-down {
  border-radius: 0 0 6px 6px;
}


.credit-input-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.credit-input-group input {
  flex: 1;
}

.credit-unit {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}



/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}

.btn {
  flex: 1;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--surface-variant);
}

/* Success Message */
.success-message {
  padding: 16px;
  background: #d4edda;
  color: #155724;
  border-radius: 12px;
  margin-top: 16px;
  border-left: 4px solid #28a745;
  display: none;
}

.dark .success-message {
  background: #064e3b;
  color: #d1fae5;
  border-left: 4px solid #10b981;
}

.success-message.show {
  display: block;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 968px) {
  .product-dialog {
    grid-template-columns: 1fr;
    max-height: 95vh;
  }

  .dialog-left-section {
    position: relative;
    max-height: none;
    overflow-y: visible;
    padding: 0 16px;
  }

  .dialog-image-section {
    padding: 30px;
    max-height: 300px;
  }

  .product-image {
    max-height: 250px;
  }

  .dialog-info-section {
    padding: 0 0 24px 0;
    overflow-y: visible;
  }
}

@media (max-width: 640px) {
  .product-title {
    font-size: 16.8px;
  }

  .price-current {
    font-size: 19.6px;
  }

  .action-buttons {
    flex-direction: column;
  }

  .dialog-left-section {
    padding: 0 12px;
  }
}

/* Make logout confirmation, cart, FAQ, Contact, and Theme modals use a solid dark background in dark mode (no gradient) */
.dark #logoutConfirmModal .surface,
.dark #cartModal .surface,
.dark #faqModal .surface,
.dark #contactModal .surface,
.dark #themeModal .surface {
  background-color: #0b1226;
  /* solid deep navy/near-black */
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.6);
  color: var(--text-primary);
}

/* Ensure the modal headings keep proper contrast when using the solid background */
.dark #logoutConfirmModal h2,
.dark #cartModal h3,
.dark #faqModal h3,
.dark #contactModal h3,
.dark #themeModal h3 {
  color: var(--text-primary);
  background: transparent;
}

/* Ensure theme modal content adapts to theme */
#themeModal .theme-option {
  color: var(--text-primary);
}

.dark #themeModal .theme-option {
  color: var(--text-primary);
}

/* Banner View Dialog - Modern modal with backdrop */
.banner-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.banner-dialog.hidden {
  display: none !important;
  opacity: 0;
}

.banner-dialog.show {
  display: flex !important;
  opacity: 1;
}

/* Banner Backdrop - Dark overlay */
.banner-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 999;
  animation: fadeIn 0.3s ease;
}

.dark .banner-backdrop {
  background: rgba(0, 0, 0, 0.85);
}

/* Banner Dialog Content - Centered container */
.banner-dialog-content {
  position: relative;
  width: min(92vw, 420px);
  max-width: 95vw;
  max-height: 90vh;
  padding: 0.5rem;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.3s ease;
}

.dark .banner-dialog-content {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

/* Banner Image */
.banner-dialog-content img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 0.75rem;
}

/* Banner Close Button - Top Right */
.banner-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 1002;
  transition: all 0.3s ease;
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  max-height: 48px;
  flex-shrink: 0;
  line-height: 1;
}

.banner-close-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1) rotate(90deg);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark .banner-close-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.dark .banner-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Banner Hide Today Button - Bottom Right */
.banner-hide-option {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  z-index: 1002;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.banner-hide-option:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Dark Mode - Enhanced visibility with glassmorphism effect */
.dark .banner-hide-option {
  background: rgba(30, 41, 59, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.dark .banner-hide-option:hover {
  background: rgba(51, 65, 85, 0.95);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(139, 92, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Responsive - Mobile */
@media (max-width: 640px) {
  .banner-dialog-content {
    width: 94vw;
    max-width: 94vw;
    max-height: 88vh;
  }

  .banner-close-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
    font-size: 24px;
    top: 8px;
    right: 8px;
  }

  .banner-hide-option {
    font-size: 12px;
    padding: 6px 12px;
    bottom: 8px;
    right: 8px;
  }
}

/* Responsive - Tablet */
@media (min-width: 641px) and (max-width: 1024px) {
  .banner-dialog-content {
    max-width: 85vw;
    max-height: 88vh;
  }
}

/* Responsive - Desktop */
@media (min-width: 1025px) {
  .banner-dialog-content {
    width: min(90vw, 800px);
    max-height: 150vh;
  }
}

/* Banner Countdown - Positioned at bottom left */
.banner-countdown {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  z-index: 1002;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.dark .banner-countdown {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-color: rgba(255, 255, 255, 0.25);
}

/* Add backdrop for modals to ensure they cover the entire screen */
.modal::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: -1;
}

/* Button Groups */
.btn-group {
  display: inline-flex;
  gap: 0.5rem;
}

/* Animations */
.animate-spin-slow {
  animation: spin 3s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Modern Cart Modal Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(100px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideOutDown {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(100px) scale(0.95);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

@keyframes floatEmoji {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-10px) rotate(-5deg);
  }

  50% {
    transform: translateY(-15px) rotate(0deg);
  }

  75% {
    transform: translateY(-10px) rotate(5deg);
  }
}

/* Cart Modal Theme-Aware Styles */
.cart-modal-content {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.dark .cart-modal-content {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* Cart Header Overlay - Light Mode */
.cart-header-overlay {
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.15), transparent);
}

/* Cart Header Overlay - Dark Mode */
.dark .cart-header-overlay {
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent);
}

/* Cart Title - Theme adaptive */
.cart-title {
  color: #0a0a0a !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.1);
}

.dark .cart-title {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Cart Close Button */
.cart-close-btn {
  background: rgba(0, 0, 0, 0.2);
  color: #0a0a0a;
}

.cart-close-btn:hover,
.cart-close-btn.cart-close-hover {
  background: rgba(0, 0, 0, 0.3) !important;
  transform: rotate(90deg) !important;
}

.dark .cart-close-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.dark .cart-close-btn:hover,
.dark .cart-close-btn.cart-close-hover {
  background: rgba(255, 255, 255, 0.3) !important;
}

/* Cart Item Delete Button - Light Mode */
.cart-item .delete-btn {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.cart-item .cart-delete-btn:hover {
  background: var(--danger) !important;
  color: white !important;
  transform: scale(1.1) rotate(10deg) !important;
}

/* Cart Item Delete Button - Dark Mode */
.dark .cart-item .delete-btn {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.dark .cart-item .cart-delete-btn:hover {
  background: #dc2626 !important;
  color: white !important;
}

/* Cart Total Amount - Gradient Text */
.cart-total-amount {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
  .cart-total-amount {
    color: var(--primary);
  }
}

/* Cart Checkout Button */
.cart-checkout-btn {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cart-checkout-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25) !important;
}

.dark .cart-checkout-btn {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.dark .cart-checkout-btn:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6) !important;
}

/* Checkout Button Shimmer - Dark mode adjustment */
.dark .checkout-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent) !important;
}

/* Cart Empty State */
.empty-cart {
  color: var(--text-primary);
}

/* Cart Checkout Button */
#checkoutBtn {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dark #checkoutBtn {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Cart Item Hover Effects - Ensure proper theme colors */
.cart-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .cart-item:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3) !important;
}

/* Cart Item Icon Badge */
.cart-item-icon {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dark .cart-item-icon {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Cart Item Icon Image */
.cart-item-icon img {
  transition: transform 0.3s ease;
}

.cart-item:hover .cart-item-icon img {
  transform: scale(1.05);
}

/* Alert Modal Theme-Aware Styles */
.alert-dialog-content {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}

.dark .alert-dialog-content {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

/* Alert Header Overlay */
.alert-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.15), transparent);
  pointer-events: none;
}

.dark .alert-header-overlay {
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent);
}

/* Alert Close Button */
.alert-close-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.alert-close-btn:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  transform: scale(1.1) !important;
}

.dark .alert-close-btn {
  background: rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.dark .alert-close-btn:hover {
  background: rgba(0, 0, 0, 0.3) !important;
}

/* Alert Icon */
.alert-icon {
  background: rgba(255, 255, 255, 0.2);
}

.dark .alert-icon {
  background: rgba(0, 0, 0, 0.2);
}

/* Alert Title - Theme adaptive */
.alert-title {
  color: #0a0a0a !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.1);
}

.dark .alert-title {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Alert OK Button */
.alert-ok-btn {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.alert-ok-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2) !important;
}

.dark .alert-ok-btn {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.dark .alert-ok-btn:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5) !important;
}

/* Confirm Modal Theme-Aware Styles */
.confirm-dialog-content {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}

.dark .confirm-dialog-content {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

/* Confirm Header Overlay */
.confirm-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.15), transparent);
  pointer-events: none;
}

.dark .confirm-header-overlay {
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent);
}

/* Confirm Close Button */
.confirm-close-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.confirm-close-btn:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  transform: scale(1.1) !important;
}

.dark .confirm-close-btn {
  background: rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.dark .confirm-close-btn:hover {
  background: rgba(0, 0, 0, 0.3) !important;
}

/* Confirm Icon */
.confirm-icon {
  background: rgba(255, 255, 255, 0.2);
}

.dark .confirm-icon {
  background: rgba(0, 0, 0, 0.2);
}

/* Confirm Title - Theme adaptive */
.confirm-title {
  color: #0a0a0a !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.1);
}

.dark .confirm-title {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Confirm Cancel Button */
.confirm-cancel-btn:hover {
  border-color: var(--primary) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.dark .confirm-cancel-btn:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3) !important;
}

/* Confirm OK Button */
.confirm-ok-btn {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.confirm-ok-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2) !important;
}

.dark .confirm-ok-btn {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.dark .confirm-ok-btn:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5) !important;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}

/* Material Design 3 Button Styles */
.btn-filled {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-filled:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-md);
}

.btn-outlined {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outlined:hover {
  background-color: var(--surface-variant);
}

/* Surface & Card Styles */
.surface {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.surface:hover {
  box-shadow: var(--shadow-md);
}

/* Animations */
.fade-in {
  animation: fadeIn 0.3s ease;
}

.slide-in {
  animation: slideIn 0.3s ease;
}

/* Utilities */
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Background color utilities */
.bg-white {
  background-color: #ffffff;
}

/* Company Info Card Styles */
.company-info-card {
  position: relative;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.5);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: float 6s ease-in-out infinite;
  overflow: hidden;
}

.company-info-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg,
      #34d399 0%,
      #3b82f6 25%,
      #8b5cf6 50%,
      #ec4899 75%,
      #34d399 100%);
  background-size: 300% 300%;
  border-radius: inherit;
  z-index: -1;
  animation: gradient-rotate 4s ease infinite;
  opacity: 0.8;
}

.company-info-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: inherit;
  z-index: -1;
}

.company-info-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(52, 211, 153, 0.3),
    0 0 40px rgba(59, 130, 246, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.company-info-card:hover::before {
  opacity: 1;
  animation: gradient-rotate 2s ease infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes gradient-rotate {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.dark .company-info-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.dark .company-info-card::after {
  background: rgba(15, 23, 42, 0.6);
}

.dark .company-info-card:hover {
  box-shadow: 0 20px 60px rgba(52, 211, 153, 0.2),
    0 0 40px rgba(139, 92, 246, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

/* Ensure text in company-info-card is visible and has proper z-index */
.company-info-card .relative {
  position: relative;
  z-index: 1;
}

.company-info-card div[class*="text-"] {
  position: relative;
  z-index: 1;
}

/* Company text styling for better visibility */
.company-info-card .company-text,
.company-info-card div.company-text {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  background: none !important;
  background-clip: unset !important;
  -webkit-background-clip: unset !important;
  position: relative;
  z-index: 2;
}

.dark .company-info-card .company-text,
.dark .company-info-card div.company-text {
  color: #e5e7eb !important;
  -webkit-text-fill-color: #e5e7eb !important;
}



.bg-slate-50 {
  background-color: var(--bg-secondary);
}

.bg-slate-100 {
  background-color: var(--surface-variant);
}

.bg-slate-200 {
  background-color: #e5e7eb;
}

.bg-slate-700 {
  background-color: #374151;
}

.bg-slate-800 {
  background-color: #1f2937;
}

.bg-slate-900 {
  background-color: #111827;
}

.bg-slate-950 {
  background-color: var(--bg-primary);
}

.bg-indigo-50 {
  background-color: #eef2ff;
}

.bg-indigo-600 {
  background-color: var(--primary);
}

.bg-purple-600 {
  background-color: #9333ea;
}



.bg-purple-700 {
  background-color: #7e22ce;
}

/* Text color utilities */
.text-white {
  color: #ffffff;
}

.text-slate-900 {
  color: var(--text-primary);
}



.text-slate-500 {
  color: var(--text-tertiary);
}

.text-slate-400 {
  color: #9ca3af;
}



.text-indigo-600 {
  color: var(--primary);
}

.text-purple-400 {
  color: #c084fc;
}

.text-purple-300 {
  color: #d8b4fe;
}

/* Border color utilities */
.border-slate-100 {
  border-color: #f1f5f9;
}

.border-slate-200 {
  border-color: var(--border);
}

.border-slate-300 {
  border-color: #cbd5e1;
}

.border-slate-700 {
  border-color: #374151;
}

.border-slate-800 {
  border-color: #1f2937;
}

.border-indigo-600 {
  border-color: var(--primary);
}

.border-purple-600 {
  border-color: #9333ea;
}

/* Dark mode overrides for specific classes */
.dark .bg-white {
  background-color: var(--surface);
}

.dark .bg-slate-50 {
  background-color: var(--bg-secondary);
}

.dark .bg-slate-900 {
  background-color: var(--surface);
}

.dark .bg-slate-950 {
  background-color: var(--bg-primary);
}

.dark .text-slate-900 {
  color: var(--text-primary);
}

.dark .text-white {
  color: var(--text-primary);
}

.dark .text-slate-500 {
  color: var(--text-secondary);
}

.dark .text-slate-400 {
  color: var(--text-tertiary);
}



.dark .border-slate-200 {
  border-color: var(--border);
}

.dark .border-slate-700 {
  border-color: #374151;
}

.dark .border-slate-800 {
  border-color: #1f2937;
}

/* Hover states */
.hover\:bg-slate-100:hover {
  background-color: var(--surface-variant);
}

.hover\:bg-slate-200:hover {
  background-color: #e5e7eb;
}

.hover\:bg-slate-300:hover {
  background-color: #d1d5db;
}

.hover\:bg-slate-700:hover {
  background-color: #374151;
}

.hover\:bg-indigo-50:hover {
  background-color: #eef2ff;
}

.hover\:bg-indigo-100:hover {
  background-color: #e0e7ff;
}

.hover\:bg-indigo-700:hover {
  background-color: var(--primary-hover);
}

.hover\:bg-purple-950:hover {
  background-color: #1c1917;
}

.hover\:bg-purple-900:hover {
  background-color: #2e1065;
}

.hover\:bg-purple-700:hover {
  background-color: #7e22ce;
}

/* Dark mode hover overrides */
.dark .hover\:bg-slate-100:hover {
  background-color: var(--surface-variant);
}

.dark .hover\:bg-slate-200:hover {
  background-color: #374151;
}

.dark .hover\:bg-slate-700:hover {
  background-color: #4b5563;
}

.dark .hover\:bg-purple-950:hover {
  background-color: #1c1917;
}

/* Focus states */
.focus\:ring-indigo-500:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: var(--primary);
}

.focus\:ring-purple-500:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: #9333ea;
}

.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

/* Shadow utilities */
.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Transition utilities */
.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Transform utilities */
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.translate-x-full {
  --tw-translate-x: 100%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.translate-y-20 {
  --tw-translate-y: 5rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

/* Opacity utilities */
.opacity-90 {
  opacity: 0.9;
}

/* Display utilities */
.hidden {
  display: none;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.inline-flex {
  display: inline-flex;
}

.block {
  display: block;
}

/* Position utilities */
.sticky {
  position: sticky;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.inset-0 {
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
}

.top-0 {
  top: 0px;
}

.top-2 {
  top: 0.5rem;
}

.top-4 {
  top: 1rem;
}

.right-4 {
  right: 1rem;
}

.right-6 {
  right: 1.5rem;
}

.bottom-6 {
  bottom: 1.5rem;
}

.z-40 {
  z-index: 40;
}

.z-50 {
  z-index: 50;
}

/* Flexbox utilities */
.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.flex-1 {
  flex: 1 1 0%;
}

/* Gap utilities */
.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

/* Width and height utilities */
.w-full {
  width: 100%;
}

.w-12 {
  width: 3rem;
}

.w-6 {
  width: 1.5rem;
}

.h-full {
  height: 100%;
}

.h-12 {
  height: 3rem;
}

.h-6 {
  height: 1.5rem;
}

/* Padding and margin utilities */
.p-1 {
  padding: 0.25rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.pt-4 {
  padding-top: 1rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

.m-1 {
  margin: 0.25rem;
}

.ml-1 {
  margin-left: 0.25rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-16 {
  margin-top: 4rem;
}

.-mt-1 {
  margin-top: -0.25rem;
}

/* Typography utilities */
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}

.font-bold {
  font-weight: 700;
}

.font-medium {
  font-weight: 500;
}

.leading-relaxed {
  line-height: 1.625;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

/* Border utilities */
.border {
  border-width: 1px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

/* Overflow utilities */
.overflow-y-auto {
  overflow-y: auto;
}

.overflow-hidden {
  overflow: hidden;
}

/* Whitespace utilities */
.whitespace-nowrap {
  white-space: nowrap;
}

/* Main Content */
.main-content {
  width: 100%;
  background-color: var(--bg-secondary);
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

.main-content-wrapper {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .main-content-wrapper {
    padding: 0 4rem;
  }

  /* Ensure Search Input and Program Filter have equal width (1:1) in PC mode */
  .search-input,
  .program-filter {
    flex: 1;
    min-width: 0;
  }
}

.products-grid {
  display: grid;
  gap: 2.5rem;
}

/* View Toggle Styles */
.products-grid.list-view {
  display: grid;
  gap: 2.5rem;
}

.products-grid.list-view .product-group {
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .products-grid.list-view .product-group {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.products-grid.list-view .product-group:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  border-color: rgba(var(--primary), 0.3);
}

.dark .products-grid.list-view .product-group:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.products-grid.list-view .product-group-title {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid;
  border-image: linear-gradient(90deg, var(--primary), var(--secondary), transparent) 1;
  position: relative;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

  /* Grid Layout */
  display: grid;
  grid-template-columns: 1fr;
  width: calc(100% + 4rem);
  margin-left: -2rem;
  margin-right: -2rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.products-grid.list-view .product-group-title::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 2rem;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  animation: shimmerLine 3s ease-in-out infinite;
}

@keyframes shimmerLine {

  0%,
  100% {
    opacity: 1;
    transform: scaleX(1);
  }

  50% {
    opacity: 0.7;
    transform: scaleX(1.2);
  }
}

.products-grid.list-view .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
}

/* Table View Layout */
.products-grid.table-view {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.products-grid.table-view .product-group {
  margin-bottom: 1rem;
}

.products-grid.table-view .product-group-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* Desktop-specific table enhancements */
@media (min-width: 1024px) {
  .products-grid.table-view .product-group-title {
    font-size: 1.75rem;
  }
}

.products-grid.table-view .product-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.products-grid.table-view .product-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  background-color: var(--surface);
  width: 100%;
}

.products-grid.table-view .product-card-image,
.products-grid.table-view .product-card-image-placeholder {
  width: 0;
  height: 0;
  margin-right: 0;
  flex-shrink: 0;
  display: none;
}

.products-grid.table-view .product-card-info {
  flex: 1;
  text-align: left;
  margin-right: 1rem;
}

.products-grid.table-view .product-card-name {
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
  color: var(--text-primary);
}

.products-grid.table-view .product-card-price {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--primary);
}

.products-grid.table-view .product-card-button {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  margin-left: auto;
  width: auto;
  min-width: 80px;
}

/* View Toggle Buttons - Theme Aware */
#viewListBtn,
#viewTableBtn {
  background-color: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border-element);
  transition: all 0.2s ease;
}

#viewListBtn:hover,
#viewTableBtn:hover {
  background-color: var(--surface-variant);
  border-color: var(--primary);
}

#viewListBtn.bg-primary,
#viewTableBtn.bg-primary {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

#viewListBtn.bg-primary:hover,
#viewTableBtn.bg-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.surface {
  background-color: var(--surface);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 0;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.empty-state-text {
  color: var(--text-secondary);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, #047857 50%, var(--secondary) 100%);
  color: white;
  padding: 2rem 1rem;
  text-align: center;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.025em;
}

.hero-subtitle {
  font-size: 1.125rem;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto 1rem;
  font-weight: 500;
}

/* Hero Service Badge */
.hero-service-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero-service-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Dark mode for service badge */
.dark .hero-service-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.dark .hero-service-badge:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Hero Title Desktop (h1) and Mobile (p) Responsive */
.hero-title-desktop {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.025em;
  line-height: 1.3;
  display: none;
  /* Hidden on mobile by default */
}

/* Show h1 on desktop (768px and above) */
@media (min-width: 768px) {
  .hero-title-desktop {
    display: block;
  }
}

.hero-subtitle-mobile {
  display: block;
  /* Visible on mobile by default */
}

/* Hide p on desktop (768px and above) */
@media (min-width: 768px) {
  .hero-subtitle-mobile {
    display: none;
  }
}

/* Hero Badges */
.mb-6 {
  padding: 1.5rem 1rem;
  background: linear-gradient(to bottom, var(--surface) 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border);
}

.rounded-2xl {
  border-radius: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: linear-gradient(to bottom, white 0%, #f8fafc 100%);
}

.inline-flex.items-center.gap-2:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.mt-3.p-3 {
  border-radius: 1rem;
  background: linear-gradient(to bottom, white 0%, #f1f5f9 100%);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Company Info Card - Modern Design */
.company-info-card-modern {
  position: relative;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 32px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.company-info-card-modern::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(90deg, #047857 0%, #059669 33%, #10b981 66%, #667eea 100%);
  border-radius: 34px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.company-info-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.6);
}

.company-info-card-modern:hover::before {
  opacity: 1;
}

/* Company Icon Badge */
.company-icon-badge {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #047857 0%, #059669 50%, #10b981 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 20px rgba(4, 120, 87, 0.3);
  transition: transform 0.3s ease;
}

.company-info-card-modern:hover .company-icon-badge {
  transform: scale(1.05) rotate(5deg);
}

.company-icon {
  width: 32px;
  height: 32px;
  color: white;
}

/* Company Content */
.company-content {
  flex: 1;
  width: 100%;
}

.company-name-thai {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.company-name-en {
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #047857 0%, #059669 50%, #667eea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Registration Number */
.company-registration {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: rgba(4, 120, 87, 0.08);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.company-registration:hover {
  background: rgba(4, 120, 87, 0.15);
  transform: scale(1.02);
}

.registration-icon {
  width: 18px;
  height: 18px;
  color: #047857;
  flex-shrink: 0;
}

/* Verified Badge */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50px;
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  margin-top: 0.5rem;
  transition: all 0.3s ease;
  animation: pulse-soft 3s infinite;
}

@keyframes pulse-soft {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  }

  50% {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
  }
}

.verified-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  animation: none;
}

.verified-icon {
  width: 18px;
  height: 18px;
  color: white;
  flex-shrink: 0;
}

.verified-text {
  letter-spacing: 0.02em;
}

/* Dark Mode Styles */
.dark .company-info-card-modern {
  background: rgba(31, 41, 55, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.dark .company-info-card-modern:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  background: rgba(31, 41, 55, 0.5);
  border-color: rgba(255, 255, 255, 0.25);
}

.dark .company-name-thai {
  color: var(--text-secondary);
}

.dark .company-name-en {
  background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dark .company-registration {
  background: rgba(16, 185, 129, 0.15);
  color: var(--text-secondary);
}

.dark .company-registration:hover {
  background: rgba(16, 185, 129, 0.25);
}

.dark .registration-icon {
  color: #10b981;
}

/* Responsive */
@media (max-width: 768px) {
  .company-info-card-modern {
    padding: 1.5rem 1rem;
  }

  .company-icon-badge {
    width: 56px;
    height: 56px;
  }

  .company-icon {
    width: 28px;
    height: 28px;
  }

  .company-name-en {
    font-size: 1.25rem;
  }

  .company-registration {
    font-size: 0.8125rem;
  }
}

.text-lg.text-slate-500 {
  color: var(--text-secondary);
  font-weight: 600;
}

.dark .rounded-2xl {
  background: linear-gradient(to bottom, var(--surface) 0%, #1e293b 100%);
  border: 1px solid var(--border);
}

.text-2xl.font-extrabold {
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark .mt-3.p-3 {
  background: linear-gradient(to bottom, var(--surface) 0%, #1e293b 100%);
  border: 1px solid var(--border);
}

/* Define text colors for light and dark modes */
.text-slate-600 {
  color: #000000;
  /* Black in light mode */
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
  /* Subtle shadow for better visibility */
}

.text-gray-300 {
  color: #000000;
  /* Black in light mode */
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
  /* Subtle shadow for better visibility */
}

/* Override colors when dark mode is active */
.dark .text-slate-600 {
  color: var(--text-primary);
  /* White text in dark mode for better visibility */
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
  /* Subtle shadow for better visibility */
}

.dark .text-gray-300 {
  color: #d1d5db;
  /* Light gray in dark mode */
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
  /* Subtle shadow for better visibility */
}

.inline-flex.items-center.gap-2 {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #ec4899 100%);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.popular-list li {
  margin-bottom: 0.5rem;
}

.popular-list li:last-child {
  margin-bottom: 0;
}

/* App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, var(--primary) 0%, #047857 100%);
  box-shadow: var(--shadow-lg);
  border-bottom: none;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  max-width: 100%;
}

.logo-section {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-image {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  object-fit: contain;
  box-shadow: var(--shadow-sm);
}

.logo-text {
  display: flex;
  flex-direction: column;
  margin-left: 0.5rem;
}

.logo-title {
  font-size: 1.5rem;
  /* Increased from 1.125rem to 1.5rem (24px) */
  font-weight: 800;
  color: white;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.about-link {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  margin-top: 0.25rem;
}

.about-link:hover {
  color: white;
  text-decoration: underline;
}

.desktop-nav {
  flex: 1;
  max-width: 50%;
  margin: 0 1rem;
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-account-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-right: 1rem;
  /* Add some space between user account and logo */
}

/* Desktop Navigation */
.search-section-container {
  padding: 1rem;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}

.search-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.search-section>div:first-child {
  flex: 1 1 100%;
  min-width: 0;
}

.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: var(--surface);
  color: var(--text-primary);
  font-size: 1rem;
  min-width: 0;
  /* Allow flex item to shrink */
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.program-filter {
  flex: 1;
  /* Make it equal width to search input */
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: var(--surface);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  min-width: 0;
  /* Allow flex item to shrink */
}

.search-section>div:last-child {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0.75rem 0 0 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.program-filter:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Mobile-specific styles for search section */
@media (max-width: 768px) {
  .search-section-container {
    padding: 0.75rem 1rem;
  }

  .search-section {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .search-input {
    width: 100%;
    min-width: unset;
    padding: 0.75rem;
  }

  .program-filter {
    width: 100%;
    min-width: unset;
    padding: 0.75rem;
  }
}

/* Medium screen adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .search-input-container {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* Ensure search input container wraps properly */
.search-input-container {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.view-toggle-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background-color: var(--surface-variant);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.view-toggle-btn:hover {
  background-color: var(--surface-variant);
}

/* Action Buttons */
.action-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Selector */
.theme-selector {
  position: relative;
}

.theme-toggle-btn {
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: var(--surface-variant);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-size: 1.25rem;
}

.theme-toggle-btn:hover {
  background-color: var(--surface-variant);
}

.theme-dropdown {
  position: absolute;
  right: 0;
  margin-top: 5rem;
  /* Increased from 0.25rem to 0.75rem for more spacing */
  width: 10rem;
  background-color: var(--surface);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 0.25rem;
  display: none;
  z-index: 50;
}

.theme-dropdown.active {
  display: block;
}

/* Theme Option Styles */
.theme-option {
  width: 100%;
  text-align: left;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 0.25rem;
}

.theme-option:hover {
  background-color: var(--surface-variant);
}

/* Theme Option States */
.theme-option-active {
  background-color: var(--surface-variant);
}

.theme-option-selected {
  background-color: var(--surface-variant);
}

/* Cart Button */
.cart-btn {
  position: relative;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow: hidden;
}

.cart-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cart-btn:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.cart-btn:hover::before {
  opacity: 1;
}

.cart-count {
  margin-left: 0.25rem;
}

/* Mobile Cart Button */
.mobile-cart-btn {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    font-size: 1rem;
  }
}

/* Auth Button */
.auth-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background-color: #3b82f6;
  /* Blue color */
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #3b82f6;
}

.auth-btn:hover {
  background-color: #2563eb;
  /* Darker blue on hover */
  border-color: #2563eb;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 0.5rem;
  background-color: var(--surface-variant);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-size: 1.5rem;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background-color: var(--border);
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--surface);
  z-index: 200;
  padding: 1rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}


.view-toggle-btn {
  padding: 0.5rem;
  background-color: var(--surface-variant);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-toggle-btn:hover {
  background-color: var(--border);
}

.mobile-view-toggle {
  margin-top: auto;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: var(--surface-variant);
  color: var(--text-primary);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile Sidebar Backdrop */
.mobile-sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 199;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.mobile-sidebar-backdrop:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Mobile Sidebar - Enhanced Modern Design */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 200;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15), 0 0 60px rgba(0, 0, 0, 0.1);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-sidebar:not(.hidden) {
  transform: translateX(0);
  animation: slideInLeft 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0.8;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.mobile-sidebar-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.mobile-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1rem;
  background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  animation: headerGlow 0.6s ease-out;
}

@keyframes headerGlow {
  0% {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }

  50% {
    box-shadow: 0 4px 24px rgba(5, 150, 105, 0.3);
  }

  100% {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }
}

/* Decorative gradient overlay for header */
.mobile-sidebar-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  animation: fadeInOverlay 0.8s ease-out forwards;
}

@keyframes fadeInOverlay {
  to {
    opacity: 1;
  }
}

.close-sidebar-btn {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.close-sidebar-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05) rotate(90deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.close-sidebar-btn:active {
  transform: scale(0.95) rotate(90deg);
}

/* Mobile sidebar body */
.mobile-sidebar-body {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem;
  overflow-y: auto;
  flex: 1;
  background: var(--surface);
  position: relative;
}

/* Custom scrollbar for sidebar */
.mobile-sidebar-body::-webkit-scrollbar {
  width: 6px;
}

.mobile-sidebar-body::-webkit-scrollbar-track {
  background: transparent;
}

.mobile-sidebar-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
  transition: background 0.3s ease;
}

.mobile-sidebar-body::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

.mobile-user-section {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--surface-variant) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s ease-out 0.1s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-user-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #059669, #10b981, #34d399);
  opacity: 0.8;
}

.mobile-user-section .user-info {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.mobile-user-section .user-email {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  padding: 0.5rem 0;
}

.mobile-user-section .user-credits {
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--surface);
  padding: 0.625rem 0.875rem;
  border-radius: 0.625rem;
  display: inline-block;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

/* Enhanced styles for prominent user credits display */
.user-credits-prominent {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 8px 16px rgba(5, 150, 105, 0.25), 0 2px 8px rgba(5, 150, 105, 0.15);
  margin: 0.75rem 0;
  border: 2px solid rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-credits-prominent::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

.credits-label {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.credits-amount {
  color: white;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.mobile-user-section .mobile-user-actions {
  display: flex;
  gap: 0.625rem;
  margin-top: 0.75rem;
}

.mobile-user-section .logout-btn {
  flex: 1;
  padding: 0.875rem;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  position: relative;
  overflow: hidden;
}

.mobile-user-section .logout-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.mobile-user-section .logout-btn:hover::before {
  width: 300px;
  height: 300px;
}

.mobile-user-section .logout-btn:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.mobile-user-section .logout-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.mobile-login-prompt {
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-variant) 100%);
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
  animation: fadeInUp 0.5s ease-out 0.1s both;
}

.mobile-login-prompt p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.mobile-login-prompt .auth-btn,
.mobile-login-prompt .topup-btn {
  width: 100%;
  padding: 0.875rem;
  margin-bottom: 0.625rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.mobile-login-prompt .auth-btn::before,
.mobile-login-prompt .topup-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.mobile-login-prompt .auth-btn:hover::before,
.mobile-login-prompt .topup-btn:hover::before {
  width: 300px;
  height: 300px;
}

.mobile-login-prompt .auth-btn:hover,
.mobile-login-prompt .topup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.mobile-login-prompt .topup-btn {
  margin-bottom: 0;
}

/* Mobile Search and Filter Section */
.mobile-search-filter-section {
  display: none;
}

.mobile-search-section {
  display: none;
}

.mobile-filter-section {
  display: none;
}

.mobile-search-filter-section .program-filter {
  width: 100%;
}

.mobile-navigation {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1.25rem;
  animation: fadeInUp 0.5s ease-out 0.2s both;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.125rem;
  border-radius: 0.875rem;
  background: var(--surface-variant);
  color: var(--text-primary);
  border: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mobile-nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, var(--primary), transparent);
  transition: width 0.3s ease;
  opacity: 0.15;
}

.mobile-nav-item:hover::before {
  width: 100%;
}

.mobile-nav-item:hover {
  background: var(--border);
  border-color: var(--primary);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-nav-item:active {
  transform: translateX(2px) scale(0.98);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mobile-nav-item span {
  font-size: 1.35rem;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.mobile-nav-item:hover span {
  transform: scale(1.15);
}

/* Hide desktop nav on mobile */
@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .header-content {
    padding: 0.75rem;
  }

  .logo-image {
    width: 2rem;
    height: 2rem;
    margin-right: 0.5rem;
  }

  .logo-title {
    font-size: 1.25rem;
    /* Increased from 1rem to 1.25rem (20px) */
  }

  .combined-user-section {
    gap: 0.5rem;
  }

  .combined-user-section .cart-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    background-color: #f97316;
    /* Orange color */
    border: none;
  }

  .combined-user-section .cart-btn:hover {
    background-color: #ea580c;
    /* Darker orange on hover */
  }

  .auth-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    background-color: #3b82f6;
    /* Blue color */
    border: 1px solid #3b82f6;
  }

  .auth-btn:hover {
    background-color: #2563eb;
    /* Darker blue on hover */
    border-color: #2563eb;
  }

  .topup-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    background-color: #10b981;
    /* Green color */
    border: 1px solid #10b981;
  }

  .topup-btn:hover {
    background-color: #059669;
    /* Darker green on hover */
    border-color: #059669;
  }

  .mobile-menu-toggle {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    font-size: 1.5rem;
  }

  /* Center logo section on mobile */
  .logo-section {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
  }

  /* Adjust header content for centered logo */
  .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }
}

@media (min-width: 1025px) {
  .header-content {
    padding: 0.75rem 1.5rem;
  }

  .logo-image {
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 0.75rem;
  }

  .search-section {
    gap: 0.75rem;
  }

  .search-input {
    min-width: 12rem;
  }

  .program-filter {
    min-width: 10rem;
  }

  /* Hide mobile sidebar toggle on desktop */
  .mobile-menu-toggle {
    display: none;
  }
}

/* Dark mode overrides */
.dark .app-header {
  /* Dark-mode header: deep gray gradient similar to Hero Badges' dark backgrounds */
  background: linear-gradient(135deg, #0b1220 0%, #111827 100%);
  border-bottom: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}

/* Dark-mode hero: deep gradient and subtle radial overlay to match Hero Badges feel */
.dark .hero-section {
  background: linear-gradient(135deg, #071224 0%, #0b1220 50%, #0f1724 100%);
  color: var(--text-primary);
}

.dark .hero-section::before {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
}

.dark .theme-toggle-btn {
  background-color: var(--surface-variant);
  color: var(--text-secondary);
}

.dark .theme-toggle-btn:hover {
  background-color: var(--surface-variant);
}

.dark .theme-dropdown {
  background-color: var(--surface);
  border: 1px solid var(--border);
}

.dark .theme-option:hover {
  background-color: var(--surface-variant);
}

.dark .theme-option-active {
  background-color: var(--surface-variant);
}

.dark .theme-option-selected {
  background-color: var(--surface-variant);
}

.dark .combined-user-section .cart-btn {
  background-color: #f97316;
  /* Orange color */
  color: white;
}

.dark .combined-user-section .cart-btn:hover {
  background-color: #ea580c;
  /* Darker orange on hover */
}

.dark .auth-btn {
  background-color: #3b82f6;
  /* Blue color */
  color: white;
  border: 1px solid #3b82f6;
}

.dark .auth-btn:hover {
  background-color: #2563eb;
  /* Darker blue on hover */
  border-color: #2563eb;
}

.dark .topup-btn {
  background-color: #10b981;
  /* Green color */
  color: white;
  border: 1px solid #10b981;
}

.dark .topup-btn:hover {
  background-color: #059669;
  /* Darker green on hover */
  border-color: #059669;
}

.dark .mobile-user-section {
  background-color: var(--surface-variant);
}

.dark .mobile-user-section .user-credits {
  background-color: var(--surface);
  color: var(--text-secondary);
}

.dark .user-credits-prominent {
  background: linear-gradient(135deg, #0b1220, #111827);
  border: 2px solid rgba(52, 211, 153, 0.3);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.dark .credits-label {
  color: rgba(255, 255, 255, 0.8);
}

.dark .credits-amount {
  color: #34d399;
}

.dark .mobile-login-prompt {
  background-color: var(--surface);
}

.dark .search-input {
  background-color: var(--surface);
  color: var(--text-primary);
}

.dark .program-filter {
  background-color: var(--surface);
  color: var(--text-primary);
}

.dark .mobile-menu-toggle {
  background-color: var(--surface-variant);
}

.dark .mobile-sidebar-backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dark .mobile-sidebar {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(17, 24, 39, 0.95) 100%);
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.5), 0 0 80px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.dark .mobile-sidebar-header {
  background: linear-gradient(135deg, #0b1220 0%, #111827 50%, #1f2937 100%);
  border-bottom: 1px solid rgba(52, 211, 153, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.dark .mobile-sidebar-header::before {
  background: radial-gradient(circle at top right, rgba(52, 211, 153, 0.15) 0%, transparent 60%);
}

.dark .close-sidebar-btn {
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.25);
}

.dark .close-sidebar-btn:hover {
  background: rgba(52, 211, 153, 0.25);
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: 0 4px 16px rgba(52, 211, 153, 0.3);
}

.dark .mobile-user-section {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.6) 0%, rgba(17, 24, 39, 0.8) 100%);
  border-color: rgba(52, 211, 153, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.dark .mobile-user-section::before {
  background: linear-gradient(90deg, #34d399, #10b981, #059669);
}

.dark .mobile-nav-item {
  background: rgba(31, 41, 55, 0.6);
  color: var(--text-primary);
  border-color: rgba(52, 211, 153, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dark .mobile-nav-item::before {
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.3), transparent);
}

.dark .mobile-nav-item:hover {
  background: rgba(31, 41, 55, 0.8);
  border-color: rgba(52, 211, 153, 0.4);
  box-shadow: 0 4px 16px rgba(52, 211, 153, 0.2);
}

/* Product Card Styles - Enhanced for PC */
.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem;
  border: 2px solid transparent;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06),
    0 2px 4px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.dark .product-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Gradient overlay on hover */
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  padding: 2px;
  background: linear-gradient(135deg, var(--primary), var(--secondary), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.product-card:hover::before {
  opacity: 1;
}

/* Favorite Icon Styles */
.product-card-favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.dark .product-card-favorite {
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Hide favorite icon in table view mode */
.table-view .product-card-favorite {
  display: none;
}

/* Hide favorite icon when user is not logged in */
body:not(.logged-in) .product-card-favorite {
  display: none;
}

.product-card-favorite:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 4px 12px rgba(255, 66, 79, 0.3);
}

.product-card-favorite svg {
  width: 18px;
  height: 15px;
  transition: all 0.3s ease;
  display: block;
  flex-shrink: 0;
}

.product-card-favorite.favorited {
  background: linear-gradient(135deg, #FF6B6B, #FF424F);
}

.product-card-favorite.favorited svg path {
  fill: white;
  stroke: white;
}

.product-card-favorite:not(.favorited):hover svg path {
  stroke: #FF424F;
  stroke-width: 2;
}

.table-view .product-card {
  align-items: flex-start;
  text-align: left;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12),
    0 8px 16px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(var(--primary), 0.1);
}

.dark .product-card:hover {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5),
    0 8px 16px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.product-card-image {
  width: 100%;
  max-width: 180px;
  height: auto;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dark .product-card-image {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.product-card:hover .product-card-image {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.product-card-image-placeholder {
  width: 100%;
  max-width: 180px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface-variant) 0%, rgba(255, 255, 255, 0.5) 100%);
  border-radius: 0.75rem;
  border: 2px dashed var(--border);
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.product-card-info {
  width: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card-info-wrapper {
  width: 100%;
  flex-grow: 1;
  display: block;
}

.product-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: -0.3px;
}

.product-card:hover .product-card-name {
  color: var(--primary);
}

.product-card-original-price {
  font-size: 1rem;
  color: #ef4444;
  text-decoration: line-through;
  font-style: italic;
  margin-bottom: 0.25rem;
  opacity: 0.8;
}

.list-view-price-container .product-card-original-price {
  margin-bottom: 0 !important;
}

.product-card-price {
  font-size: 1.625rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.list-view-price-container .product-card-price {
  margin-bottom: 0 !important;
}

.product-card-price.text-secondary {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-card-button {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-top: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.product-card-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.product-card-button:hover::before {
  width: 300px;
  height: 300px;
}

.product-card-button:hover {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* List View Price Container - Force center alignment */
.list-view-price-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.25rem !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  height: auto !important;
}

.list-view-price-container .product-card-original-price,
.list-view-price-container .list-view-original {
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  width: 100% !important;
}

.list-view-price-container .product-card-price,
.list-view-price-container .list-view-current {
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  width: 100% !important;
}

.product-card-info-wrapper .list-view-price-container {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Desktop-specific enhancements */
@media (min-width: 1024px) {
  .product-card {
    padding: 2rem;
  }

  .product-card-name {
    font-size: 1.125rem;
  }

  .product-card-price {
    font-size: 1.75rem;
  }

  .product-card-button {
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
  }

  /* Override for table view to keep buttons small */

}

/* Table view specific styles - apply on all screens */
.table-view .product-card-button {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  min-width: 80px;
}

.table-view .product-card-original-price {
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
}

.table-view .product-card-price {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

/* Base Product Detail Panel Styles - Slide Panel for all devices */
.product-detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 24rem;
  background-color: var(--surface);
  box-shadow: var(--shadow-xl);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 40;
  overflow-y: auto;
  border-left: 1px solid var(--border);
}

/* Slide Panel Mode (Default for all devices) */
.product-detail-panel.slide-panel {
  background: linear-gradient(to bottom, var(--surface) 0%, var(--surface-variant) 100%);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 1001;
}

.product-detail-panel.slide-panel.active {
  transform: translateX(0);
}

/* Base styles for slide panel */
.product-detail-header {
  position: sticky;
  top: 0;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.product-detail-main {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.product-detail-title {
  font-weight: bold;
  margin: 0;
  color: var(--text-primary);
  font-size: 1.25rem;
}

.product-detail-close-btn {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: var(--surface);
}

.product-detail-close-btn:hover {
  background-color: var(--surface-variant);
  color: var(--text-primary);
  transform: scale(1.1);
}

.product-detail-close-btn-top {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  transition: all 0.2s ease;
  z-index: 20;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: var(--surface);
}

.product-detail-close-btn-top:hover {
  background-color: var(--surface-variant);
  color: var(--text-primary);
  transform: scale(1.1);
}

.product-detail-content {
  position: relative;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 3rem;
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.product-detail-program {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-detail-name {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
  color: var(--text-primary);
}

.product-detail-price-wrap {
  background-color: var(--surface-variant);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 0.5rem;
}

.product-detail-price-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.product-detail-price {
  font-size: 1.875rem;
  font-weight: bold;
  color: var(--primary);
  margin: 0;
}

.product-detail-original-price {
  font-size: 1.25rem;
  color: #ef4444;
  text-decoration: line-through;
  font-style: italic;
  position: relative;
  display: block;
}

.product-detail-image {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  display: none;
  margin-bottom: 1rem;
}

.product-detail-image.visible {
  display: block;
}

.product-detail-image-container {
  display: block;
  margin-bottom: 1rem;
}

.product-detail-instructions-wrap {
  background-color: #dbeafe;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 0.5rem;
}

.dark .product-detail-instructions-wrap {
  background-color: #1e3a8a;
}

.product-detail-instructions-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.product-detail-instructions {
  font-size: 0.875rem;
  color: #1e40af;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dark .product-detail-instructions {
  color: #93c5fd;
}

.product-detail-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.product-detail-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.product-detail-button-primary {
  flex: 1;
  background-color: var(--primary);
  color: white;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-size: 1rem;
}

.product-detail-button-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.product-detail-button-secondary {
  flex: 1;
  background-color: var(--surface-variant);
  padding: 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
}

.product-detail-button-secondary:hover {
  background-color: var(--surface-variant);
  transform: translateY(-2px);
}

.product-detail-message {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  text-align: center;
}

/* Product Detail Form Elements */
.product-detail-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.product-detail-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.product-detail-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: var(--surface);
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.product-detail-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.product-detail-input::placeholder {
  color: var(--text-tertiary);
}

/* Dark mode overrides */
.dark .product-detail-panel {
  background-color: var(--surface);
}

.dark .product-detail-header {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}

.dark .product-detail-button-secondary {
  background-color: var(--surface-variant);
}

.dark .product-detail-button-secondary:hover {
  background-color: #4b5563;
}

/* Links in product detail instructions */
.product-detail-instructions a {
  color: #3b82f6;
  text-decoration: underline;
  font-weight: 500;
}

.product-detail-instructions a:hover {
  color: #2563eb;
}

.dark .product-detail-instructions a {
  color: #60a5fa;
}

.dark .product-detail-instructions a:hover {
  color: #3b82f6;
}

.dark .product-detail-panel.modal .product-detail-input:focus {
  border-color: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
}

/* User Account Section */
.user-account-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-account-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem;
  background-color: var(--surface-variant);
  border-radius: 0.5rem;
  min-width: 180px;
}

.user-account-email {
  font-weight: 500;
  color: #ffffff !important;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
  /* Subtle shadow for better visibility */
}

.user-account-credits {
  font-size: 1rem;
  /* Glassmorphism credits badge */
  display: inline-block;
  padding: 0.5rem 1rem;
  font-weight: 600;
  color: var(--text-primary) !important;
  background: rgba(4, 120, 87, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(4, 120, 87, 0.3);
  box-shadow: 0 4px 15px rgba(4, 120, 87, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.user-account-credits::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(4, 120, 87, 0.2), rgba(5, 150, 105, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.user-account-actions {
  display: flex;
  gap: 0.5rem;
}

.user-account-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.topup-btn {
  padding: 0.5rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.topup-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.topup-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.topup-btn:hover::before {
  opacity: 1;
}

.history-btn {
  padding: 0.5rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.history-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.history-btn:hover {
  background: linear-gradient(135deg, #764ba2 0%, #564194 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.history-btn:hover::before {
  opacity: 1;
}

.logout-btn {
  background-color: #ef4444;
  color: white;
}

.logout-btn:hover {
  background-color: #dc2626;
}

.auth-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background-color: #3b82f6;
  /* Blue color */
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #3b82f6;
}

.auth-btn:hover {
  background-color: #2563eb;
  /* Darker blue on hover */
  border-color: #2563eb;
}

.user-badge {
  display: inline-block;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.vip-badge {
  background-color: #c084fc;
  color: white;
}

.agent-badge {
  background-color: #fbbf24;
  color: #1f2937;
}

/* Guest Actions */
.guest-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Logout Section */
.logout-section {
  display: flex;
  align-items: center;
}

.combined-user-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-right: 1.5rem;
  /* Add more space between user section and theme toggle */
}

.combined-user-section .user-account-email {
  font-weight: 500;
  color: #ffffff !important;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
  /* Subtle shadow for better visibility */
  white-space: nowrap;
}

/* Ensure email is white across all contexts (desktop, mobile, combined sections) */
.user-account-email,
.combined-user-section .user-account-email,
.mobile-user-section .user-account-email {
  color: #ffffff !important;
}

.combined-user-section .user-account-credits {
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  font-weight: 600;
  color: #ffffff !important;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  white-space: nowrap;
  height: auto;
}

/* Mobile / sidebar variant */
.mobile-user-section .user-account-credits {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  font-weight: 700;
  color: #ffffff !important;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Hover emphasis */
.user-account-credits:hover,
.combined-user-section .user-account-credits:hover,
.mobile-user-section .user-account-credits:hover {
  transform: translateY(-2px);
  background: rgba(4, 120, 87, 0.25);
  border-color: rgba(4, 120, 87, 0.5);
  box-shadow: 0 6px 20px rgba(4, 120, 87, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.user-account-credits:hover::before,
.combined-user-section .user-account-credits:hover::before,
.mobile-user-section .user-account-credits:hover::before {
  opacity: 1;
}

/* Dark-mode tweak: ensure gradient still visible and contrast good */
.dark .user-account-credits,
.dark .combined-user-section .user-account-credits,
.dark .mobile-user-section .user-account-credits {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: var(--text-primary) !important;
}

.dark .user-account-credits::before,
.dark .combined-user-section .user-account-credits::before,
.dark .mobile-user-section .user-account-credits::before {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(16, 185, 129, 0.15));
}

.combined-user-section .cart-btn {
  position: relative;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
}

.combined-user-section .cart-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.combined-user-section .cart-btn:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.combined-user-section .cart-btn:hover::before {
  opacity: 1;
}

.combined-user-section .user-account-actions {
  display: flex;
  gap: 0.5rem;
}

.combined-user-section .user-account-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.combined-user-section .guest-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.combined-user-section .guest-placeholder {
  color: #ffffff;
  font-size: 0.875rem;
}

/* =============== Modern User Dropdown Styles =============== */
.user-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-profile:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.user-profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.user-profile:hover img {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.user-info h4 {
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.user-role {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.user-profile i.fa-chevron-down {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

.user-profile.active i.fa-chevron-down {
  transform: rotate(180deg);
}

/* User Menu Dropdown */
.user-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  min-width: 280px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.dark .user-menu {
  background: rgba(17, 24, 39, 0.98);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.user-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* User Menu Header */
.user-menu-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--primary) 0%, #047857 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-menu-header img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.user-menu-header div {
  flex: 1;
  min-width: 0;
}

.user-menu-header h4 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.user-menu-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* User Menu Divider */
.user-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

/* User Menu Item */
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.user-menu-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  transform: translateX(-100%);
  transition: transform 0.2s ease;
}

.user-menu-item:hover {
  background: var(--surface-variant);
  color: var(--primary);
}

.user-menu-item:hover::before {
  transform: translateX(0);
}

.user-menu-item i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.user-menu-item:hover i {
  opacity: 1;
}

.user-menu-item span {
  flex: 1;
}

/* Logout Item Special Styling */
.logout-item {
  color: var(--danger);
}

.logout-item:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.dark .logout-item:hover {
  background: rgba(239, 68, 68, 0.15);
}

.logout-item::before {
  background: var(--danger);
}

/* Animation for menu items */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-menu.active .user-menu-item {
  animation: slideInDown 0.3s ease forwards;
}

.user-menu.active .user-menu-item:nth-child(1) {
  animation-delay: 0.05s;
}

.user-menu.active .user-menu-item:nth-child(2) {
  animation-delay: 0.1s;
}

.user-menu.active .user-menu-item:nth-child(3) {
  animation-delay: 0.15s;
}

.user-menu.active .user-menu-item:nth-child(4) {
  animation-delay: 0.2s;
}

.user-menu.active .user-menu-item:nth-child(5) {
  animation-delay: 0.25s;
}

/* Responsive - Hide user dropdown on mobile */
@media (max-width: 1024px) {
  .user-dropdown {
    display: none;
  }
}

/* Avatar-only user profile style */
.user-profile-avatar-only {
  padding: 0.375rem 0.75rem 0.375rem 0.375rem;
  min-width: auto;
  height: 48px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
}

.user-profile-avatar-only:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.user-profile-avatar-only.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.user-profile-avatar-only img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.user-profile-avatar-only:hover img {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* User Badge next to Avatar */
.user-badge-overlay {
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.user-badge-overlay.vip-badge {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
  color: white;
}

.user-badge-overlay.agent-badge {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1f2937;
}

.user-badge-overlay.member-badge {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  color: white;
}

.user-profile-avatar-only:hover .user-badge-overlay {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Theme Submenu */
.theme-submenu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--surface-variant);
  margin: 0.25rem 0;
  border-radius: 8px;
}

.theme-submenu.active {
  max-height: 200px;
  opacity: 1;
  padding: 0.25rem 0;
}

.dark .theme-submenu {
  background: rgba(0, 0, 0, 0.2);
}

.theme-submenu-item {
  padding-left: 3rem !important;
  font-size: 0.875rem;
}

.theme-submenu-item.active {
  background: var(--primary);
  color: #ffffff !important;
}

.theme-submenu-item.active::before {
  background: #ffffff;
}

.theme-submenu-item.active i {
  color: #ffffff;
  opacity: 1;
}

.dark .theme-submenu-item.active {
  background: var(--primary);
  color: #ffffff !important;
}

/* Theme menu item icon positioning */
#themeMenuItem {
  position: relative;
}

#themeIconInMenu {
  position: absolute;
  right: 1.25rem;
  font-size: 1.125rem;
}

/* Scroll to Top Button */
.scroll-to-top-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
}

.scroll-to-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.scroll-to-top-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
}

.scroll-to-top-btn:active {
  transform: translateY(-1px);
}

/* Make the button more prominent on dark backgrounds */
.dark .scroll-to-top-btn {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.scroll-to-top-icon {
  width: 1.5rem;
  height: 1.5rem;
  stroke-width: 2.5;
}

/* Animation for scroll to top button */
@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  50% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* Footer Card Styles */
.footer-card {
  padding: 1.25rem;
  border-radius: 1rem;
  background-color: white;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.footer-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.dark .footer-card {
  background-color: var(--surface);
}

.footer-card h4 {
  color: var(--text-primary);
}

/* Modern Footer Styles */
.footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(229, 231, 235, 0.5);
}

/* Animated Background Gradient */
.footer-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      #f9fafb 0%,
      #f3f4f6 25%,
      #e5e7eb 50%,
      #f3f4f6 75%,
      #f9fafb 100%);
  background-size: 400% 400%;
  animation: footerGradient 15s ease infinite;
  opacity: 0.5;
}

.dark .footer {
  border-top: 1px solid rgba(55, 65, 81, 0.5);
}

.dark .footer-bg-gradient {
  background: linear-gradient(135deg,
      #1f2937 0%,
      #111827 25%,
      #0f172a 50%,
      #111827 75%,
      #1f2937 100%);
  background-size: 400% 400%;
  animation: footerGradient 15s ease infinite;
  opacity: 0.8;
}

@keyframes footerGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Footer Logo */
.footer-logo-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(5, 150, 105, 0.3);
  animation: float 3s ease-in-out infinite;
}

.footer-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: white;
  padding: 8px;
}

.dark .footer-logo {
  background: #1f2937;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Footer Title with Animation */
.footer-title {
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--primary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

.dark .footer-title {
  background: linear-gradient(135deg, #34d399, #10b981, #34d399);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Social Media Links */
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(5, 150, 105, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.footer-social-link:hover {
  transform: translateY(-5px) scale(1.1);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(5, 150, 105, 0.3);
}

.footer-social-link:hover span {
  transform: scale(1.2);
  filter: brightness(1.2);
}

.dark .footer-social-link {
  background: rgba(31, 41, 55, 0.8);
  border-color: rgba(52, 211, 153, 0.3);
}

.dark .footer-social-link:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
  border-color: #34d399;
  box-shadow: 0 10px 30px rgba(52, 211, 153, 0.4);
}

/* Modern Footer Cards */
.footer-card-modern {
  position: relative;
  padding: 2rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(5, 150, 105, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.footer-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-card-modern:hover::before {
  transform: scaleX(1);
}

.footer-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(5, 150, 105, 0.15);
  border-color: rgba(5, 150, 105, 0.3);
}

.dark .footer-card-modern {
  background: rgba(31, 41, 55, 0.8);
  border-color: rgba(52, 211, 153, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.dark .footer-card-modern:hover {
  box-shadow: 0 20px 60px rgba(52, 211, 153, 0.2);
  border-color: rgba(52, 211, 153, 0.3);
}

/* Footer Card Icon */
.footer-card-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.25);
  transition: all 0.3s ease;
}

.footer-card-modern:hover .footer-card-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 32px rgba(5, 150, 105, 0.35);
}

.footer-card-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.dark .footer-card-icon-wrapper {
  background: linear-gradient(135deg, #34d399, #10b981);
}

/* Footer Card Title */
.footer-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.25rem;
  letter-spacing: 0.025em;
  transition: color 0.3s ease;
}

.dark .footer-card-title {
  color: #f9fafb;
}

/* Footer Card List */
.footer-card-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 0.5rem;
  margin: -0.5rem;
}

.footer-list-item:hover {
  background: rgba(5, 150, 105, 0.05);
  transform: translateX(5px);
}

.dark .footer-list-item:hover {
  background: rgba(52, 211, 153, 0.1);
}

/* Footer List Icons */
.footer-list-icon {
  flex-shrink: 0;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.125rem;
}

.footer-list-icon.success {
  color: #10b981;
}

.footer-list-icon.primary {
  color: #3b82f6;
}

.footer-list-icon.warning {
  color: #f59e0b;
}

.footer-list-icon.contact {
  color: #8b5cf6;
}

.footer-list-icon.highlight {
  color: #ec4899;
  font-size: 1.25rem;
}

.footer-list-item:hover .footer-list-icon {
  transform: scale(1.2);
}

.dark .footer-list-icon.success {
  color: #34d399;
}

.dark .footer-list-icon.primary {
  color: #60a5fa;
}

.dark .footer-list-icon.warning {
  color: #fbbf24;
}

.dark .footer-list-icon.contact {
  color: #a78bfa;
}

.dark .footer-list-icon.highlight {
  color: #f472b6;
}

/* Footer List Text */
.footer-list-text {
  color: #4b5563;
  font-size: 0.9375rem;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.footer-list-item:hover .footer-list-text {
  color: #1f2937;
}

.dark .footer-list-text {
  color: #d1d5db;
}

.dark .footer-list-item:hover .footer-list-text {
  color: #f9fafb;
}

/* Highlighted Text */
.footer-list-text-highlight {
  color: #059669;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.6;
  background: linear-gradient(135deg, #059669, #10b981);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
}

.footer-list-item:hover .footer-list-text-highlight {
  filter: brightness(1.2);
}

.dark .footer-list-text-highlight {
  background: linear-gradient(135deg, #34d399, #6ee7b7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Contact Links */
.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%;
}

.footer-contact-link:hover .footer-list-text {
  color: var(--primary);
  font-weight: 500;
}

.dark .footer-contact-link:hover .footer-list-text {
  color: #34d399;
}

/* Trust Section */
.footer-trust-section {
  margin-bottom: 3rem;
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(5, 150, 105, 0.1);
}

.dark .footer-trust-section {
  background: rgba(31, 41, 55, 0.6);
  border-color: rgba(52, 211, 153, 0.15);
}

.footer-trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(5, 150, 105, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.footer-trust-badge:hover {
  transform: translateY(-5px) scale(1.05);
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(16, 185, 129, 0.1));
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(5, 150, 105, 0.2);
}

.footer-trust-badge span {
  transition: transform 0.3s ease;
}

.footer-trust-badge:hover span {
  transform: scale(1.2) rotate(5deg);
}

.footer-trust-badge p {
  color: #1f2937;
  margin: 0;
}

.dark .footer-trust-badge {
  background: rgba(31, 41, 55, 0.8);
  border-color: rgba(52, 211, 153, 0.15);
}

.dark .footer-trust-badge:hover {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(16, 185, 129, 0.15));
  border-color: #34d399;
  box-shadow: 0 10px 30px rgba(52, 211, 153, 0.25);
}

.dark .footer-trust-badge p {
  color: #f9fafb;
}

/* Footer Bottom */
.footer-bottom {
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 2px solid rgba(5, 150, 105, 0.15);
}

.dark .footer-bottom {
  border-top-color: rgba(52, 211, 153, 0.2);
}

.footer-copyright {
  color: #ffffff;
  font-size: 0.9375rem;
  letter-spacing: 0.025em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.dark .footer-copyright {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-bottom-link {
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-bottom-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.8));
  transition: width 0.3s ease;
}

.footer-bottom-link:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.footer-bottom-link:hover::after {
  width: 100%;
}

.dark .footer-bottom-link {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.dark .footer-bottom-link:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.dark .footer-bottom-link::after {
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.8));
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .footer-logo-wrapper {
    width: 64px;
    height: 64px;
  }

  .footer-title {
    font-size: 2rem;
  }

  .footer-card-modern {
    padding: 1.5rem;
  }

  .footer-card-icon-wrapper {
    width: 56px;
    height: 56px;
  }

  .footer-card-icon {
    font-size: 1.75rem;
  }

  .footer-social-link {
    width: 48px;
    height: 48px;
  }

  .footer-trust-badge {
    padding: 1rem;
  }
}


/* Discount Section Button - Theme Aware */
#discountToggleBtn {
  background: linear-gradient(to right, #ec4899, #ef4444);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: pulse 2s infinite;
}

.dark #discountToggleBtn {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

#discountToggleBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.dark #discountToggleBtn:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

#discountToggleBtn.active {
  background: linear-gradient(to right, #10b981, #059669);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
  animation: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(236, 72, 153, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(236, 72, 153, 0);
  }
}

/* Product Group Styles */
.product-group {
  margin-bottom: 2rem;
}

.product-group-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

/* Border Element Utility Class */
.border-element {
  border-color: var(--border-element);
}

/* Theme Color Utility Classes */
.text-primary {
  color: var(--text-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-tertiary {
  color: var(--text-tertiary);
}

.bg-primary {
  background-color: var(--primary);
}

.bg-primary-hover {
  background-color: var(--primary-hover);
}

.bg-surface {
  background-color: var(--surface);
}

.bg-surface-variant {
  background-color: var(--surface-variant);
}

.divide-border {
  --tw-divide-opacity: 1;
  border-color: var(--border);
}

.divide-border> :not([hidden])~ :not([hidden]) {
  --tw-divide-opacity: 1;
  border-color: var(--border);
}

/* Ensure price filter buttons are hidden by default */
#priceFilterButtons {
  display: none !important;
}

#priceFilterButtons:not(.hidden) {
  display: flex !important;
}

/* Hide individual buttons by default - JS will control visibility */
#vipToggleButton.hidden,
#agentToggleButton.hidden {
  display: none !important;
}

#vipToggleButton:not(.hidden),
#agentToggleButton:not(.hidden) {
  display: block !important;
}

/* Dark mode styles for product dialog */
.dark .product-dialog {
  background: var(--surface);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.dark .dialog-image-section {
  background: linear-gradient(135deg, var(--surface-variant) 0%, var(--border) 100%);
}

.dark .product-badge {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
}

.dark .product-title {
  color: var(--text-primary);
}

.dark .price-section {
  background: linear-gradient(135deg, #7e22ce 0%, #dc2626 100%);
}

.dark .price-label {
  color: white;
}

.dark .price-current {
  color: white;
}

.dark .price-original {
  color: rgba(255, 255, 255, 0.7);
}

.dark .instructions-section {
  background: var(--surface-variant);
  border-left: 4px solid var(--primary);
}

.dark .instructions-title {
  color: var(--text-primary);
}

.dark .instructions-text {
  color: var(--text-secondary);
}

.dark .instructions-text a {
  color: var(--primary);
}

.dark .instructions-text a:hover {
  color: var(--primary-hover);
}

.dark .field-label {
  color: var(--text-primary);
}

.dark .field-input {
  background-color: var(--surface);
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.dark .field-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.dark .credit-unit {
  color: var(--text-secondary);
}

.dark .btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.dark .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.dark .btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.dark .btn-secondary:hover {
  background: var(--surface-variant);
}

/* ===========================
   MODERN FOOTER STYLES
   =========================== */

/* Footer Modern Container */
.footer-modern {
  background: linear-gradient(135deg,
      rgba(248, 250, 252, 0.95) 0%,
      rgba(241, 245, 249, 0.95) 100%);
  border-top: 1px solid rgba(203, 213, 225, 0.3);
  position: relative;
}

.dark .footer-modern {
  background: transparent;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: none;
}

/* Animated Gradient Background */
.footer-gradient-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(-45deg,
      rgba(16, 185, 129, 0.05),
      rgba(59, 130, 246, 0.05),
      rgba(139, 92, 246, 0.05),
      rgba(236, 72, 153, 0.05));
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  opacity: 0.6;
}

.dark .footer-gradient-bg {
  display: none;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Footer Header Animation */
.footer-header-animate {
  animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer Title Underline Animation */
.footer-underline {
  animation: expandWidth 1s ease-out 0.3s both;
}

@keyframes expandWidth {
  from {
    width: 0;
  }

  to {
    width: 6rem;
  }
}

/* Glassmorphism Cards */
.footer-glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(203, 213, 225, 0.6);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out backwards;
}

.dark .footer-glass-card {
  background: linear-gradient(135deg,
      rgba(30, 58, 95, 0.85) 0%,
      rgba(15, 35, 65, 0.9) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(59, 130, 246, 0.12),
    0 0 0 1px rgba(59, 130, 246, 0.15);
}

/* Stagger animation for cards */
.footer-glass-card:nth-child(1) {
  animation-delay: 0.1s;
}

.footer-glass-card:nth-child(2) {
  animation-delay: 0.2s;
}

.footer-glass-card:nth-child(3) {
  animation-delay: 0.3s;
}

.footer-glass-card:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card Hover Effects */
.footer-glass-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 10px 15px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(255, 255, 255, 0.95);
}

.dark .footer-glass-card:hover {
  background: linear-gradient(135deg,
      rgba(41, 76, 125, 0.95) 0%,
      rgba(30, 58, 95, 0.9) 100%);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.6),
    0 10px 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(59, 130, 246, 0.2),
    0 0 0 1px rgba(59, 130, 246, 0.4),
    0 0 30px rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.6);
}

/* Glow effect on hover */
.footer-glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(16, 185, 129, 0.2),
      transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.footer-glass-card:hover::before {
  opacity: 1;
}

/* Icon Wrapper with Gradient */
.footer-icon-wrapper {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.group:hover .footer-icon-wrapper {
  transform: rotate(10deg) scale(1.1);
  animation: none;
}

/* List Items with Hover */
.footer-list-item {
  display: flex;
  align-items: start;
  gap: 0.5rem;
  transition: all 0.3s ease;
  padding: 0.25rem 0;
  border-radius: 0.5rem;
}

.footer-list-item:hover {
  padding-left: 0.5rem;
  background: rgba(16, 185, 129, 0.08);
}

.dark .footer-list-item:hover {
  background: rgba(16, 185, 129, 0.1);
}

/* Check and Bullet Icons */
.footer-check-icon {
  color: #10b981;
  font-weight: bold;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  transition: all 0.3s ease;
}

.footer-list-item:hover .footer-check-icon {
  transform: scale(1.3) rotate(20deg);
}

.footer-bullet-icon {
  color: #3b82f6;
  font-weight: bold;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  transition: all 0.3s ease;
}

.footer-list-item:hover .footer-bullet-icon {
  transform: scale(1.3);
}

/* Gradient Border for Divider */
.border-gradient {
  background: linear-gradient(to right,
      transparent,
      rgba(16, 185, 129, 0.3) 20%,
      rgba(59, 130, 246, 0.3) 50%,
      rgba(139, 92, 246, 0.3) 80%,
      transparent);
  border: none;
  height: 2px;
}

.dark .border-gradient {
  background: linear-gradient(to right,
      transparent,
      rgba(16, 185, 129, 0.4) 20%,
      rgba(59, 130, 246, 0.4) 50%,
      rgba(139, 92, 246, 0.4) 80%,
      transparent);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .footer-modern {
    padding: 3rem 1rem;
  }

  .footer-glass-card {
    padding: 1.5rem;
  }

  .footer-icon-wrapper {
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media (max-width: 768px) {
  .footer-modern {
    padding: 2.5rem 1rem;
  }

  .footer-glass-card {
    padding: 1.25rem;
  }

  .footer-header-animate h2 {
    font-size: 2rem;
  }

  .footer-icon-wrapper {
    width: 2.25rem;
    height: 2.25rem;
  }
}

@media (max-width: 640px) {
  .footer-glass-card {
    padding: 1rem;
  }

  .footer-header-animate h2 {
    font-size: 1.75rem;
  }
}

/* ===========================
   DARK MODE ENHANCEMENTS
   =========================== */

/* Dark mode icon wrapper adjustments */
.dark .footer-icon-wrapper {
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Dark mode glow effect enhancement */
.dark .footer-glass-card::before {
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(16, 185, 129, 0.25),
      transparent 50%);
}

/* Dark mode text color adjustments */
.dark .footer-check-icon {
  color: #34d399;
  filter: drop-shadow(0 0 2px rgba(52, 211, 153, 0.3));
}

.dark .footer-bullet-icon {
  color: #60a5fa;
  filter: drop-shadow(0 0 2px rgba(96, 165, 250, 0.3));
}

/* Dark mode hover enhancement for list items */
.dark .footer-list-item:hover .footer-check-icon {
  filter: drop-shadow(0 0 4px rgba(52, 211, 153, 0.5));
}

.dark .footer-list-item:hover .footer-bullet-icon {
  filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.5));
}

/* Dark mode text color overrides - ensure proper display */
.dark .footer-modern h2:not(.bg-clip-text) {
  color: #ffffff !important;
}

/* Allow gradient text to work in dark mode */
.dark .footer-modern h2.bg-clip-text {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

.dark .footer-modern h4 {
  color: #ffffff !important;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

.dark .footer-modern p,
.dark .footer-modern span {
  color: #ffffff !important;
}

.dark .footer-glass-card .text-gray-700,
.dark .footer-glass-card span.text-gray-700 {
  color: #ffffff !important;
}

.dark .footer-glass-card .text-gray-800 {
  color: #ffffff !important;
}

.dark .footer-glass-card .text-indigo-600 {
  color: #e0e7ff !important;
}

.dark .footer-modern .text-gray-600 {
  color: #f5f5f5 !important;
}

.dark .footer-modern .text-emerald-600 {
  color: #86efac !important;
}

.dark .footer-modern .text-blue-600 {
  color: #bfdbfe !important;
}

.dark .footer-modern .text-orange-600 {
  color: #fed7aa !important;
}

.dark .footer-glass-card li,
.dark .footer-glass-card li span {
  color: #ffffff !important;
}

.dark .footer-header-animate p {
  color: #1e293b !important;
}

/* Force tagline to be dark in both modes - CRITICAL */
.footer-header-animate p,
.footer-modern .footer-header-animate p,
body:not(.dark) .footer-header-animate p,
html .footer-header-animate p {
  color: #1e293b !important;
}

/* Dark mode tagline override */
html.dark .footer-header-animate p,
body.dark .footer-header-animate p,
.dark .footer-modern .footer-header-animate p {
  color: #1e293b !important;
}

/* CRITICAL: Force tagline to be dark in ALL themes */
.footer-tagline-dark,
p.footer-tagline-dark,
html .footer-tagline-dark,
body .footer-tagline-dark,
html.dark .footer-tagline-dark,
body.dark .footer-tagline-dark,
.dark .footer-tagline-dark,
.footer-modern .footer-tagline-dark,
.footer-header-animate .footer-tagline-dark {
  color: #1e293b !important;
}


.dark .footer-modern .text-gray-500 {
  color: #ffffff !important;
}

.dark .footer-modern .leading-relaxed {
  color: #ffffff !important;
}

.dark .footer-modern .text-gray-400 {
  color: #ffffff !important;
}

.dark .footer-modern .text-gray-300 {
  color: #ffffff !important;
}

/* Override all Tailwind text colors in footer */
.dark .footer-modern .text-gray-700,
.dark .footer-header-animate .text-gray-700,
body.dark .footer-modern .text-gray-700 {
  color: #ffffff !important;
}

.dark .footer-modern .text-gray-300,
.dark .footer-header-animate .text-gray-300,
body.dark .footer-modern .text-gray-300 {
  color: #ffffff !important;
}

.dark .footer-glass-card .text-sm,
.dark .footer-glass-card span,
.dark .footer-glass-card .leading-relaxed {
  color: #ffffff !important;
}

/* Ensure h4 in cards is white */
.dark .footer-glass-card h4,
.dark .footer-glass-card h4.text-white,
body.dark .footer-glass-card h4 {
  color: #ffffff !important;
}

/* Override all paragraph and span colors */
.dark .footer-modern p,
.dark .footer-header-animate p,
body.dark .footer-modern p {
  color: #ffffff !important;
}

/* Force white color for text-sm class */
.dark .footer-modern .text-sm,
.dark .footer-glass-card .text-sm,
.dark .footer-list-item .text-sm,
body.dark .footer-modern .text-sm,
body.dark .footer-glass-card .text-sm {
  color: #ffffff !important;
}

/* Force white color for leading-relaxed */
.dark .footer-modern .leading-relaxed,
.dark .footer-glass-card .leading-relaxed,
body.dark .footer-modern .leading-relaxed {
  color: #ffffff !important;
}

/* Combination of text-sm and leading-relaxed */
.dark .footer-modern span.text-sm,
.dark .footer-glass-card span.text-sm,
.dark .footer-modern span.leading-relaxed,
.dark .footer-glass-card span.leading-relaxed,
body.dark .footer-modern span,
body.dark .footer-glass-card span {
  color: #ffffff !important;
}

/* All spans in footer cards */
.dark .footer-glass-card ul li span,
.dark .footer-list-item span {
  color: #ffffff !important;
}


/* Improved transitions for theme switching */
.footer-modern,
.footer-gradient-bg,
.footer-glass-card,
.footer-icon-wrapper,
.footer-list-item,
.footer-check-icon,
.footer-bullet-icon,
.border-gradient {
  transition:
    background 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease,
    filter 0.3s ease;
}

/* Preserve animations during theme transition */
.footer-glass-card {
  transition:
    all 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* ===========================
   LIGHT MODE ENHANCEMENTS
   =========================== */

/* Light mode footer background enhancement */
body:not(.dark) .footer-modern {
  background: linear-gradient(135deg,
      rgba(248, 250, 252, 1) 0%,
      rgba(241, 245, 249, 1) 100%);
  border-top: 1px solid rgba(203, 213, 225, 0.5);
}

/* Light mode icon wrapper with stronger shadows */
body:not(.dark) .footer-icon-wrapper {
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.12),
    0 2px 4px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Light mode icon colors - brighter and more vibrant */
body:not(.dark) .footer-check-icon {
  color: #059669;
  filter: drop-shadow(0 1px 2px rgba(5, 150, 105, 0.2));
}

body:not(.dark) .footer-bullet-icon {
  color: #2563eb;
  filter: drop-shadow(0 1px 2px rgba(37, 99, 235, 0.2));
}

/* Light mode hover enhancements */
body:not(.dark) .footer-list-item:hover .footer-check-icon {
  color: #047857;
  filter: drop-shadow(0 2px 4px rgba(4, 120, 87, 0.3));
}

body:not(.dark) .footer-list-item:hover .footer-bullet-icon {
  color: #1d4ed8;
  filter: drop-shadow(0 2px 4px rgba(29, 78, 216, 0.3));
}

/* Light mode card shadow enhancement */
body:not(.dark) .footer-glass-card {
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.1),
    0 2px 6px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* Light mode gradient background stronger visibility */
body:not(.dark) .footer-gradient-bg {
  opacity: 0.8;
}

/* Light mode text colors - much darker for better readability */
body:not(.dark) .footer-modern h2:not(.bg-clip-text) {
  color: #0f172a !important;
  /* Near-black for main title */
}

/* Allow gradient text to work in light mode */
body:not(.dark) .footer-modern h2.bg-clip-text {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

body:not(.dark) .footer-modern h4 {
  color: #1e293b !important;
  /* Very dark slate for section titles */
}

body:not(.dark) .footer-modern p,
body:not(.dark) .footer-modern span {
  color: #334155 !important;
  /* Dark slate for body text */
}

/* Override Tailwind classes for footer text in light mode */
body:not(.dark) .footer-glass-card .text-gray-700,
body:not(.dark) .footer-glass-card span.text-gray-700 {
  color: #1e293b !important;
  /* Much darker gray */
}

body:not(.dark) .footer-glass-card .text-gray-800 {
  color: #0f172a !important;
  /* Near-black */
}

body:not(.dark) .footer-glass-card .text-indigo-600 {
  color: #4338ca !important;
  /* Darker indigo */
}

/* Footer bottom text */
body:not(.dark) .footer-modern .text-gray-600 {
  color: #475569 !important;
  /* Darker gray for footer bottom */
}

/* Special highlight text in light mode */
body:not(.dark) .footer-modern .text-emerald-600 {
  color: #047857 !important;
}

body:not(.dark) .footer-modern .text-blue-600 {
  color: #1d4ed8 !important;
}

body:not(.dark) .footer-modern .text-orange-600 {
  color: #c2410c !important;
}

/* Ensure all text in footer cards is dark */
body:not(.dark) .footer-glass-card li,
body:not(.dark) .footer-glass-card li span {
  color: #1e293b !important;
}

/* Description text under title */
body:not(.dark) .footer-header-animate p {
  color: #334155 !important;
  font-weight: 500;
}

/* Center divider badge text */
body:not(.dark) .footer-modern .text-gray-500 {
  color: #64748b !important;
  font-weight: 600;
}

/* Ensure leading text (bullet text) is also dark */
body:not(.dark) .footer-modern .leading-relaxed {
  color: #1e293b !important;
}

/* Additional text weight for better readability */
body:not(.dark) .footer-glass-card {
  font-weight: 500;
}