
:root {
  --light-text-primary: #110b08;
  --light-text-body: #4a2f1a;
  --light-text-muted: #6b4423;
  --light-heading: #1e8449;
  --light-accent: #c0651a;
  --light-accent-warm: #d35400;
  --light-link: #1a6b3c;

  --slurpie-bg-img-light: url('slurpie-bg-v5.webp');
  --slurpie-bg-img-dark: url('slurpie-bg-dark-v5.webp');
  --slurpie-bg-overlay-light: linear-gradient(rgba(250, 249, 246, 0), rgba(250, 249, 246, 0));
  --slurpie-bg-overlay-dark: linear-gradient(rgba(8, 8, 8, 0.4), rgba(8, 8, 8, 0.4));
  
  --slurpie-mesh-light: 
    var(--slurpie-bg-overlay-light),
    radial-gradient(circle at 10% 10%, rgba(255, 233, 214, 0.25) 0%, transparent 50%),
    var(--slurpie-bg-img-light);

  --slurpie-mesh-dark: 
    var(--slurpie-bg-overlay-dark),
    radial-gradient(circle at 0% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    var(--slurpie-bg-img-dark);
}


/* Cross-Device Compatibility & Smooth UI */
html {
  -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape on iOS */
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on Android/iOS */
  scroll-behavior: smooth; /* Smooth scrolling natively */
}


body {
  /* Smooth touch scrolling for iOS */
  -webkit-overflow-scrolling: touch;
  /* Safe area padding for iPhones with notches */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Fix inputs on iOS to prevent zooming and native styling */
input, select, textarea, button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-size: 16px; /* Prevents iOS from zooming in when focusing inputs */
}

.locked-feature {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: auto !important; 
    filter: grayscale(0.95) !important;
    transition: all 0.3s ease;
}

.slurpie-bg-mesh {
  background: var(--slurpie-mesh-light) no-repeat center center fixed;
  background-size: cover;
}

body.dark .slurpie-bg-mesh,
body.dark.slurpie-bg-mesh {
  background: var(--slurpie-mesh-dark) no-repeat center center fixed !important;
  background-size: cover !important;
  background-color: #080808 !important;
}


.global-back-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: transparent;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 25px;
  font-family: 'Fredoka', cursive;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(47, 122, 79, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.global-back-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(47, 122, 79, 0.4);
}

.global-back-btn:active {
  transform: scale(0.95);
}

@media (max-width: 600px) {
  .global-back-btn {
    top: 10px;
    left: 10px;
    padding: 8px 14px;
    font-size: 13px;
  }
}


.logout-btn {
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  font-family: 'Fredoka', cursive;
  font-size: 16px;
  font-weight: 600;
  color: white !important;
  background: linear-gradient(135deg, #ff4757, #ff6b81) !important;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(255, 71, 87, 0.25);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 71, 87, 0.4);
  background: linear-gradient(135deg, #ff6b81, #ff4757) !important;
}

.logout-btn:active {
  transform: translateY(1px) scale(0.98);
}

body.dark .logout-btn {
  box-shadow: 0 6px 15px rgba(255, 71, 87, 0.15);
}

.admin-dashboard-btn {
  width: 100%;
  padding: 12px 20px;
  border: 1.5px solid rgba(255, 215, 0, 0.55);
  border-radius: 12px;
  font-family: 'Fredoka', cursive;
  font-size: 16px;
  font-weight: 600;
  color: #fff !important;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe, #e84393) !important;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(108, 92, 231, 0.38), 0 0 12px rgba(255, 215, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.admin-dashboard-btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 24px rgba(108, 92, 231, 0.55), 0 0 18px rgba(255, 215, 0, 0.45);
  background: linear-gradient(135deg, #74b9ff, #6c5ce7, #fd79a8) !important;
}

.admin-dashboard-btn:active {
  transform: translateY(1px) scale(0.98);
}

body.dark .admin-dashboard-btn {
  border-color: rgba(255, 215, 0, 0.65);
  box-shadow: 0 6px 18px rgba(108, 92, 231, 0.45);
}

.admin-login-btn {
  width: 100%;
  padding: 12px 20px;
  border: 1.5px solid rgba(108, 92, 231, 0.45);
  border-radius: 12px;
  font-family: 'Fredoka', cursive;
  font-size: 16px;
  font-weight: 600;
  color: #fff !important;
  background: linear-gradient(135deg, #2d3436, #6c5ce7) !important;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(108, 92, 231, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.admin-login-btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 22px rgba(108, 92, 231, 0.48);
  background: linear-gradient(135deg, #6c5ce7, #a29bfe) !important;
}

.admin-login-btn:active {
  transform: translateY(1px) scale(0.98);
}

body.dark .admin-login-btn {
  border-color: rgba(162, 155, 254, 0.55);
  box-shadow: 0 6px 18px rgba(108, 92, 231, 0.38);
}


.back-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 12px 26px;
  border-radius: 60px;
  font-family: 'Fredoka', cursive;
  font-size: 15px;
  font-weight: 600;
  color: #2f7a4f;
  cursor: pointer;
  z-index: 5000;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.05),
    0 10px 30px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateX(6px) scale(1.05);
  color: #1a5c37;
  box-shadow:
    0 12px 30px rgba(47, 122, 79, 0.15),
    0 4px 10px rgba(47, 122, 79, 0.1);
  border-color: rgba(47, 122, 79, 0.3);
}

.back-btn:active {
  transform: scale(0.95) translateX(3px);
  transition: all 0.1s;
}


body.dark .back-btn {
  background: rgba(23, 23, 23, 0.9) !important;
  color: #D4AF37 !important;
  border-color: rgba(212, 175, 55, 0.2) !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

body.dark .back-btn:hover {
  background: rgba(45, 45, 45, 0.95) !important;
  color: #FFD700 !important;
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.7) !important;
  border-color: rgba(212, 175, 55, 0.4) !important;
}


.ai-chat-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: white;
  color: #2f7a4f;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 30px rgba(47, 122, 79, 0.2), 0 4px 10px rgba(0,0,0,0.05);
  border: 1px solid rgba(47, 122, 79, 0.1);
  cursor: pointer;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 480px) {
  .ai-chat-btn {
    bottom: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }
}

.ai-chat-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 35px rgba(47, 122, 79, 0.25), 0 6px 15px rgba(0,0,0,0.08);
  background: #f8fafc;
}

body.dark .ai-chat-btn {
  background: #1e1e1e !important;
  color: #D4AF37 !important;
  border-color: rgba(212, 175, 55, 0.3) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6) !important;
}

body.dark .ai-chat-btn:hover {
  background: #2d2d2d !important;
  color: #FFD700 !important;
}

.ai-chatbox {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 48px);
  height: 500px;
  max-height: calc(100vh - 120px);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0,0,0,0.02);
  display: none;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
  animation: chatSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 480px) {
  .ai-chatbox {
    bottom: 80px;
    right: 16px;
    max-width: calc(100vw - 32px);
    height: calc(100vh - 100px);
    border-radius: 20px;
  }
}

body.dark .ai-chatbox {
  background: rgba(20, 20, 20, 0.9) !important;
  border-color: rgba(212, 175, 55, 0.2) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7) !important;
}

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

.ai-header {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 18px 20px;
  color: #1e293b;
  font-family: 'Fredoka', cursive;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.dark .ai-header {
  background: rgba(40, 40, 40, 0.4) !important;
  border-bottom-color: rgba(212, 175, 55, 0.2) !important;
  color: #FFD700 !important;
}

.ai-header span.close-btn {
  cursor: pointer;
  color: #64748b;
  width: 28px;
  height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  background: rgba(0,0,0,0.03);
}

.ai-header span.close-btn:hover {
  background: rgba(0,0,0,0.08);
  color: #0f172a;
}

body.dark .ai-header span.close-btn {
  color: #D4AF37 !important;
  background: rgba(212, 175, 55, 0.1) !important;
}

body.dark .ai-header span.close-btn:hover {
  background: rgba(212, 175, 55, 0.2) !important;
  color: #FFD700 !important;
}

.ai-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-messages::-webkit-scrollbar {
  width: 6px;
}
.ai-messages::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}

.ai-bot, .ai-user {
  max-width: 85%;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.5;
  font-family: 'Inter', sans-serif;
  animation: fadeInMsg 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  word-wrap: break-word;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-bot {
  align-self: flex-start;
  background: #f8fafc;
  color: #334155;
  border-radius: 18px 18px 18px 4px;
  border: 1px solid rgba(0,0,0,0.03);
}

body.dark .ai-bot {
  background: #1c1c1c !important;
  color: #e0d0a0 !important;
  border-color: rgba(212, 175, 55, 0.1) !important;
}

.ai-user {
  align-self: flex-end;
  background: #2f7a4f;
  color: white;
  border-radius: 18px 18px 4px 18px;
}

.ai-input {
  padding: 15px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 10px;
  background: white;
}

.ai-input input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: 0.3s;
}

.ai-input input:focus {
  border-color: #2ecc71;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

.ai-input button {
  background: #2f7a4f;
  color: white;
  border: none;
  padding: 0 15px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.ai-input button:hover {
  background: #27ae60;
}


.ai-suggestions {
  padding: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.5);
  scrollbar-width: none;
}

.ai-suggestions::-webkit-scrollbar {
  display: none;
}

.suggestion-btn {
  background: white;
  border: 1.5px solid #2ecc71;
  color: #27ae60;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  white-space: normal;
  text-align: left;
  line-height: 1.3;
  box-shadow: 0 2px 8px rgba(46, 204, 113, 0.1);
}

.suggestion-btn:hover {
  background: #2ecc71;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.2);
}

.suggestion-btn:active {
  transform: scale(0.95);
}

.ai-suggestions::-webkit-scrollbar {
  width: 4px;
}
.ai-suggestions::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}


.glass-mesh-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--slurpie-mesh-light) no-repeat center center fixed;
  background-size: cover;
}

body.dark .glass-mesh-bg {
  background: var(--slurpie-mesh-dark) no-repeat center center fixed !important;
  background-size: cover !important;
}


.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.performance-render,
#foodGrid,
#ngoGrid {
  content-visibility: auto;
  contain-intrinsic-size: 1px 1000px;
}

.food-card,
.ngo-card {
  contain: paint;
}


.slurpie-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  color: #2f7a4f;
  font-weight: 700;
  font-family: 'Fredoka', cursive;
  gap: 15px;
  font-size: 18px;
  text-align: center;
  width: 100%;
}

.slurpie-spinner {
  font-size: 40px;
  animation: slurpieBounce 1.5s infinite cubic-bezier(0.28, 0.84, 0.42, 1);
  display: inline-block;
  filter: drop-shadow(0 10px 10px rgba(47, 122, 79, 0.2));
}

@keyframes slurpieBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.1) rotate(10deg); }
}

body.dark .slurpie-page-overlay .overlay-text {
  color: #D4AF37 !important;
}
body.dark .slurpie-page-overlay .overlay-dots span {
  background: #D4AF37 !important;
}


body {
  animation: fadeInPage 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInPage {
  from { opacity: 0; }
  to { opacity: 1; }
}


.slurpie-toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  width: 420px;
  max-width: calc(100vw - 40px);
}

@media (max-width: 480px) {
  .slurpie-toast-container {
    top: 16px;
    width: calc(100vw - 32px);
  }
}

.slurpie-toast {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 14px 20px;
  border-radius: 18px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  pointer-events: auto;
  animation: toastSlideDown 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slurpie-toast.hiding {
  animation: toastSlideUp 0.4s cubic-bezier(0.7, 0, 0.84, 0.5) forwards;
}

.slurpie-toast:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.slurpie-toast.success { border-left: 5px solid #2ecc71; }
.slurpie-toast.error { border-left: 5px solid #ff4757; }
.slurpie-toast.info { border-left: 5px solid #3498db; }

.slurpie-toast-icon {
  font-size: 20px;
}

@keyframes toastSlideDown {
  from { opacity: 0; transform: translateY(-30px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastSlideUp {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-20px) scale(0.95); }
}

body.dark .slurpie-toast {
  background: rgba(20, 20, 20, 0.9) !important;
  border-color: rgba(212, 175, 55, 0.2) !important;
  color: #e0d0a0 !important;
}


.glass-card {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

body.dark .glass-card {
  background: rgba(30, 30, 30, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.btn-primary {
  background: transparent;
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(47, 122, 79, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(47, 122, 79, 0.3);
}

.btn-danger {
  background: transparent;
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 75, 43, 0.2);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 75, 43, 0.3);
}


.checkout-btn, .pay-btn, .confirm-btn, .cart-bubble, .action {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

@media (hover: hover) {
  .checkout-btn:hover, .pay-btn:hover, .confirm-btn:hover, .cart-bubble:hover, .action:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 10px 25px rgba(47, 122, 79, 0.5), 0 0 15px rgba(47, 122, 79, 0.3) !important;
    color: white !important;
    border-color: transparent !important;
  }
}

.checkout-btn:active, .pay-btn:active, .confirm-btn:active, .cart-bubble:active, .action:active {
  transform: translateY(1px) scale(0.98) !important;
  box-shadow: 0 4px 10px rgba(47, 122, 79, 0.3) !important;
}

@keyframes slurpiePulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 122, 79, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(47, 122, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 122, 79, 0); }
}

.pay-btn, .confirm-btn {
  animation: slurpiePulse 2s infinite !important;
}




input:not([type="checkbox"]):not([type="radio"]):not(.ai-input input), textarea {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

input:not([type="checkbox"]):not([type="radio"]):not(.ai-input input):focus, textarea:focus {
  transform: scale(1.015);
  box-shadow: 0 5px 15px rgba(47, 122, 79, 0.1), 0 0 0 3px rgba(47, 122, 79, 0.15) !important;
  border-color: #27ae60 !important;
}

body.dark input:not([type="checkbox"]):not([type="radio"]):not(.ai-input input):focus, body.dark textarea:focus {
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1), 0 0 0 3px rgba(212, 175, 55, 0.15) !important;
  border-color: #D4AF37 !important;
}


.card, .glass-panel, .food-card, .info-box, .white-card, .address-card, .form-card, .location-box, .stat-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

@media (hover: hover) {
  .card:hover, .glass-panel:hover, .food-card:hover, .info-box:hover, .white-card:hover, .location-box:hover, .stat-card:hover {
    transform: translateY(-5px) scale(1.01) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(47, 122, 79, 0.05) !important;
  }

  body.dark .card:hover, body.dark .glass-panel:hover, body.dark .food-card:hover, body.dark .info-box:hover, body.dark .white-card:hover, body.dark .location-box:hover, body.dark .stat-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 5px 20px rgba(212, 175, 55, 0.1) !important;
  }
}


.premium-search-container {
    width: 100%;
    max-width: 650px;
    position: relative;
    margin: 0 auto;
    perspective: 1000px;
}

.premium-search {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(0, 0, 0, 0.06); 
    padding: 18px 35px;
    padding-left: 60px;
    border-radius: 60px;
    font-size: 1.1rem;
    color: #333;
    outline: none;
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.03),
        0 15px 35px rgba(0,0,0,0.04); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.25);
}

.premium-search:focus {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    border-color: #60b246;
}

.search-icon-fixed {
    position: absolute;
    left: 26px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    opacity: 0.4;
    transition: 0.3s;
    pointer-events: none;
}

.premium-search:focus + .search-icon-fixed {
    opacity: 1;
    color: #60b246;
    transform: translateY(-50%) scale(1.1);
}


.page-breadcrumb {
    font-size: 10px;
    font-weight: 800;
    color: rgba(96, 178, 70, 0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0.8;
}

.breadcrumb-sep {
    opacity: 0.3;
    font-weight: 300;
}

.interactive-qty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04);
    border: 1px solid #d4d5d9;
    overflow: hidden;
    height: 36px;
    width: 100px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    animation: buttonEntrance 0.6s ease-out;
}

@keyframes buttonEntrance {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.interactive-qty.active {
    justify-content: space-between;
    padding: 0 4px;
    border-color: #60b246;
    background: #f1f8ee; 
    box-shadow: 0 8px 20px rgba(96, 178, 70, 0.15);
}

.interactive-qty.empty:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: #60b246;
    box-shadow: 
        0 8px 25px rgba(96, 178, 70, 0.12),
        0 0 0 4px rgba(96, 178, 70, 0.05); 
}

.qty-add-text {
    color: #60b246;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: 0.3s;
    position: relative;
    pointer-events: none;
    text-transform: uppercase;
}

.interactive-qty.empty::after {
    content: "+";
    position: absolute;
    top: 0px;
    right: 5px;
    color: #60b246;
    font-size: 11px;
    font-weight: 900;
    transition: 0.4s;
}

.interactive-qty.empty:hover::after {
    transform: rotate(90deg) scale(1.4);
    color: #27ae60;
}

.interactive-qty.active .qty-add-text, 
.interactive-qty.active::after {
    display: none;
}

.qty-btn-v2 {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: #60b246;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.qty-btn-v2:hover {
    background: #f1f8ee;
}

.qty-val-v2 {
    font-weight: 800;
    color: #60b246;
    font-size: 1rem;
    flex: 1;
    text-align: center;
}


body.dark .premium-search {
    background: #111 !important;
    border-color: rgba(212, 175, 55, 0.2) !important;
    color: #f1e5ac !important;
}

body.dark .interactive-qty {
    background: #111 !important;
    border-color: rgba(212, 175, 55, 0.2) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
}

body.dark .interactive-qty.active {
    border-color: #D4AF37 !important;
    background: rgba(212, 175, 55, 0.05) !important;
}



.food-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 18px;
    padding: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 6px 24px rgba(0,0,0,0.03),
        0 10px 40px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.food-card:hover {
    transform: translateY(-4px) scale(1.005);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 20px 60px rgba(96, 178, 70, 0.12),
        0 0 0 1px rgba(96, 178, 70, 0.1);
    border-color: rgba(96, 178, 70, 0.2);
}

.seller-banner {
    background: linear-gradient(90deg, #2f7a4f, #27ae60, #f39c12, #e74c3c, #8e44ad, #2f7a4f);
    background-size: 300% 100%;
    animation: sellerGlow 4s linear infinite;
    padding: 6px 14px;
    text-align: center;
    border-radius: 18px 18px 0 0;
}

.seller-name-glow {
    font-family: 'Fredoka', cursive;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

@keyframes sellerGlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.card-body-compact {
    display: flex;
    gap: 10px;
    padding: 12px;
    flex: 1;
}

.card-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.price {
    font-family: 'Fredoka', cursive;
    font-size: 1rem;
    font-weight: 700;
    color: #2f7a4f;
}

body.dark .price {
    color: #FFD700;
}

.card-img-col {
    width: 90px;
    height: 90px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 2px solid white;
}

.card-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

@media (hover: hover) {
  .food-card:hover .card-img-col img {
      transform: scale(1.1);
  }
}

.card-left {
    width: 100%;
    height: 145px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: 3px solid white;
}

.card-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

@media (hover: hover) {
  .food-card:hover .card-left img {
      transform: scale(1.1);
  }
}

.card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
}

.food-name {
    font-family: 'Fredoka', cursive;
    font-size: 0.95rem;
    color: var(--light-food-name, #1a5276) !important;
    line-height: 1.2;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seller-info {
    font-size: 11px;
    font-weight: 600;
    color: #27ae60;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.seller-info span {
    color: var(--light-accent-warm, #d35400);
}

body.dark .seller-info span {
    color: #e0d0a0;
}

.badge-row {
    display: flex;
    gap: 6px;
    margin-top: 2px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.badge {
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge.veg { background: #2f7a4f; color: white; }
.badge.nonveg { background: #c0392b; color: white; }
.badge.bulk { background: #d35400 !important; color: white !important; }

.details {
    font-size: 10.5px;
    color: #6b4a36;
    display: flex;
    flex-direction: column;
    gap: 3px;
}


.stock-track {
    width: 80px;
    height: 3px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 2px;
}

.stock-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stock-bar.high { background: #60b246; }
.stock-bar.medium { background: #f39c12; }
.stock-bar.low { background: #e74c3c; animation: pulseGlow 2s infinite; }

@keyframes pulseGlow {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.details p {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.loc-text { opacity: 0.8; font-size: 10px; }
.dist-text {
    color: #2f7a4f;
    background: rgba(47, 122, 79, 0.08);
    padding: 1px 8px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 10px;
}

.card-actions {
    display: flex;
    justify-content: flex-end;
    padding: 0 12px 10px;
}


body.dark .food-card {
    background: rgba(23, 23, 23, 0.85) !important;
    border-color: rgba(212, 175, 55, 0.15) !important;
}

body.dark .food-name { color: #FFD700 !important; }
body.dark .details { color: #e0d0a0 !important; }
body.dark .seller-banner {
    background: linear-gradient(90deg, #D4AF37, #FFD700, #ff6b6b, #a29bfe, #D4AF37);
    background-size: 300% 100%;
    animation: sellerGlow 4s linear infinite;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

@media (max-width: 1300px) {
    .food-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 950px) {
    .food-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .food-grid {
        grid-template-columns: 1fr;
    }
    .card-img-col {
        width: 75px;
        height: 75px;
    }
}


.iti { width: 100%; }
.iti__country-list { 
  border-radius: 20px !important; 
  padding: 10px !important;
  border: none !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15) !important;
  z-index: 10000 !important;
}
.iti__country { padding: 12px 15px !important; border-radius: 12px !important; }
.iti__country:hover { background: rgba(45, 122, 79, 0.08) !important; }


.iti__selected-flag {
    background: transparent !important;
    padding-left: 18px !important;
    border-radius: 18px 0 0 18px !important;
}

.iti--separate-dial-code .iti__selected-dial-code {
    font-weight: 600 !important;
    color: inherit !important;
    font-size: 14px !important;
    margin-left: 4px !important;
}


input[type="tel"]::placeholder {
    color: #c4b5ac !important;
    opacity: 1 !important;
    font-weight: 500 !important;
}

body.dark input[type="tel"]::placeholder {
    color: #666 !important;
}


.iti:hover .iti__selected-flag {
    background: rgba(0,0,0,0.02) !important;
}

body.dark .iti:hover .iti__selected-flag {
    background: rgba(255,255,255,0.03) !important;
}


.iti--separate-dial-code input[type="tel"] {
    padding-left: 130px !important; 
}

@media (max-width: 480px) {
    .iti--separate-dial-code input[type="tel"] {
        padding-left: 120px !important; 
    }
}

/* Global Legal Consent Modal styles */
.slurpie-consent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.slurpie-consent-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.slurpie-consent-modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 28px;
    padding: 35px 30px;
    max-width: 460px;
    width: 90%;
    text-align: center;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.05),
        0 25px 60px rgba(0, 0, 0, 0.15);
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slurpie-consent-overlay.visible .slurpie-consent-modal {
    transform: scale(1);
}

.slurpie-consent-logo {
    font-size: 48px;
    margin-bottom: 16px;
    display: inline-block;
    filter: drop-shadow(0 8px 10px rgba(47, 122, 79, 0.15));
}

.slurpie-consent-title {
    font-family: 'Fredoka', cursive;
    font-size: 24px;
    font-weight: 700;
    color: #2f7a4f;
    margin-bottom: 12px;
}

.slurpie-consent-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 24px;
}

.slurpie-consent-links {
    color: #2f7a4f;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1.5px dashed rgba(47, 122, 79, 0.4);
    transition: all 0.2s ease;
}

.slurpie-consent-links:hover {
    color: #1a5c37;
    border-bottom-style: solid;
    border-bottom-color: #1a5c37;
}

.slurpie-consent-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    line-height: 1.4;
    color: #4a5568;
    margin-bottom: 24px;
    user-select: none;
}

.slurpie-consent-checkbox-label input {
    appearance: checkbox !important;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    margin-top: 3px;
    cursor: pointer;
    accent-color: #2f7a4f;
    width: 16px;
    height: 16px;
}

.slurpie-consent-btn {
    font-family: 'Fredoka', cursive;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #2f7a4f, #27ae60);
    border: none;
    border-radius: 50px;
    padding: 14px 28px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 8px 20px rgba(47, 122, 79, 0.25);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slurpie-consent-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(47, 122, 79, 0.35);
}

.slurpie-consent-btn:active:not(:disabled) {
    transform: translateY(1px);
}

.slurpie-consent-btn:disabled {
    background: #cbd5e1 !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Dark Mode support */
body.dark .slurpie-consent-modal {
    background: rgba(20, 20, 20, 0.95) !important;
    border-color: rgba(212, 175, 55, 0.2) !important;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 25px 60px rgba(0, 0, 0, 0.7) !important;
}

body.dark .slurpie-consent-logo {
    filter: drop-shadow(0 8px 10px rgba(212, 175, 55, 0.15));
}

body.dark .slurpie-consent-title {
    color: #FFD700 !important;
}

body.dark .slurpie-consent-desc,
body.dark .slurpie-consent-checkbox-label {
    color: #cbd5e1 !important;
}

body.dark .slurpie-consent-checkbox-label input {
    accent-color: #D4AF37 !important;
}

body.dark .slurpie-consent-links {
    color: #D4AF37 !important;
    border-bottom-color: rgba(212, 175, 55, 0.4) !important;
}

body.dark .slurpie-consent-links:hover {
    color: #FFD700 !important;
    border-bottom-color: #FFD700 !important;
}

body.dark .slurpie-consent-btn {
    background: linear-gradient(135deg, #D4AF37, #FFD700) !important;
    color: #080808 !important;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.15) !important;
}

body.dark .slurpie-consent-btn:hover:not(:disabled) {
    box-shadow: 0 12px 25px rgba(212, 175, 55, 0.25) !important;
}

body.dark .slurpie-consent-btn:disabled {
    background: #334155 !important;
    color: #64748b !important;
    box-shadow: none !important;
}

html.low-data body,
html.low-data body.dark {
  background: #fbf7ef !important;
  background-image: none !important;
  background-attachment: scroll !important;
}

html.low-data .glass-mesh-bg,
html.low-data .bg-pattern,
html.low-data body::before {
  display: none !important;
}

html.low-data *,
html.reduced-motion * {
  animation: none !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

html.low-data .glass-card,
html.low-data .card,
html.low-data .glass-panel,
html.low-data .white-card,
html.low-data .food-card,
html.low-data .info-box,
html.low-data .address-card,
html.low-data .form-card,
html.low-data .location-box,
html.low-data .stat-card,
html.low-data .top-right,
html.low-data .account,
html.low-data .pill-nav,
html.low-data .ai-chatbox,
html.low-data .slurpie-toast,
html.low-data .slurpie-consent-modal {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
}

html.low-data .card:hover,
html.low-data .glass-panel:hover,
html.low-data .food-card:hover,
html.low-data .info-box:hover,
html.low-data .white-card:hover,
html.low-data .location-box:hover,
html.low-data .stat-card:hover,
html.low-data .action:hover,
html.low-data .checkout-btn:hover,
html.low-data .pay-btn:hover,
html.low-data .confirm-btn:hover,
html.low-data .cart-bubble:hover {
  transform: none !important;
}

html.low-data .slide:not(.active) {
  display: none !important;
}

@media (max-width: 768px) {
  body,
  body.dark,
  .slurpie-bg-mesh,
  .glass-mesh-bg {
    background-attachment: scroll !important;
  }

  .glass-card,
  .card,
  .glass-panel,
  .white-card,
  .food-card,
  .info-box,
  .address-card,
  .form-card,
  .location-box,
  .stat-card,
  .top-right,
  .account,
  .pill-nav {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* ==========================================================================
   MODERATE PERFORMANCE ENGINE (Low RAM / Slow CPU)
   Preserves 100% of the aesthetics (glassmorphism, shadows) but speeds up scrolling
   ========================================================================== */
html.low-spec-device *,
html.low-spec-device *::before,
html.low-spec-device *::after {
  /* Disable expensive CSS transitions/animations so the UI feels snappy, but looks identical */
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* Invisible DOM Virtualization for long lists/tables */
html.low-spec-device .food-card,
html.low-spec-device .order-card,
html.low-spec-device .listing-card {
  content-visibility: auto;
  contain-intrinsic-size: 260px;
}
