@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+Thai:wght@300;400;500;600;700&display=swap');

:root {
  --font-main: 'Inter', 'Noto Sans Thai', sans-serif;
  --primary: #047857;

  --primary-hover: #047857;
  --secondary: #667eea;

  --tertiary: #facc15;

  --danger: #ef4444;



  --bg-primary: #ffffff;

  --bg-secondary: #f5f5f5;

  --surface: #ffffff;
  --surface-variant: #f5f5f5;


  --text-primary: #171717;

  --text-secondary: #525252;

  --text-tertiary: #a3a3a3;



  --border: #e5e5e5;
  --border-element: #d1d5db;

  --divider: #f3f4f6;


  --success-bg: #dcfce7;

  --info-bg: #dbeafe;

  --warning-bg: #fef3c7;

  --error-bg: #fee2e2;



  --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);


  --topup-header-text: #171717;
  --topup-header-subtext: rgba(0, 0, 0, 0.65);
  --topup-close-bg: rgba(0, 0, 0, 0.18);
  --topup-close-bg-hover: rgba(0, 0, 0, 0.32);
}


.dark {
  --primary: #34d399;

  --primary-hover: #10b981;


  --bg-primary: #0a0a0a;

  --bg-secondary: #1f1f1f;

  --surface: #121212;

  --surface-variant: #262626;


  --text-primary: #ffffff;
  --text-secondary: #c2c2c2;
  --text-tertiary: #737373;


  --border: #262626;
  --border-element: #374151;

  --divider: #3f3f46;


  --success-bg: #064e3b;

  --info-bg: #1e3a8a;

  --warning-bg: #713f12;

  --error-bg: #7f1d1d;



  --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);


  --topup-header-text: #ffffff;
  --topup-header-subtext: rgba(255, 255, 255, 0.8);
  --topup-close-bg: rgba(255, 255, 255, 0.2);
  --topup-close-bg-hover: rgba(255, 255, 255, 0.35);
}


body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s, color 0.3s;
  font-family: var(--font-main);
}


body:not(.dark) .custom-dark-aware {
  color: #000000 !important;
}

.dark .custom-dark-aware {
  color: var(--text-primary) !important;
}


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;
}

ol.custom-dark-aware li {
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  cursor: pointer;
}

ol.custom-dark-aware li:hover {
  text-decoration: underline;
}


.theme-transition * {
  transition: background-color 0.3s, color 0.3s, border-color 0.3s !important;
}


* {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
  font-family: var(--font-main);
}

*::-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);
}


.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);
}


.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;
}

.modal.seamless-flow,
.modal.seamless-flow.active {
  animation: none !important;
}

.modal.seamless-flow > div {
  animation: modalFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}


.modal>div {
  max-height: 90vh;
  overflow-y: auto;
}


.modal .surface {
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
}


.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;
}

.qr-modal-header,
#qrCodeModal .qr-modal-header,
.user-direct-alert-header,
#userDirectAlertModal .user-direct-alert-header {
  background: var(--user-alert-gradient, linear-gradient(135deg, #10b981 0%, #059669 100%)) !important;
  background-image: var(--user-alert-gradient, linear-gradient(135deg, #10b981 0%, #059669 100%)) !important;
  color: #ffffff !important;
}

.qr-modal-header *,
#qrCodeModal .qr-modal-header *,
.user-direct-alert-header *,
#userDirectAlertModal .user-direct-alert-header * {
  color: #ffffff !important;
}

.auto-qr-modal-header,
#autoPromptPayModal .auto-qr-modal-header {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 40%, #10b981 100%) !important;
  background-image: linear-gradient(135deg, #0284c7 0%, #0ea5e9 40%, #10b981 100%) !important;
  color: #ffffff !important;
}

.topup-method-header,
#topupMethodSelectModal .topup-method-header {
  background: linear-gradient(135deg, var(--primary) 0%, #667eea 100%) !important;
  background-image: linear-gradient(135deg, var(--primary) 0%, #667eea 100%) !important;
  color: #ffffff !important;
}

.auto-qr-modal-header *,
#autoPromptPayModal .auto-qr-modal-header *,
.topup-method-header *,
#topupMethodSelectModal .topup-method-header * {
  color: #ffffff !important;
}

.binance-title-text {
  color: #b45309 !important;
}
.dark .binance-title-text {
  color: #F3BA2F !important;
}
.binance-badge-text {
  background-color: rgba(245, 158, 11, 0.18) !important;
  color: #b45309 !important;
}
.dark .binance-badge-text {
  background-color: #F3BA2F !important;
  color: #000000 !important;
}
.binance-arrow-icon {
  color: #b45309 !important;
}
.dark .binance-arrow-icon {
  color: #F3BA2F !important;
}



.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;
}


.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;
}


.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: clamp(150px, 25vh, 300px);
  max-height: clamp(250px, 35vh, 400px);
  background: linear-gradient(135deg, var(--surface-variant) 0%, var(--border) 100%);
  padding: clamp(16px, 3vh, 32px);
  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: clamp(150px, 30vh, 350px);
  max-width: clamp(150px, 25vw, 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);
}


.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;
}


.dialog-content-section {
  padding: 40px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: relative;
}


.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);
}


.share-btn {
  position: absolute;
  top: 20px;
  right: 68px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  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 .share-btn {
  background: rgba(0, 0, 0, 0.95);
  color: white;
}

.share-btn:hover {
  background: #10b981;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}


.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-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 {
  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);
}


.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 {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.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 {
  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 {
  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);
  }
}


@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;
  }
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e5e7eb;
  font-size: 15px;
  font-weight: 500;
}

.hero-feature i {
  color: #fff;
  font-size: 18px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .04);
}

.hero-br-mobile {
  display: none;
}

.hero-text-mobile {
  display: none;
}

.hero-text-desktop {
  display: inline;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: .3s;
  cursor: pointer;
}

.hero-btn-primary {
  color: #fff;
  border: none;
  background: linear-gradient(90deg, #ff9800, #ff4d8d);
  box-shadow: 0 6px 20px rgba(255, 100, 100, .28);
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 100, 100, .38);
}

.hero-btn-secondary {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .15);
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, .08);
}

.hero-title-desktop {
  font-size: 38px;
  font-weight: 800;
  text-align: center;
  line-height: 1.25;
}

.hero-subtitle {
  text-align: center;
  font-size: 18px;
}

@media(max-width:768px) {

  .hero-title-desktop {
    font-size: 24px;
  }

  .hero-br-mobile {
    display: block;
  }

  .hero-text-mobile {
    display: inline;
  }

  .hero-text-desktop {
    display: none;
  }

  .hero-features {
    gap: 2px;
    flex-wrap: nowrap;
    overflow-x: hidden;
    justify-content: space-between;
    padding-bottom: 0;
  }

  .hero-feature {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 3px;
    font-size: 10.5px;
    line-height: 1.05;
    padding: 2px 0;
    text-align: center;
    min-width: 0;
    white-space: normal;
  }

  .hero-feature span {
    display: block;
    white-space: normal;
    line-height: 1.05;
  }

  .hero-feature i {
    font-size: 14px;
    width: 26px;
    height: 26px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
  }

  .hero-btn {
    width: auto;
    max-width: 100%;
    justify-content: center;
    padding: 7px 14px;
    font-size: 12.5px;
    gap: 6px;
    border-radius: 10px;
  }

}


.dark #logoutConfirmModal .surface,
.dark #cartModal .surface,
.dark #faqModal .surface,
.dark #contactModal .surface,
.dark #themeModal .surface {
  background-color: #0b1226;

  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.6);
  color: var(--text-primary);
}


.dark #logoutConfirmModal h2,
.dark #cartModal h3,
.dark #faqModal h3,
.dark #contactModal h3,
.dark #themeModal h3 {
  color: var(--text-primary);
  background: transparent;
}


#themeModal .theme-option {
  color: var(--text-primary);
}

.dark #themeModal .theme-option {
  color: var(--text-primary);
}


.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 {
  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 {
  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-dialog-content img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 0.75rem;
}


.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-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 .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);
}


@media (max-width: 640px) {
  .banner-dialog-content {
    width: 94vw;
    max-width: 94vw;
    max-height: 88vh;
  }

  .banner-close-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    font-size: 18px !important;
    top: 6px !important;
    right: 6px !important;
    border-width: 1.5px !important;
  }

  .banner-hide-option {
    font-size: 11px !important;
    padding: 4px 8px !important;
    bottom: 6px !important;
    right: 6px !important;
    border-radius: 6px !important;
    line-height: 1.2 !important;
  }

  .banner-countdown {
    width: 28px !important;
    height: 28px !important;
    font-size: 11px !important;
    bottom: 6px !important;
    left: 6px !important;
    border-width: 1px !important;
  }
}

@media (max-width: 380px) {
  .banner-close-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    font-size: 16px !important;
    top: 4px !important;
    right: 4px !important;
  }

  .banner-hide-option {
    font-size: 10px !important;
    padding: 3px 6px !important;
  }

  .banner-countdown {
    width: 24px !important;
    height: 24px !important;
    font-size: 10px !important;
    bottom: 4px !important;
    left: 4px !important;
  }
}


@media (min-width: 641px) and (max-width: 1024px) {
  .banner-dialog-content {
    max-width: 85vw;
    max-height: 88vh;
  }
}


@media (min-width: 1025px) {
  .banner-dialog-content {
    width: min(90vw, 800px);
    max-height: 150vh;
  }
}


.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);
}


.modal::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: -1;
}


.btn-group {
  display: inline-flex;
  gap: 0.5rem;
}


.animate-spin {
  animation: spin 1s linear infinite;
}

.animate-spin-slow {
  animation: spin 3s linear infinite;
}


.loading-dots::after {
  content: '';
  animation: loadingDots 1.5s steps(4, end) infinite;
}

.products-loading {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-secondary, #64748b);
  font-size: 1rem;
  grid-column: 1 / -1;
}

.products-loading-spinner {
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid rgba(5, 150, 105, 0.2);
  border-top-color: #059669;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes loadingDots {

  0%,
  20% {
    content: '';
  }

  40% {
    content: '.';
  }

  60% {
    content: '..';
  }

  80%,
  100% {
    content: '...';
  }
}

@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);
  }
}



@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);
  }
}


@keyframes cartShake {

  0%,
  100% {
    transform: translateX(0);
  }

  15% {
    transform: translateX(-8px) rotate(-1deg);
  }

  30% {
    transform: translateX(8px) rotate(1deg);
  }

  45% {
    transform: translateX(-6px) rotate(-0.5deg);
  }

  60% {
    transform: translateX(6px) rotate(0.5deg);
  }

  75% {
    transform: translateX(-3px);
  }

  90% {
    transform: translateX(3px);
  }
}

.cart-shake {
  animation: cartShake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) !important;
}


.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 {
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.15), transparent);
}


.dark .cart-header-overlay {
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent);
}


.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-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-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;
}


.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 {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


@supports not (-webkit-background-clip: text) {
  .cart-total-amount {
    color: var(--primary);
  }
}


.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;
}


.dark .checkout-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent) !important;
}


.empty-cart {
  color: var(--text-primary);
}


#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 {
  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 {
  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 img {
  transition: transform 0.3s ease;
}

.cart-item:hover .cart-item-icon img {
  transform: scale(1.05);
}


.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 {
  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-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 {
  background: rgba(255, 255, 255, 0.2);
}

.dark .alert-icon {
  background: rgba(0, 0, 0, 0.2);
}


.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-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-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 {
  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-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 {
  background: rgba(255, 255, 255, 0.2);
}

.dark .confirm-icon {
  background: rgba(0, 0, 0, 0.2);
}


.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-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-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;
}


@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}


.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 {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.surface:hover {
  box-shadow: var(--shadow-md);
}


.fade-in {
  animation: fadeIn 0.3s ease;
}

.slide-in {
  animation: slideIn 0.3s ease;
}


.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;
}


.bg-white {
  background-color: #ffffff;
}


.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);
}


.company-info-card .relative {
  position: relative;
  z-index: 1;
}

.company-info-card div[class*="text-"] {
  position: relative;
  z-index: 1;
}


.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-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-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 .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\: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 .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\: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-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 {
  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 {
  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-90 {
  opacity: 0.9;
}


.hidden {
  display: none;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.inline-flex {
  display: inline-flex;
}

.block {
  display: block;
}


.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;
}


.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.flex-1 {
  flex: 1 1 0%;
}


.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}


.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;
}


.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;
}


.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 {
  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-y-auto {
  overflow-y: auto;
}

.overflow-hidden {
  overflow: hidden;
}


.whitespace-nowrap {
  white-space: nowrap;
}


.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;
  }

  .search-section-container {
    padding-inline: 4rem !important;
  }


  .search-input,
  .program-filter {
    flex: 1;
    min-width: 0;
  }
}

.products-grid {
  display: grid;
  gap: 2.5rem;
}


.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);


  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;
}


.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);
}


@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;
}


#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 {
  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 {
  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 {
  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 .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 {
  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;

}


@media (min-width: 768px) {
  .hero-title-desktop {
    display: block;
  }
}

.hero-subtitle-mobile {
  display: block;

}


@media (min-width: 768px) {
  .hero-subtitle-mobile {
    display: none;
  }
}

@media (max-width: 767px) {
  .hero-title-desktop {
    display: block;
  }

  .hero-subtitle-mobile {
    display: none;
  }

  .hero-section {
    padding: 1.25rem 0.25rem 1rem;
  }

  .hero-content {
    max-width: 100%;
    padding: 0 0.15rem;
  }

  .hero-features {
    gap: 2px;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .hero-feature {
    width: auto;
    flex: 1 1 0;
    justify-content: flex-start;
    align-items: center;
    font-size: 10.5px;
    line-height: 1.05;
    padding: 2px 0;
    gap: 3px;
  }

  .hero-feature i {
    font-size: 14px;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
  }

  .hero-btn {
    width: auto;
    max-width: 100%;
    justify-content: center;
    padding: 7px 14px;
    font-size: 12.5px;
    gap: 6px;
    border-radius: 10px;
  }
}

.mb-6 {
  padding: 1.5rem 1rem;
  background: var(--surface);
  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 {
  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 {
  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 {
  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;
}


.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 {
  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 .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;
}


@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);
}


.text-slate-600 {
  color: #000000;

  text-shadow: 0 0 1px rgba(0, 0, 0, 0.1);

}

.text-gray-300 {
  color: #000000;

  text-shadow: 0 0 1px rgba(0, 0, 0, 0.1);

}


.dark .text-slate-600 {
  color: var(--text-primary);

  text-shadow: 0 0 1px rgba(0, 0, 0, 0.2);

}

.dark .text-gray-300 {
  color: #d1d5db;

  text-shadow: 0 0 1px rgba(0, 0, 0, 0.2);

}

.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 {
  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;

  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;

}


.search-section-container {
  padding: 1rem 1.5rem;
  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;
  margin-inline: 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;

}

.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;

  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;

}

.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);
}


@media (max-width: 768px) {
  .search-section-container {
    padding: 0.75rem 1.5rem;
  }

  .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;
  }
}


@media (min-width: 769px) and (max-width: 1024px) {
  .search-input-container {
    flex: 1 1 auto;
    min-width: 0;
  }
}


.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 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}


.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;

  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 {
  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-active {
  background-color: var(--surface-variant);
}

.theme-option-selected {
  background-color: var(--surface-variant);
}


.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-btn {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    font-size: 0.9rem;
    line-height: 1;
    gap: 0;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1;
    overflow: visible !important;
    flex-shrink: 0;
  }

  .mobile-notification-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    box-sizing: border-box;
    flex-shrink: 0;
  }

  .mobile-notification-btn svg {
    width: 20px;
    height: 20px;
  }

  .mobile-notification-btn .notification-badge {
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
  }

  .mobile-cart-btn .cart-count {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 15px;
    height: 15px;
    margin-left: 0;
    padding: 0 3px;
    border-radius: 999px;
    background: #ffffff;
    color: #c2410c;
    border: 1px solid #ea580c;
    box-sizing: border-box;
    z-index: 2;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 15px;
    text-align: center;
  }
}


.auth-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background-color: #3b82f6;

  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;

  border-color: #2563eb;
}


.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 {
  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 {
  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 {
  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 {
  flex-shrink: 0;
  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);
  }
}


.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 {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem;
  overflow-y: auto;
  flex: 1;
  background: var(--surface);
  position: relative;
}


.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 {
  flex-shrink: 0;
  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;
}


.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-filter-section {
  display: none;
}

.mobile-search-section {
  display: none;
}

.mobile-filter-section {
  display: none;
}

.mobile-search-filter-section .program-filter {
  width: 100%;
}

.mobile-navigation {
  flex-shrink: 0;
  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-navigation .mobile-nav-item:nth-child(6) {
  order: 99;
}

.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);
}


@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;

  }

  .combined-user-section {
    gap: 0.5rem;
  }

  .combined-user-section .cart-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    background-color: #f97316;

    border: none;
  }

  .combined-user-section .cart-btn:hover {
    background-color: #ea580c;

  }

  .auth-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    background-color: #3b82f6;

    border: 1px solid #3b82f6;
  }

  .auth-btn:hover {
    background-color: #2563eb;

    border-color: #2563eb;
  }

  .topup-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    background-color: #10b981;

    border: 1px solid #10b981;
  }

  .topup-btn:hover {
    background-color: #059669;

    border-color: #059669;
  }

  .mobile-menu-toggle {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    font-size: 1.5rem;
  }


  .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;
  }


  .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: 3.125rem;
    height: 3.125rem;
    margin-right: 0.75rem;
  }

  .search-section {
    gap: 0.75rem;
  }

  .search-input {
    min-width: 12rem;
  }

  .program-filter {
    min-width: 10rem;
  }


  .mobile-menu-toggle {
    display: none;
  }
}


.dark .app-header {

  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 .hero-section {
  background: linear-gradient(135deg, #040810 0%, #060a14 50%, #080e1a 100%);
  color: var(--text-primary);
}

.dark .hero-section::before {
  background:
    radial-gradient(ellipse 60% 50% at 72% 42%, rgba(45,217,192,.1), transparent),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(99,102,241,.08), transparent),
    linear-gradient(180deg, rgba(4,8,16,.2), rgba(4,8,16,.85));
}

.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);
}

/* Homepage hero redesign — Hi-Tech */
@keyframes heroGlowDrift1 {
  0%,100% { transform: translate(0,0) scale(1); opacity:.45; }
  50% { transform: translate(40px,-30px) scale(1.15); opacity:.7; }
}
@keyframes heroGlowDrift2 {
  0%,100% { transform: translate(0,0) scale(1); opacity:.35; }
  50% { transform: translate(-50px,25px) scale(1.2); opacity:.6; }
}
@keyframes heroGlowDrift3 {
  0%,100% { transform: translate(0,0) scale(.9); opacity:.3; }
  50% { transform: translate(30px,40px) scale(1.1); opacity:.55; }
}
@keyframes heroScanLine {
  0% { top: -2px; opacity:0; }
  10% { opacity:1; }
  90% { opacity:1; }
  100% { top: 100%; opacity:0; }
}
@keyframes statusPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(45,217,192,.6); }
  50% { box-shadow: 0 0 0 5px rgba(45,217,192,0); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes hotPulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes fadeSlideUp {
  from { opacity:0; transform:translateY(18px); }
  to { opacity:1; transform:translateY(0); }
}

.hero-section {
  --home-bg: #060a14;
  --home-surface: rgba(14,22,40,.7);
  --home-surface-2: rgba(22,34,58,.6);
  --home-border: rgba(45,217,192,.12);
  --home-text: #e8ecf4;
  --home-muted: #8b96ac;
  --home-cyan: #2dd9c0;
  --home-coral: #ff6b5b;
  --home-glow-1: rgba(45,217,192,.18);
  --home-glow-2: rgba(99,102,241,.15);
  --home-glow-3: rgba(255,107,91,.12);
  position: relative;
  overflow: hidden;
  background: var(--home-bg);
  color: var(--home-text);
  padding: 52px 32px 56px;
  text-align: left;
  border-bottom: 1px solid var(--home-border);
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 72% 42%, var(--home-glow-1), transparent),
    radial-gradient(ellipse 40% 40% at 20% 80%, var(--home-glow-2), transparent),
    linear-gradient(180deg, rgba(6,10,20,.2), rgba(6,10,20,.85));
  pointer-events: none;
  z-index: 1;
}

.hero-grid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .35;
}

.hero-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.hero-glow-orb-1 {
  width: 340px; height: 340px;
  top: -60px; right: 10%;
  background: var(--home-glow-1);
  animation: heroGlowDrift1 8s ease-in-out infinite;
}
.hero-glow-orb-2 {
  width: 280px; height: 280px;
  bottom: -40px; left: 5%;
  background: var(--home-glow-2);
  animation: heroGlowDrift2 10s ease-in-out infinite;
}
.hero-glow-orb-3 {
  width: 200px; height: 200px;
  top: 40%; left: 50%;
  background: var(--home-glow-3);
  animation: heroGlowDrift3 12s ease-in-out infinite;
}

.hero-scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--home-cyan), transparent);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  animation: heroScanLine 6s linear infinite;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 36px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  box-sizing: border-box;
  animation: fadeSlideUp .7s ease-out;
}

.hero-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 16px;
  border: 1px solid rgba(45,217,192,.2);
  border-radius: 999px;
  background: rgba(45,217,192,.06);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--home-cyan);
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--home-cyan);
  animation: statusPulse 2s ease-in-out infinite;
}
.status-sep { opacity:.3; font-weight:400; }
.status-ver { opacity:.6; font-size:10px; }

.hero-title-desktop {
  display: block;
  margin: 0;
  color: var(--home-text);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.22;
  text-align: left;
  letter-spacing: -.02em;
}

.hero-accent {
  background: linear-gradient(135deg, var(--home-cyan), #6366f1, var(--home-cyan));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

.hero-description {
  max-width: 500px;
  margin: 14px 0 0;
  color: var(--home-muted);
  font-size: 15.5px;
  line-height: 1.65;
}

.hero-subtitle-mobile { display: none; }

.hero-features {
  justify-content: flex-start;
  gap: 10px;
  margin: 24px 0 0;
}

.hero-feature {
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--home-border);
  border-radius: 10px;
  background: var(--home-surface);
  color: var(--home-text);
  font-size: 13.5px;
  backdrop-filter: blur(12px);
  transition: border-color .3s, background .3s, transform .2s;
}
.hero-feature:hover {
  border-color: rgba(45,217,192,.35);
  background: var(--home-surface-2);
  transform: translateY(-2px);
}

.hero-feature i {
  width: auto;
  height: auto;
  border: 0;
  background: none;
  color: var(--home-cyan);
  font-size: 15px;
  filter: drop-shadow(0 0 4px rgba(45,217,192,.4));
}

.hero-feature:nth-child(2) i { color: #ffb238; filter: drop-shadow(0 0 4px rgba(255,178,56,.4)); }
.hero-feature:nth-child(3) i { color: var(--home-coral); filter: drop-shadow(0 0 4px rgba(255,107,91,.4)); }
.hero-feature:nth-child(4) i { color: #6366f1; filter: drop-shadow(0 0 4px rgba(99,102,241,.4)); }

.hero-actions {
  justify-content: flex-start;
  gap: 12px;
  margin-top: 28px;
}

.hero-btn {
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: all .3s ease;
}

.hero-btn-primary {
  background: linear-gradient(135deg, var(--home-coral), #ff8f5b);
  color: #fff;
  box-shadow: 0 0 20px rgba(255,107,91,.25), 0 4px 12px rgba(255,107,91,.2);
  border: 1px solid rgba(255,107,91,.3);
}

.dark .hero-btn-primary,
.dark .hero-btn-primary i {
  color: #ffffff;
}

.hero-btn-primary:hover {
  box-shadow: 0 0 30px rgba(255,107,91,.4), 0 8px 24px rgba(255,107,91,.3);
  transform: translateY(-2px);
}

.hero-btn-secondary {
  border: 1px solid var(--home-border);
  color: var(--home-text);
  background: var(--home-surface);
  backdrop-filter: blur(12px);
}

.hero-btn-secondary:hover {
  background: var(--home-surface-2);
  border-color: rgba(45,217,192,.3);
  transform: translateY(-2px);
}

.live-orders {
  position: absolute;
  left: clamp(8px, 1vw, 16px);
  top: 50%;
  transform: translateY(-50%);
  width: 232px;
  max-width: 232px;
  border: none;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-self: start;
  align-items: flex-start;
  box-sizing: border-box;
  text-align: left;
  z-index: 2;
}

html:not(.dark) .live-orders {
  background: transparent;
  border: none;
  box-shadow: none;
}

.live-orders-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--home-text);
  opacity: 0.85;
  margin-bottom: 10px;
  margin-left: 0;
  width: 100%;
  text-align: left;
}

.live-orders-count {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--home-cyan, #2dd9c0);
  white-space: nowrap;
  margin-left: auto;
}

html:not(.dark) .live-orders-count {
  color: #0d9488;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
  70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.live-orders-viewport {
  height: 260px;
  width: 100%;
  overflow: hidden;
  margin-left: 0;
  padding-left: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
}

.live-orders-track {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: left;
  animation: liveScroll var(--live-dur, 30s) linear infinite;
}

.live-orders-viewport:hover .live-orders-track {
  animation-play-state: paused;
}

@keyframes liveScroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

.live-order-item {
  padding-bottom: 8px;
}

.live-order-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  font-size: 12.5px;
  line-height: 1.35;
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  transition: opacity 0.2s;
}

.live-order-inner:hover {
  opacity: 0.85;
}

html:not(.dark) .live-order-inner {
  background: transparent;
  border: none;
  box-shadow: none;
}

.live-order-inner i {
  color: #22c55e;
  margin-top: 2px;
  font-size: 13px;
  flex-shrink: 0;
}

.live-order-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.live-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  line-height: 1.25;
}

.live-order-name {
  font-weight: 600;
  font-size: 12.5px;
  color: var(--home-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-order-time {
  font-size: 10px;
  opacity: 0.6;
  color: var(--home-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.live-order-product {
  font-size: 12px;
  color: var(--home-cyan, #2dd9c0);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

html:not(.dark) .live-order-product {
  color: #0d9488;
}

@media (min-width: 1180px) and (max-width: 1780px) {
  .hero-section {
    padding-left: clamp(248px, 19vw, 268px);
    padding-right: clamp(32px, 4vw, 64px);
  }
  .hero-content {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr) !important;
    gap: clamp(4px, 1vw, 20px) !important;
    max-width: 1240px;
    margin: 0 auto;
  }
}

@media (max-width: 1179px), (pointer: coarse) {
  .live-orders {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-orders-track {
    animation: none;
  }
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 340px;
}

.hero-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 217, 192, .22), transparent 70%);
  filter: blur(10px);
}

.hero-phone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 320px;
  border: 1px solid var(--home-border);
  border-radius: 26px;
  background: var(--home-surface);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
  color: var(--home-cyan);
  font-size: 52px;
}

.hero-phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 56px;
  height: 6px;
  border-radius: 4px;
  background: var(--home-border);
  transform: translateX(-50%);
}

.hero-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--home-border);
  border-radius: 10px;
  background: var(--home-surface-2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  color: var(--home-text);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.hero-float i { color: var(--home-cyan); }
.hero-float-one { top: 6px; left: -6px; }
.hero-float-two { right: -14px; bottom: 30px; }
.hero-float-three { top: 46%; right: -30px; }

/* ─── Fixed Side Dock Announcement Panel (แถบด้านข้างของเว็บ) ─── */
.eu-side-dock,
.hero-right {
  --eu-bg: rgba(14, 20, 36, 0.95);
  --eu-border: rgba(255, 255, 255, 0.08);
  --eu-text: #f1f5f9;
  --eu-muted: #94a3b8;
  --eu-accent: #22d3ee;
  --eu-green: #34d399;
  --eu-amber: #fbbf24;
  --eu-red: #f87171;

  position: fixed;
  right: 0;
  top: 100px;
  height: 520px;
  max-height: calc(100vh - 130px);
  width: 340px;
  z-index: 50;
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.28s ease, box-shadow 0.28s ease;
  box-shadow: -8px 16px 40px -8px rgba(0, 0, 0, 0.75);
  border-radius: 16px 0 0 16px;
  overflow: hidden;
}

.eu-side-dock.eu-collapsed,
.hero-right.eu-collapsed {
  width: 36px;
  height: 240px;
  box-shadow: -4px 8px 24px -4px rgba(0, 0, 0, 0.5);
}

.eu-side-dock .eu-panel,
.hero-right .eu-panel {
  width: 100%;
  height: 100%;
  background: var(--eu-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--eu-border);
  border-right: none;
  border-radius: 16px 0 0 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--eu-text);
  box-shadow: none;
}

.eu-side-dock.eu-collapsed .eu-panel,
.hero-right.eu-collapsed .eu-panel {
  display: none;
}

.eu-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--eu-border);
  flex-shrink: 0;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.02);
}

.eu-panel-title {
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: var(--eu-text);
}

.eu-panel-title .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--eu-muted, #94a3b8);
  box-shadow: none;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.eu-panel-title .dot.has-items {
  background: #22d3ee;
  box-shadow: 0 0 8px #22d3ee, 0 0 12px rgba(34, 211, 238, 0.6);
}

.eu-total-badge,
#euTotalBadge {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 0 0 6px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--eu-muted) !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
}

.eu-toggle-btn,
#euToggleBtn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: var(--eu-muted);
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px;
  line-height: 1;
  transition: all 0.15s ease;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.eu-toggle-btn:hover,
#euToggleBtn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--eu-text);
  border-color: rgba(34, 211, 238, 0.4) !important;
}

.eu-panel-body {
  padding: 12px 14px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
}

.eu-panel-body::-webkit-scrollbar {
  width: 5px;
}

.eu-panel-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.eu-panel-body::-webkit-scrollbar-thumb:hover {
  background: rgba(34, 211, 238, 0.4);
}

.eu-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin: 10px 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}

.eu-section-label:first-child {
  margin-top: 0;
}

.eu-list {
  display: flex;
  flex-direction: column;
}

.eu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.15s ease;
}

.eu-item:hover,
.eu-item:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(2px);
}

.eu-item:last-child {
  border-bottom: none;
}

.eu-item-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.eu-item-name {
  font-size: 13px;
  color: var(--eu-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.eu-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.eu-item-time {
  font-size: 11px;
  color: var(--eu-muted);
}

.eu-item-price {
  font-size: 11.5px;
  color: var(--eu-muted);
}

.eu-item-price .old {
  text-decoration: line-through;
  color: var(--eu-muted);
}

.eu-item-price .new-price {
  color: var(--eu-text);
  font-weight: 600;
}

.eu-item-price .new-price.price-down {
  color: var(--eu-green);
}

.eu-item-price .new-price.price-up {
  color: var(--eu-amber);
}

.eu-badge {
  flex-shrink: 0;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

.eu-badge.new {
  background: rgba(34, 211, 238, 0.15);
  color: var(--eu-accent);
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.eu-badge.discount {
  background: rgba(52, 211, 153, 0.15);
  color: var(--eu-green);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.eu-badge.adjust {
  background: rgba(251, 191, 36, 0.15);
  color: var(--eu-amber);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.eu-empty-state {
  padding: 14px 6px;
  font-size: 12px;
  color: var(--eu-muted);
  text-align: center;
  font-style: italic;
}

.eu-side-dock.eu-collapsed .eu-collapsed-rail,
.hero-right.eu-collapsed .eu-collapsed-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 10px;
  width: 100%;
  height: 100%;
  background: rgba(14, 20, 36, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--eu-border);
  border-right: none;
  border-radius: 16px 0 0 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease;
  animation: eu-rail-breathe 2.4s ease-in-out infinite;
}

.eu-side-dock.eu-collapsed .eu-collapsed-rail:hover,
.hero-right.eu-collapsed .eu-collapsed-rail:hover {
  background: rgba(22, 30, 52, 0.98);
  border-color: #22d3ee;
  animation: none;
}

.eu-rail-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

.eu-rail-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.eu-rail-top .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--eu-muted, #94a3b8);
  transition: all 0.3s ease;
  display: block;
  flex-shrink: 0;
}

.eu-rail-top .dot.has-items {
  background: #22d3ee;
  box-shadow: 0 0 8px #22d3ee, 0 0 12px rgba(34, 211, 238, 0.6);
}

.eu-rail-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  background: rgba(34, 211, 238, 0.15);
  color: var(--eu-accent);
  border: 1px solid rgba(34, 211, 238, 0.3);
  text-align: center;
  box-sizing: border-box !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

.eu-rail-badge.has-items {
  background: rgba(34, 211, 238, 0.25);
  color: #a5f3fc;
  border-color: rgba(34, 211, 238, 0.45);
}

.eu-rail-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--eu-muted);
  user-select: none;
  transition: color 0.15s ease;
  white-space: nowrap;
  margin: auto 0;
  text-align: center;
}

.eu-collapsed-rail:hover .eu-rail-label {
  color: var(--eu-text);
}

.eu-rail-arrow {
  color: var(--eu-muted);
  transition: transform 0.2s ease, color 0.2s ease;
  display: block;
  flex-shrink: 0;
}

.eu-collapsed-rail:hover .eu-rail-arrow {
  color: var(--eu-accent);
  transform: translateX(-2px);
}

@keyframes eu-rail-breathe {
  0%, 100% { border-color: rgba(255, 255, 255, 0.08); }
  50% { border-color: rgba(34, 211, 238, 0.5); }
}

@media (max-width: 800px) {
  .hero-copy {
    width: 100% !important;
    flex: 1 1 100% !important;
  }
}

/* หากเปิดบนมือถือ/แท็บเล็ต ไม่ต้องแสดงแถบประกาศด้านข้าง */
@media (max-width: 1024px) {
  .eu-side-dock,
  .hero-right,
  #heroRight {
    display: none !important;
  }
}

.hero-company {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-company .company-card {
  width: 100%;
  min-height: 0;
  justify-content: center;
}

.company-card,
.bestseller-panel {
  border: 1px solid var(--home-border);
  border-radius: 16px;
  background: var(--home-surface);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.company-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(14,22,40,.85), rgba(22,34,58,.6));
  box-shadow: 0 0 24px rgba(45,217,192,.06), 0 12px 28px rgba(0,0,0,.25);
  transition: border-color .3s, box-shadow .3s;
}
.company-card:hover {
  border-color: rgba(45,217,192,.25);
  box-shadow: 0 0 32px rgba(45,217,192,.1), 0 16px 36px rgba(0,0,0,.3);
}

.company-card-glow {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(45,217,192,.06), transparent, rgba(99,102,241,.04), transparent);
  animation: shimmer 8s linear infinite;
  pointer-events: none;
}

.company-card > div:first-child { min-width: 0; }
.company-name-th { color: var(--home-muted); font-size: 12px; }
.company-name-en { margin-top: 2px; color: var(--home-text); font-family: Kanit, sans-serif; font-size: clamp(16px, 1.8vw, 22px); font-weight: 700; line-height: 1.1; letter-spacing: .02em; }

.trust-stats { display: flex; justify-content: center; gap: 16px; margin: 0; text-align: center; }
.trust-stats > div { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.trust-icon {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(45,217,192,.1);
  color: var(--home-cyan);
  font-size: 12px;
  margin-bottom: 3px;
}
.trust-stats b { display: block; color: var(--home-cyan); font-family: Kanit, sans-serif; font-size: 16px; line-height: 1.1; }
.trust-stats span { color: var(--home-muted); font-size: 10px; white-space: nowrap; }
.company-meta { grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid var(--home-border); color: var(--home-muted); font-size: 11px; line-height: 1.3; }
.company-meta b { color: var(--home-text); }
.company-meta a { transition: color .2s; }
.company-meta a:hover { color: var(--home-cyan); }

.bestseller-panel {
  width: 100%;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(14,22,40,.7), rgba(10,14,20,.85));
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-head h2 { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--home-text); font-family: Kanit, sans-serif; font-size: 14px; }
.panel-fire { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 8px; background: rgba(255,107,91,.12); color: var(--home-coral); font-size: 12px; }
.view-all { color: var(--home-muted); font-size: 12.5px; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tool-card {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--home-border);
  border-radius: 10px;
  background: var(--home-surface);
  cursor: pointer;
  transition: border-color .25s, background .25s, transform .2s, box-shadow .25s;
  backdrop-filter: blur(8px);
  position: relative;
}
.tool-card:hover, .tool-card:focus-visible {
  border-color: rgba(45,217,192,.35);
  background: var(--home-surface-2);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(45,217,192,.1);
  outline: none;
}
.tool-card > div { min-width: 0; flex: 1; }
.tool-card strong, .tool-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-card strong { color: var(--text-primary); font-size: 12px; }
.tool-card small { margin-top: 2px; color: var(--text-secondary); font-size: 10.5px; }
.tool-rank {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; flex: 0 0 22px;
  border: 1px solid var(--home-border);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(255,178,56,.15), rgba(255,178,56,.05));
  color: #ffb238;
  font-family: Kanit, sans-serif;
  font-size: 11px;
  font-weight: 700;
}
.tool-card > span { flex: 0 0 auto; padding: 5px 7px; border: 1px solid rgba(45, 217, 192, .25); border-radius: 6px; background: rgba(45, 217, 192, .1); color: var(--home-cyan); font-size: 10px; font-weight: 600; }

.tool-badge-hot {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--home-coral), #ff8f5b);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .5px;
  animation: hotPulse 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(255,107,91,.3);
}

html:not(.dark) .hero-section {
  --home-bg: #eef2f7;
  --home-surface: rgba(255,255,255,.7);
  --home-surface-2: rgba(230,240,245,.7);
  --home-border: rgba(45,140,130,.15);
  --home-text: #10231f;
  --home-muted: #405a54;
  --home-glow-1: rgba(45,217,192,.1);
  --home-glow-2: rgba(99,102,241,.08);
  --home-glow-3: rgba(255,107,91,.06);
  background: var(--home-bg);
  color: var(--home-text);
}

html:not(.dark) .hero-section::before {
  background:
    radial-gradient(ellipse 60% 50% at 72% 42%, rgba(45,217,192,.08), transparent),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(99,102,241,.06), transparent),
    linear-gradient(180deg, rgba(255,255,255,.5), transparent 60%);
}

html:not(.dark) .hero-grid-canvas { opacity: .12; }

html:not(.dark) .hero-glow-orb { opacity: .5; }

html:not(.dark) .hero-accent {
  background: linear-gradient(135deg, #0d9488, #4f46e5, #0d9488);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html:not(.dark) .hero-scan-line {
  background: linear-gradient(90deg, transparent, rgba(45,217,192,.4), transparent);
}

html:not(.dark) .hero-btn-primary {
  color: #fff;
}

html:not(.dark) .hero-btn-secondary:hover,
html:not(.dark) .tool-card:hover,
html:not(.dark) .tool-card:focus-visible {
  background: var(--home-surface-2);
}

html:not(.dark) .company-card {
  background: linear-gradient(160deg, rgba(255,255,255,.85), rgba(230,240,245,.7));
  box-shadow: 0 0 20px rgba(45,140,130,.08), 0 12px 28px rgba(31,83,78,.12);
}

html:not(.dark) .hero-phone {
  box-shadow: 0 30px 60px rgba(31, 83, 78, .18);
}

html:not(.dark) .hero-status-badge {
  background: rgba(45,217,192,.08);
  border-color: rgba(45,140,130,.2);
}

html:not(.dark) .trust-icon {
  background: rgba(45,140,130,.1);
  color: #0d9488;
}

html:not(.dark) .bestseller-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(240,245,250,.8));
}

html:not(.dark) .eu-side-dock,
html:not(.dark) .hero-right {
  box-shadow: -4px 12px 30px -4px rgba(15, 23, 42, 0.15);
}

html:not(.dark) .eu-side-dock .eu-panel,
html:not(.dark) .hero-right .eu-panel {
  --eu-bg: rgba(255, 255, 255, 0.96);
  --eu-border: rgba(45, 140, 130, 0.2);
  --eu-text: #10231f;
  --eu-muted: #405a54;
  --eu-accent: #0284c7;
  --eu-green: #0d9488;
  --eu-amber: #d97706;
  --eu-red: #e11d48;
  box-shadow: none;
  backdrop-filter: blur(20px);
}

html:not(.dark) .eu-side-dock .eu-panel-header,
html:not(.dark) .hero-right .eu-panel-header {
  border-bottom-color: rgba(45, 140, 130, 0.15);
  background: rgba(45, 140, 130, 0.03);
}

html:not(.dark) .eu-side-dock .eu-panel-title .dot.has-items,
html:not(.dark) .hero-right .eu-panel-title .dot.has-items {
  background: #0284c7;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.4);
}

html:not(.dark) .eu-side-dock .eu-toggle-btn,
html:not(.dark) .hero-right .eu-toggle-btn {
  border-color: rgba(45, 140, 130, 0.25);
  color: var(--eu-muted);
}

html:not(.dark) .eu-side-dock .eu-toggle-btn:hover,
html:not(.dark) .hero-right .eu-toggle-btn:hover {
  background: rgba(45, 140, 130, 0.08);
  color: var(--eu-text);
  border-color: rgba(45, 140, 130, 0.4);
}

html:not(.dark) .eu-side-dock .eu-panel-body::-webkit-scrollbar-thumb,
html:not(.dark) .hero-right .eu-panel-body::-webkit-scrollbar-thumb {
  background: rgba(45, 140, 130, 0.2);
}

html:not(.dark) .eu-side-dock .eu-panel-body::-webkit-scrollbar-thumb:hover,
html:not(.dark) .hero-right .eu-panel-body::-webkit-scrollbar-thumb:hover {
  background: rgba(45, 140, 130, 0.35);
}

html:not(.dark) .eu-side-dock .eu-item,
html:not(.dark) .hero-right .eu-item {
  border-bottom-color: rgba(45, 140, 130, 0.08);
}

html:not(.dark) .eu-side-dock .eu-item:hover,
html:not(.dark) .hero-right .eu-item:hover,
html:not(.dark) .eu-side-dock .eu-item:focus-visible,
html:not(.dark) .hero-right .eu-item:focus-visible {
  background: rgba(45, 140, 130, 0.06);
}

html:not(.dark) .eu-side-dock .eu-badge.new,
html:not(.dark) .hero-right .eu-badge.new {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.25);
}

html:not(.dark) .eu-side-dock .eu-badge.discount,
html:not(.dark) .hero-right .eu-badge.discount {
  background: rgba(13, 148, 136, 0.12);
  color: #0d9488;
  border-color: rgba(13, 148, 136, 0.25);
}

html:not(.dark) .eu-side-dock .eu-badge.adjust,
html:not(.dark) .hero-right .eu-badge.adjust {
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
  border-color: rgba(217, 119, 6, 0.25);
}

html:not(.dark) .eu-side-dock.eu-collapsed .eu-collapsed-rail,
html:not(.dark) .hero-right.eu-collapsed .eu-collapsed-rail {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(45, 140, 130, 0.25);
  box-shadow: -2px 6px 20px rgba(31, 83, 78, 0.1);
  animation: eu-rail-breathe-light 2.4s ease-in-out infinite;
}

html:not(.dark) .eu-side-dock.eu-collapsed .eu-collapsed-rail:hover,
html:not(.dark) .hero-right.eu-collapsed .eu-collapsed-rail:hover {
  background: #ffffff;
  border-color: #0d9488;
  animation: none;
}

html:not(.dark) .eu-rail-top .dot {
  background: #94a3b8;
}

html:not(.dark) .eu-rail-top .dot.has-items {
  background: #0d9488;
  box-shadow: 0 0 8px rgba(13, 148, 136, 0.4);
}

html:not(.dark) .eu-rail-badge {
  background: rgba(13, 148, 136, 0.12);
  color: #0d9488;
  border-color: rgba(13, 148, 136, 0.25);
}

html:not(.dark) .eu-rail-badge.has-items {
  background: rgba(13, 148, 136, 0.2);
  color: #0f766e;
  border-color: rgba(13, 148, 136, 0.4);
}

html:not(.dark) .eu-rail-label {
  color: #1f534e;
}

html:not(.dark) .eu-collapsed-rail:hover .eu-rail-label {
  color: #0d9488;
}

html:not(.dark) .eu-rail-arrow {
  color: #405a54;
}

html:not(.dark) .eu-collapsed-rail:hover .eu-rail-arrow {
  color: #0d9488;
  transform: translateX(-2px);
}

@keyframes eu-rail-breathe-light {
  0%, 100% {
    border-color: rgba(45, 140, 130, 0.25);
  }
  50% {
    border-color: #0d9488;
  }
}

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-company { min-height: 0; }
}

@media (max-width: 560px) {
  .hero-section { padding: 28px 16px 32px; }
  .hero-content { gap: 20px; }
  .hero-title-desktop { font-size: 30px; text-align: center; }
  .hero-status-badge { font-size: 10px; padding: 5px 12px; }
  .hero-features { gap: 6px; }
  .hero-feature { flex: 1 1 calc(50% - 6px); padding: 8px 10px; font-size: 12px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-btn { justify-content: center; }
  .hero-float { display: none; }
  .hero-glow-orb-1 { width: 200px; height: 200px; }
  .hero-glow-orb-2 { width: 160px; height: 160px; }
  .hero-glow-orb-3 { width: 120px; height: 120px; }
  .company-card { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 10px 12px; }
  .company-name-th { font-size: 10px; }
  .company-name-en { font-size: 13.5px; }
  .trust-stats { gap: 12px; }
  .trust-stats b { font-size: 13px; }
  .trust-stats span { font-size: 8.5px; }
  .company-meta { grid-column: 1 / -1; font-size: 9.5px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 380px) {
  .company-card { padding: 8px 10px; gap: 5px 8px; }
  .company-name-th { font-size: 9px; }
  .company-name-en { font-size: 12px; }
  .trust-stats { gap: 8px; }
  .trust-stats b { font-size: 11.5px; }
  .trust-stats span { font-size: 8px; }
  .company-meta { font-size: 8.5px; }
}



.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;

  color: white;
}

.dark .combined-user-section .cart-btn:hover {
  background-color: #ea580c;

}

.dark .auth-btn {
  background-color: #3b82f6;

  color: white;
  border: 1px solid #3b82f6;
}

.dark .auth-btn:hover {
  background-color: #2563eb;

  border-color: #2563eb;
}

.dark .topup-btn {
  background-color: #10b981;

  color: white;
  border: 1px solid #10b981;
}

.dark .topup-btn:hover {
  background-color: #059669;

  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 {
  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);
}


.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;
}


.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);
}


.table-view .product-card-favorite {
  display: none;
}


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);
}

.products-grid.table-view .product-card {
  border: 1px solid transparent;
  border-radius: 1rem;
}

.products-grid.table-view .product-card::before {
  border-radius: 1rem;
}

.products-grid.table-view .product-card-info {
  padding-left: 1rem;
}

.products-grid.table-view .product-card:hover {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12),
    0 8px 16px rgba(0, 0, 0, 0.06);
}

.dark .products-grid.table-view .product-card:hover {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5),
    0 8px 16px rgba(0, 0, 0, 0.3);
}

.product-card-image {
  width: 100%;
  max-width: 180px;
  height: auto;
  object-fit: contain;
  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);
  background-color: var(--surface);

}

.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: flex;
  flex-direction: column;
}

.product-card-name {
  font-size: clamp(0.8rem, 3.5vw, 1.125rem);
  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: auto;
  min-width: 100px;
  max-width: 85%;
  margin-left: auto;
  margin-right: auto;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.4;
  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 {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.25rem !important;
  margin-top: auto !important;
  margin-bottom: 0.75rem !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: auto !important;
  margin-bottom: 0.75rem !important;
}

.product-card-info-wrapper .product-card-price {
  margin-top: auto !important;
  margin-bottom: 0.75rem !important;
}


@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.5rem 1.25rem;
    font-size: 0.9rem;
    min-width: 120px;
  }



}


.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;
}


.product-detail-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overscroll-behavior: contain;
}

.product-detail-backdrop.active {
  opacity: 1;
  visibility: visible;
}


.product-detail-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: auto;
  max-height: 90vh;

  width: 100%;
  max-width: 100%;
  background-color: var(--surface);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  border-radius: 24px 24px 0 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
}


.product-detail-handle {
  width: 44px;
  height: 5px;
  background-color: var(--border-element);
  border-radius: 4px;
  margin: 12px auto 8px auto;
  cursor: pointer;
  opacity: 0.6;
}


.product-detail-scroll-area {
  overflow-y: auto;
  flex: 1;
  padding-bottom: 20px;
  overscroll-behavior: contain;
}


.product-detail-panel.slide-panel {
  background: var(--surface);
}

.product-detail-panel.slide-panel.active {
  transform: translateY(0);
}


.product-detail-header {
  background-color: transparent;
  padding: 0 1.5rem 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.product-detail-main {
  padding: 1.5rem 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;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  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-share-btn {
  font-size: 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: var(--surface);
}

.product-detail-share-btn:hover {
  background-color: #10b981;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.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: 1rem;
}

.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: #1e293b;
  line-height: 1.6;
}

.dark .product-detail-instructions {
  color: #cbd5e1;
}

.product-detail-instructions .ql-align-center,
.instructions-text .ql-align-center {
  text-align: center;
}

.product-detail-instructions .ql-align-right,
.instructions-text .ql-align-right {
  text-align: right;
}

.product-detail-instructions .ql-align-justify,
.instructions-text .ql-align-justify {
  text-align: justify;
}

.product-detail-instructions .ql-size-small,
.instructions-text .ql-size-small {
  font-size: 0.75rem;
}

.product-detail-instructions .ql-size-large,
.instructions-text .ql-size-large {
  font-size: 1.15rem;
  font-weight: 600;
}

.product-detail-instructions .ql-size-huge,
.instructions-text .ql-size-huge {
  font-size: 1.35rem;
  font-weight: 700;
}

.product-detail-instructions h1,
.instructions-text h1 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0.5rem 0 0.25rem 0;
}

.product-detail-instructions h2,
.instructions-text h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0.4rem 0 0.2rem 0;
}

.product-detail-instructions h3,
.instructions-text h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0.35rem 0 0.15rem 0;
}

.product-detail-instructions h4,
.instructions-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0.3rem 0 0.1rem 0;
}

.product-detail-instructions p,
.instructions-text p {
  margin-bottom: 0.35rem;
  line-height: 1.6;
}

.product-detail-instructions p:last-child,
.instructions-text p:last-child {
  margin-bottom: 0;
}

.product-detail-instructions ul,
.instructions-text ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin: 0.4rem 0;
}

.product-detail-instructions ol,
.instructions-text ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin: 0.4rem 0;
}

.product-detail-instructions li,
.instructions-text li {
  margin-bottom: 0.2rem;
}

.product-detail-instructions img,
.instructions-text img,
.product-detail-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 6px 0;
  display: inline-block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.product-detail-instructions a,
.instructions-text a,
.instructions-section a {
  color: #2563eb;
  text-decoration: none !important;
  font-weight: 500;
  word-break: break-all;
  transition: color 0.15s ease;
}

.product-detail-instructions a:hover,
.instructions-text a:hover,
.instructions-section a:hover {
  color: #1d4ed8;
  text-decoration: none !important;
}

.dark .product-detail-instructions a,
.dark .instructions-text a,
.dark .instructions-section a {
  color: #60a5fa;
  text-decoration: none !important;
}

.dark .product-detail-instructions a:hover,
.dark .instructions-text a:hover,
.dark .instructions-section a:hover {
  color: #93c5fd;
  text-decoration: none !important;
}

.product-detail-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.product-detail-actions {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: auto;
  flex-shrink: 0;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

.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-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}


.credit-min-hint {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #059669;
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.25);
  border-radius: 0.5rem;
  padding: 0.375rem 0.625rem;
  margin-top: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
  animation: fadeInHint 0.2s ease;
}

.credit-min-hint--error {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.3);
  animation: shakeHint 0.4s ease;
}

.dark .credit-min-hint {
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.25);
}

.dark .credit-min-hint--error {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.3);
}

@keyframes fadeInHint {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shakeHint {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-4px);
  }

  40% {
    transform: translateX(4px);
  }

  60% {
    transform: translateX(-3px);
  }

  80% {
    transform: translateX(3px);
  }
}

.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 .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;
}


.product-detail-instructions a {
  color: #2563eb;
  text-decoration: none !important;
  font-weight: 500;
}

.product-detail-instructions a:hover {
  color: #1d4ed8;
  text-decoration: none !important;
}

.dark .product-detail-instructions a {
  color: #60a5fa;
  text-decoration: none !important;
}

.dark .product-detail-instructions a:hover {
  color: #93c5fd;
  text-decoration: none !important;
}

.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 {
  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);

}

.user-account-credits {
  font-size: 1rem;

  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;

  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;

  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 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}


.logout-section {
  display: flex;
  align-items: center;
}

.combined-user-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-right: 1.5rem;

}

.combined-user-section .user-account-email {
  font-weight: 500;
  color: #ffffff !important;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.1);

  white-space: nowrap;
}


.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-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);
}


.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 .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;
}


.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 {
  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 {
  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 {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}


.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 {
  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);
}


@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;
}


@media (max-width: 1024px) {
  .user-dropdown {
    display: none;
  }
}


.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-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 {
  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;
}


#themeMenuItem {
  position: relative;
}

#themeIconInMenu {
  position: absolute;
  right: 1.25rem;
  font-size: 1.125rem;
}


.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);
}


.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;
}


@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  50% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}


.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);
}


.footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(229, 231, 235, 0.5);
}


.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-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 {
  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;
}


.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);
}


.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-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 {
  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 {
  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-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 {
  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;
}


.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;
}


.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;
}


.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 {
  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));
}


@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;
  }
}




@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 {
  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 {
  border-color: var(--border-element);
}


.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);
}


#priceFilterButtons {
  display: none !important;
}

#priceFilterButtons:not(.hidden) {
  display: flex !important;
}


#vipToggleButton.hidden,
#agentToggleButton.hidden {
  display: none !important;
}

#vipToggleButton:not(.hidden),
#agentToggleButton:not(.hidden) {
  display: block !important;
}


.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);
}






.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;
}


.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-animate {
  animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.footer-underline {
  animation: expandWidth 1s ease-out 0.3s both;
}

@keyframes expandWidth {
  from {
    width: 0;
  }

  to {
    width: 6rem;
  }
}


.footer-glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.05),
    0 8px 10px -6px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  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: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.3),
    0 10px 10px -5px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}


.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);
  }
}


.footer-glass-card:hover,
.footer-glass-card:focus-within {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.12),
    0 10px 15px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(255, 255, 255, 0.85);
  outline: none;
}

.dark .footer-glass-card:hover,
.dark .footer-glass-card:focus-within {
  background: rgba(30, 41, 59, 0.85);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(16, 185, 129, 0.3);
  border-color: rgba(16, 185, 129, 0.5);
  outline: none;
}


.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;
}


.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;
}


.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);
}


.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);
}


.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);
}


@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 .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 .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 .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 .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 .footer-modern h2:not(.bg-clip-text) {
  color: #ffffff !important;
}


.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-modern,
.dark .footer-modern * {
  color: #ffffff !important;
}

.dark .footer-glass-card,
.dark .footer-glass-card * {
  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;
}


.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;
}


html.dark .footer-header-animate p,
body.dark .footer-header-animate p,
.dark .footer-modern .footer-header-animate p {
  color: #1e293b !important;
}


.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;
}


.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;
}


.dark .footer-glass-card h4,
.dark .footer-glass-card h4.text-white,
body.dark .footer-glass-card h4 {
  color: #ffffff !important;
}


.dark .footer-modern p,
.dark .footer-header-animate p,
body.dark .footer-modern p {
  color: #ffffff !important;
}


.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;
}


.dark .footer-modern .leading-relaxed,
.dark .footer-glass-card .leading-relaxed,
body.dark .footer-modern .leading-relaxed {
  color: #ffffff !important;
}


.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;
}


.dark .footer-glass-card ul li span,
.dark .footer-list-item span {
  color: #ffffff !important;
}



.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;
}


.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;
}




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);
}


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);
}


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));
}


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));
}


body:not(.dark) .footer-glass-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.05),
    0 2px 6px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}


body:not(.dark) .footer-gradient-bg {
  opacity: 0.8;
}


body:not(.dark) .footer-modern h2:not(.bg-clip-text) {
  color: #0f172a !important;

}


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;

}

body:not(.dark) .footer-modern p,
body:not(.dark) .footer-modern span {
  color: #334155 !important;

}


body:not(.dark) .footer-glass-card .text-gray-700,
body:not(.dark) .footer-glass-card span.text-gray-700 {
  color: #1e293b !important;

}

body:not(.dark) .footer-glass-card .text-gray-800 {
  color: #0f172a !important;

}

body:not(.dark) .footer-glass-card .text-indigo-600 {
  color: #4338ca !important;

}


body:not(.dark) .footer-modern .text-gray-600 {
  color: #475569 !important;

}


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;
}


body:not(.dark) .footer-glass-card li,
body:not(.dark) .footer-glass-card li span {
  color: #1e293b !important;
}


body:not(.dark) .footer-header-animate p {
  color: #334155 !important;
  font-weight: 500;
}


body:not(.dark) .footer-modern .text-gray-500 {
  color: #64748b !important;
  font-weight: 600;
}


body:not(.dark) .footer-modern .leading-relaxed {
  color: #1e293b !important;
}


body:not(.dark) .footer-glass-card {
  font-weight: 500;
}




body:not(.dark) #termsModal {
  background-color: rgba(0, 0, 0, 0.4);
}


body:not(.dark) #termsModal .bg-gray-50 {
  background-color: #f9fafb !important;
  border: 1px solid #e5e7eb;
}


body:not(.dark) #termsModal .bg-gradient-to-r {
  background: linear-gradient(to right, #10b981, #14b8a6) !important;
}

body:not(.dark) #termsModal .text-white {
  color: #ffffff !important;
}


body:not(.dark) #termsModal .text-gray-800 {
  color: #1f2937 !important;
}

body:not(.dark) #termsModal .text-gray-700 {
  color: #374151 !important;
}


body:not(.dark) #termsModal .text-orange-600 {
  color: #d97706 !important;
  font-weight: 700;
}


body:not(.dark) #termsModal .text-emerald-600 {
  color: #059669 !important;
  font-weight: 700;
}

body:not(.dark) #termsModal .text-red-600 {
  color: #dc2626 !important;
  font-weight: 700;
}


body:not(.dark) #termsModal ul li {
  color: #374151 !important;
}


body:not(.dark) #termsModal ul.list-circle li {
  color: #374151 !important;
}


body:not(.dark) #termsModal .font-semibold {
  color: #1f2937 !important;
  font-weight: 700;
}


body:not(.dark) #termsModal .text-blue-600 {
  color: #2563eb !important;
}


body:not(.dark) #termsModal .bg-yellow-50 {
  background-color: #fefce8 !important;
  border-color: #eab308 !important;
}

body:not(.dark) #termsModal .text-yellow-800 {
  color: #713f12 !important;
  font-weight: 600;
}


body:not(.dark) #termsCloseBtn {
  color: #ffffff !important;
}

body:not(.dark) #termsCloseBtn:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}


body:not(.dark) #termsModal p {
  color: #374151 !important;
  line-height: 1.6;
}


body:not(.dark) #termsModal .ml-4 {
  color: #374151 !important;
}




body.dark #termsModal {
  background-color: rgba(0, 0, 0, 0.6);
}


body.dark #termsModal .bg-gray-800 {
  background-color: #1f2937 !important;
  border: 1px solid #374151;
}


body.dark #termsModal .bg-gradient-to-r {
  background: linear-gradient(to right, #059669, #0d9488) !important;
}

body.dark #termsModal .text-white {
  color: #ffffff !important;
}


body.dark #termsModal .p-6 {
  background-color: #1f2937 !important;
}

body.dark #termsModal .max-w-none {
  color: #e5e7eb !important;
}


body.dark #termsModal p {
  color: #d1d5db !important;
  line-height: 1.6;
}


body.dark #termsModal>div>div>p.text-orange-600 {
  color: #fed7aa !important;
  font-weight: 700;
}


body.dark #termsModal h3 {
  color: #6ee7b7 !important;
  font-weight: 700;
}

body.dark #termsModal .text-emerald-600 {
  color: #6ee7b7 !important;
  font-weight: 700;
}

body.dark #termsModal .text-red-600 {
  color: #fca5a5 !important;
  font-weight: 700;
}


body.dark #termsModal ul {
  color: #f3f4f6 !important;
}

body.dark #termsModal ul li {
  color: #f3f4f6 !important;
}

body.dark #termsModal ul.list-disc li {
  color: #f3f4f6 !important;
}

body.dark #termsModal ul.list-circle li {
  color: #f3f4f6 !important;
}


body.dark #termsModal ul.list-disc.ml-6 li,
body.dark #termsModal ul.list-circle.ml-6 li {
  color: #f3f4f6 !important;
}


body.dark #termsModal .font-semibold {
  color: #f3f4f6 !important;
  font-weight: 700;
}

body.dark #termsModal p.font-semibold {
  color: #e5e7eb !important;
}

body.dark #termsModal div .font-semibold {
  color: #e5e7eb !important;
}


body.dark #termsModal .ml-6 .font-semibold {
  color: #f3f4f6 !important;
}


body.dark #termsModal .text-blue-600 {
  color: #93c5fd !important;
}

body.dark #termsModal a {
  color: #93c5fd !important;
}


body.dark #termsModal .ml-4 {
  color: #d1d5db !important;
}


body.dark #termsModal .ml-6 li {
  color: #f3f4f6 !important;
}

body.dark #termsModal .ml-6 {
  color: #d1d5db !important;
}


body.dark #termsModal .bg-yellow-900 {
  background-color: rgba(113, 63, 18, 0.2) !important;
  border-color: #fcd34d !important;
}

body.dark #termsModal .text-yellow-800 {
  color: #fef3c7 !important;
  font-weight: 600;
}



body.dark #termsModal ul.space-y-2 {
  color: inherit;
}

body.dark #termsModal ul.space-y-2 li {
  color: #f3f4f6 !important;
}

body.dark #termsModal .space-y-4 {
  color: #d1d5db !important;
}


body.dark #termsModal ul li,
body.dark #termsModal ul.space-y-1 li,
body.dark #termsModal ul.space-y-2 li,
body.dark #termsModal ul.list-disc li,
body.dark #termsModal ul.list-circle li {
  color: #f3f4f6 !important;
}


html.dark #termsModal ul.list-disc.ml-6.space-y-2.text-sm.text-gray-700 {
  color: #ffffff !important;
}

html.dark #termsModal ul.list-disc.ml-6.space-y-2.text-sm.text-gray-700 li {
  color: #ffffff !important;
}

html.dark #termsModal ul.list-circle.ml-6.space-y-1.text-gray-700 {
  color: #ffffff !important;
}

html.dark #termsModal ul.list-circle.ml-6.space-y-1.text-gray-700 li {
  color: #ffffff !important;
}


html.dark #termsModal p.text-sm.ml-4.text-gray-700 {
  color: #ffffff !important;
}


html.dark #termsModal p.text-sm.ml-6.mb-2.text-gray-700 {
  color: #ffffff !important;
}


html.dark #termsModal p.font-semibold.text-sm.mb-2.text-gray-800 {
  color: #ffffff !important;
}


html.dark #termsModal ul.list-disc.ml-10.mt-2.space-y-1.text-sm.text-gray-700 {
  color: #ffffff !important;
}

html.dark #termsModal ul.list-disc.ml-10.mt-2.space-y-1.text-sm.text-gray-700 li {
  color: #ffffff !important;
}


html.dark #termsModal h3 {
  color: inherit !important;
}

html.dark #termsModal h3.text-emerald-600,
html.dark #termsModal h3.text-emerald-400 {
  color: #6ee7b7 !important;
}

html.dark #termsModal h3.text-red-600,
html.dark #termsModal h3.text-red-400 {
  color: #fca5a5 !important;
}

html.dark #termsModal .text-orange-600,
html.dark #termsModal .text-orange-400 {
  color: #fed7aa !important;
}

html.dark #termsModal .text-blue-600,
html.dark #termsModal .text-blue-700,
html.dark #termsModal .text-blue-400 {
  color: #93c5fd !important;
}

html.dark #termsModal .text-red-600,
html.dark #termsModal .text-red-400 {
  color: #fca5a5 !important;
}

html.dark #termsModal .text-yellow-800,
html.dark #termsModal .text-yellow-300 {
  color: #fef3c7 !important;
}


html.dark #termsCloseBtn {
  color: #ffffff !important;
}

html.dark #termsCloseBtn:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
}




#mfaSetupModal .mfa-card {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.dark #mfaSetupModal .mfa-card {
  background: #1e293b;
  color: #f8fafc;
  border-color: #334155;
}

#mfaSetupModal .mfa-title {
  color: #0f172a;
  font-weight: 900;
}

.dark #mfaSetupModal .mfa-title {
  color: #ffffff;
}

#mfaSetupModal .mfa-step-desc {
  color: #475569;
}

.dark #mfaSetupModal .mfa-step-desc {
  color: #94a3b8;
}

#mfaSetupModal .mfa-input {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

.dark #mfaSetupModal .mfa-input {
  background: #0f172a;
  border-color: #334155;
  color: #ffffff;
}


#mfaEnrollSubmitBtn,
.mfa-btn-primary {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3) !important;
}

#mfaSetupModal .mfa-btn-primary:hover {
  background-color: #1d4ed8;
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4);
}

.dark #mfaSetupModal .mfa-btn-primary {
  background-color: var(--primary);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

#mfaSetupModal .mfa-step-badge {
  background-color: #2563eb;
}

.dark #mfaSetupModal .mfa-step-badge {
  background-color: var(--primary);
}

#mfaSetupModal .mfa-copy-box {
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
}

.dark #mfaSetupModal .mfa-copy-box {
  background: #334155;
  border-color: #475569;
}


#reauthModalContent .reauth-card {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.dark #reauthModalContent .reauth-card {
  background: #1e293b;
  color: #f8fafc;
  border-color: #334155;
}

#reauthModalContent .reauth-title {
  color: #0f172a;
  font-weight: 900;
}

.dark #reauthModalContent .reauth-title {
  color: #ffffff;
}

#reauthModalContent .reauth-desc {
  color: #475569;
}

.dark #reauthModalContent .reauth-desc {
  color: #94a3b8;
}

#reauthModalContent .reauth-input {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

.dark #reauthModalContent .reauth-input {
  background: #0f172a;
  border-color: #334155;
  color: #ffffff;
}

#reauthSubmitBtn,
.reauth-btn-primary {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3) !important;
}

#reauthModalContent .reauth-btn-primary:hover {
  background-color: #1d4ed8;
}

.dark #reauthModalContent .reauth-btn-primary {
  background-color: var(--primary);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}


#mfaChallengeContent .challenge-card {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.dark #mfaChallengeContent .challenge-card {
  background: #1e293b;
  color: #f8fafc;
  border-color: #334155;
}

#mfaChallengeContent .challenge-title {
  color: #0f172a;
  font-weight: 900;
}

.dark #mfaChallengeContent .challenge-title {
  color: #ffffff;
}

#mfaChallengeContent .challenge-desc {
  color: #475569;
}

.dark #mfaChallengeContent .challenge-desc {
  color: #94a3b8;
}

#mfaChallengeContent .challenge-input {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

.dark #mfaChallengeContent .challenge-input {
  background: #0f172a;
  border-color: #334155;
  color: #ffffff;
}

#mfaChallengeSubmitBtn,
.challenge-btn-primary {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3) !important;
}

#mfaChallengeContent .challenge-btn-primary:hover {
  background-color: #1d4ed8;
}

.dark #mfaChallengeContent .challenge-btn-primary {
  background-color: var(--primary);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}


#recoveryModalContent .recovery-card {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.dark #recoveryModalContent .recovery-card {
  background: #1e293b;
  color: #f8fafc;
  border-color: #334155;
}

#recoveryModalContent .recovery-title {
  color: #10b981;
  font-weight: 900;
}

#recoveryModalContent .recovery-desc {
  color: #475569;
}

.dark #recoveryModalContent .recovery-desc {
  color: #94a3b8;
}

#recoveryCodesConfirmBtn,
.recovery-btn-primary {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3) !important;
}

#recoveryModalContent .recovery-btn-primary:hover {
  background-color: #1d4ed8;
}

#recoveryModalContent .recovery-btn-primary {
  background-color: var(--primary);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}




.dialog-header-actions {
  position: absolute !important;
  top: 1.25rem !important;
  right: 1.25rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  z-index: 50 !important;
}


.product-dialog .close-btn,
.product-dialog .share-btn {
  position: static !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: var(--surface-variant) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border) !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  -webkit-tap-highlight-color: transparent !important;
}


.product-dialog .close-btn {
  font-size: 1.75rem !important;
  line-height: 1 !important;
}


.product-dialog .share-btn svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  pointer-events: none !important;
}


.product-dialog .close-btn:hover {
  background-color: #ef4444 !important;
  color: white !important;
  border-color: #ef4444 !important;
  transform: rotate(90deg) scale(1.05) !important;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4) !important;
}

.product-dialog .share-btn:hover {
  background-color: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4) !important;
}

.product-dialog .close-btn:active,
.product-dialog .share-btn:active {
  transform: scale(0.95) !important;
}


.dialog-content-section {
  position: relative !important;
  padding-top: 3.75rem !important;
}


.dark .product-dialog .close-btn,
.dark .product-dialog .share-btn {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.dark .product-dialog .close-btn:hover {
  background-color: #ef4444 !important;
}

.dark .product-dialog .share-btn:hover {
  background-color: var(--primary) !important;
}


.footer-glass-card button:focus-visible,
.footer-glass-card a:focus-visible {
  outline: 2px solid #10b981 !important;
  outline-offset: 4px;
  border-radius: 4px;
  background-color: rgba(16, 185, 129, 0.1) !important;
}

.dark .footer-glass-card button:focus-visible,
.dark .footer-glass-card a:focus-visible {
  outline: 2px solid #34d399 !important;
  outline-offset: 4px;
  background-color: rgba(52, 211, 153, 0.1) !important;
}


#privacyFooterBtn:focus,
#termsFooterBtn:focus {
  outline: none;
  text-decoration: underline;
  color: #10b981 !important;
}

.dark #privacyFooterBtn:focus,
.dark #termsFooterBtn:focus {
  color: #34d399 !important;
}


.coupon-trigger-btn {
  background: var(--surface-variant);
  border: 1.5px dashed var(--primary);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.coupon-trigger-btn:hover {
  border-color: var(--secondary) !important;
  background: rgba(102, 126, 234, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.dark .coupon-trigger-btn:hover {
  background: rgba(102, 126, 234, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.coupon-applied-card {
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.05);
}

.coupon-applied-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.dark .coupon-applied-card:hover {
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

#couponModalInput:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15) !important;
}

#couponModalInput {
  background-color: var(--surface) !important;
  color: var(--text-primary) !important;
  border: 2px solid var(--border) !important;
}



:root {
  --bg: #f1f5f9;
  --panel-bg: rgba(255, 255, 255, 0.75);
  --text: #0f172a;
  --muted: #475569;
  --border: rgba(226, 232, 240, 0.8);
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --accent-gradient-hover: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  --card-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.05);
  --success: #10b981;
  --danger: #ef4444;
  --font-main: 'Inter', 'Noto Sans Thai', sans-serif;
  --glass-border: rgba(255, 255, 255, 0.6);
  --glow-1: rgba(99, 102, 241, 0.05);
  --glow-2: rgba(16, 185, 129, 0.05);
}

html.dark {
  --bg: #080c14;
  --panel-bg: rgba(15, 23, 42, 0.65);
  --text: #f8fafc;
  --muted: #94a3b8;
  --border: rgba(51, 65, 85, 0.4);
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --accent-gradient-hover: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --success: #34d399;
  --danger: #f87171;
  --glass-border: rgba(255, 255, 255, 0.07);
  --glow-1: rgba(99, 102, 241, 0.15);
  --glow-2: rgba(16, 185, 129, 0.12);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  transition: background-color .3s ease, color .3s ease;
  position: relative;
  overflow-x: hidden;
}


.bg-glow-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  transition: all 0.5s ease;
}

.glow-blob-1 {
  top: -10%;
  right: -10%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

.glow-blob-2 {
  bottom: -10%;
  left: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, #10b981 0%, transparent 70%);
}


.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
  border-radius: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-premium {
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid var(--border);
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text);
  outline: none;
}

html.dark .input-premium {
  background: rgba(0, 0, 0, 0.25);
}

.input-premium:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--glow-1);
  transform: translateY(-1px);
}

.btn-premium {
  background: var(--accent-gradient);
  border: none;
  border-radius: 14px;
  color: #fff !important;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px var(--glow-1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-premium::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: all 0.5s ease;
}

.btn-premium:hover::after {
  left: 100%;
}

.btn-premium:hover:not(:disabled) {
  background: var(--accent-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.btn-premium:active:not(:disabled) {
  transform: translateY(0);
}

.btn-premium:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.8;
}

html.dark .btn-premium:disabled {
  background: #334155;
  color: #64748b !important;
}

.otp-display-container {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 1px dashed rgba(99, 102, 241, 0.3);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.otp-glow-box {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 8px 32px 0 rgba(99, 102, 241, 0.08);
  border-radius: 16px;
  text-shadow: 0 0 8px rgba(99, 102, 241, 0.2);
  display: inline-block;
  width: 100%;
  max-width: 320px;
}

html.dark .otp-glow-box {
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.05);
}


.notification-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.notification-toggle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px 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;
  color: #ffffff;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0;
}

.notification-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.notification-toggle-btn.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.notification-toggle-btn svg {
  fill: #ffffff;
  transition: transform 0.2s ease, fill 0.2s ease;
}

.notification-toggle-btn:hover svg {
  transform: scale(1.05);
}

.notification-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: var(--danger);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.notification-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  width: 600px;
  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);
  border: 1px solid var(--border);
}

.dark .notification-menu {
  background: rgba(18, 18, 18, 0.98);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
}

.notification-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notification-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--primary) 0%, #047857 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-menu-header h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.clear-notif-btn {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 20px !important;
  color: #ffffff !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  padding: 0 0.75rem !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.clear-notif-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.close-notif-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 50% !important;
  -webkit-border-radius: 50% !important;
  color: #ffffff !important;
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.close-notif-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.notification-menu-divider {
  height: 1px;
  background: var(--border);
}

.notification-list {
  max-height: 380px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  gap: 0.875rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item:hover {
  background: var(--surface-variant);
}

.notification-item.unread {
  background: rgba(4, 120, 87, 0.05);
}

.dark .notification-item.unread {
  background: rgba(52, 211, 153, 0.05);
}

.notification-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 120, 87, 0.1);
  color: var(--primary);
  flex-shrink: 0;
  font-size: 1.1rem;
  border: 1px solid rgba(4, 120, 87, 0.15);
}

.dark .notification-item-icon {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.15);
}

.notification-item-content {
  flex: 1;
  min-width: 0;
}

.notification-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
  line-height: 1.3;
}

.notification-item-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0.25rem;
  word-break: break-word;
  white-space: pre-wrap;
}

.notification-item-time {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.notification-empty-state {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.notification-empty-state i {
  font-size: 2.25rem;
  opacity: 0.4;
  color: var(--text-tertiary);
}

.notification-empty-state p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
}


.mobile-notification-container {
  display: none;
}

@media (max-width: 768px) {
  .mobile-notification-container {
    display: block;
    margin-left: auto;
    margin-right: 0.5rem;
  }

  .combined-user-section .notification-dropdown {
    display: none !important;
  }

  .notification-menu {
    position: fixed;
    top: 72px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: calc(100vw - 24px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  }
}

.searchable-select-container {
  position: relative;
  flex: 1;
  min-width: 10rem;
}

@media (max-width: 768px) {
  .searchable-select-container {
    width: 100%;
    min-width: unset;
  }
}

.mobile-search-filter-section .searchable-select-container {
  width: 100%;
}

.searchable-select-input {
  width: 100% !important;
  box-sizing: border-box;
  padding-right: 2.5rem !important;
}

.searchable-select-input.has-clear {
  padding-right: 3.8rem !important;
}

.searchable-select-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  pointer-events: none;
  transition: transform 0.2s ease;
}

.searchable-select-clear {
  position: absolute;
  right: 2.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.15s ease, background-color 0.15s ease;
  z-index: 2;
  padding: 0;
}

.searchable-select-clear:hover {
  color: var(--text-primary);
  background-color: var(--surface-variant);
}

.searchable-select-clear.visible {
  display: flex;
}

.searchable-select-container.open .searchable-select-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.searchable-select-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 0.25rem;
  background-color: var(--surface);
  border: 1px solid var(--border-element);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  max-height: 300px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.searchable-select-container.open .searchable-select-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.searchable-select-options {
  max-height: 300px;
  overflow-y: auto;
}

.searchable-select-option {
  padding: 0.75rem 1rem;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.searchable-select-option:hover,
.searchable-select-option.hovered {
  background-color: var(--surface-variant);
}

.searchable-select-option.selected {
  background-color: rgba(4, 120, 87, 0.08);
  color: var(--primary);
  font-weight: 600;
}

.dark .searchable-select-option.selected {
  background-color: rgba(52, 211, 153, 0.12);
  color: var(--primary);
}

.searchable-select-no-results {
  padding: 0.75rem 1rem;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.95rem;
}

.searchable-select-options::-webkit-scrollbar {
  width: 6px;
}

.searchable-select-options::-webkit-scrollbar-track {
  background: transparent;
}

.searchable-select-options::-webkit-scrollbar-thumb {
  background: var(--border-element);
  border-radius: 3px;
}

.searchable-select-options::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

#topupModal .topup-gradient-header {
  background: linear-gradient(135deg, var(--primary) 0%, #667eea 100%) !important;
}

#topupModal .topup-gradient-card {
  background: linear-gradient(135deg, var(--primary) 0%, #667eea 100%) !important;
}

@media (min-width: 768px) {
  #topupModal>div {
    max-width: 56rem !important;
    width: 95% !important;
  }
}

@media (min-width: 1024px) {
  #topupModal>div {
    max-width: 64rem !important;
    width: 90% !important;
  }
}

.product-address-box {
  background-color: var(--surface-variant, rgba(30, 41, 59, 0.6));
  border: 1px solid var(--border, rgba(99, 102, 241, 0.25));
  border-radius: 0.75rem;
  padding: 1rem;
}

.product-address-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary, #f8fafc);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.product-address-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary, #f8fafc);
  margin-bottom: 0.25rem;
}

.product-address-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border, #334155);
  border-radius: 0.375rem;
  background-color: var(--surface, #0f172a);
  color: var(--text-primary, #f8fafc);
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.product-address-input:focus {
  outline: none;
  border-color: var(--primary, #6366f1);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.product-address-input::placeholder {
  color: var(--text-tertiary, #94a3b8);
}

@keyframes singleLineDash {
  0% {
    stroke-dashoffset: 0;
    filter: hue-rotate(0deg);
  }

  100% {
    stroke-dashoffset: -100;
    filter: hue-rotate(360deg);
  }
}

.ambient-light-box {
  position: relative;
  border-radius: 0.875rem;
  padding: 1px;
  margin: 0.5rem 0;
  isolation: isolate;
}

.ambient-border-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 3;
}

.ambient-border-rect {
  fill: none;
  stroke: url(#ambientSingleLineGrad);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 28 72;
  animation: singleLineDash 3.2s linear infinite;
}

.ambient-light-box-inner {
  position: relative;
  border-radius: calc(0.875rem - 1px);
  background: var(--surface, #ffffff);
  color: var(--text-primary);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.1));
  z-index: 1;
}

.dark .ambient-light-box-inner {
  background: var(--surface, #121212);
  color: var(--text-primary);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
}

.product-card-stock-tag.out-of-stock {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(239, 68, 68, 0.92);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
  letter-spacing: 0.3px;
}

.product-table-stock-badge {
  display: inline-block;
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.dark .product-table-stock-badge {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

.product-detail-out-of-stock-notice,
.dialog-out-of-stock-notice {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-left: 4px solid #e11d48;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  color: #1e293b;
  text-align: left;
}

.dark .product-detail-out-of-stock-notice,
.dark .dialog-out-of-stock-notice {
  background: rgba(225, 29, 72, 0.14);
  border-color: rgba(225, 29, 72, 0.35);
  border-left-color: #f43f5e;
  color: #f1f5f9;
}

.out-of-stock-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #be123c;
  margin-bottom: 6px;
}

.dark .out-of-stock-title {
  color: #fb7185;
}

.out-of-stock-available {
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.5;
  margin-bottom: 8px;
}

.dark .out-of-stock-available {
  color: #f1f5f9;
}

.out-of-stock-available strong {
  color: #be123c;
  font-weight: 700;
}

.dark .out-of-stock-available strong {
  color: #fb7185;
}

.out-of-stock-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
  flex-wrap: wrap;
}

.dark .out-of-stock-contact {
  color: #f1f5f9;
}

.out-of-stock-contact span {
  color: #1e293b;
}

.dark .out-of-stock-contact span {
  color: #f1f5f9;
}

.out-of-stock-line-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: #06c755;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 12px;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(6, 199, 85, 0.3);
}

.out-of-stock-line-btn:hover {
  background: #05b04b;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.out-of-stock-line-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}