/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Zoftyfy Premium UI — custom.css
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Hide scrollbar */
.hide-scrollbar { -ms-overflow-style:none; scrollbar-width:none; }
.hide-scrollbar::-webkit-scrollbar { display:none; }

/* ── Shimmer skeleton ── */
@keyframes shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
.skeleton {
  background: linear-gradient(90deg,#f0f0f0 25%,#e8e8e8 50%,#f0f0f0 75%);
  background-size:200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius:12px;
}

/* ── Skeleton Image Loading ── */
.skeleton-img {
  background: linear-gradient(90deg,#f0f0f0 25%,#e8e8e8 50%,#f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.skeleton-img.loaded {
  background: none;
  animation: none;
}

/* ── Scroll Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.16,1,0.3,1), transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger delay for child cards */
.reveal-stagger > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > *:nth-child(2) { transition-delay: 60ms; }
.reveal-stagger > *:nth-child(3) { transition-delay: 120ms; }
.reveal-stagger > *:nth-child(4) { transition-delay: 180ms; }
.reveal-stagger > *:nth-child(5) { transition-delay: 240ms; }
.reveal-stagger > *:nth-child(n+6) { transition-delay: 300ms; }

/* ── ADD Button Micro-interaction ── */
.btn-add, .add-to-cart-btn {
  transition: transform 0.12s cubic-bezier(0.34,1.56,0.64,1), 
              background 0.15s ease,
              box-shadow 0.15s ease !important;
}
.btn-add:active, .add-to-cart-btn:active {
  transform: scale(0.88) !important;
}
.btn-add.just-added {
  animation: addPop 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes addPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.25); }
  70%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* ── Quantity Stepper Tap Feedback ── */
.btn-qty-plus:active, .btn-qty-minus:active {
  transform: scale(0.82) !important;
  transition: transform 0.1s ease !important;
}

/* ── Smooth Link / Nav Tap ── */
a { transition: opacity 0.15s ease; }
a:active { opacity: 0.7; }

/* ── Section slide-in ── */
@keyframes sectionSlideUp {
  from { opacity:0; transform:translateY(32px); }
  to   { opacity:1; transform:translateY(0); }
}
.section-animate {
  animation: sectionSlideUp 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

/* ── Image Lazy Load Fade-in ── */
img.lazy-loaded {
  animation: imgFadeIn 0.4s ease forwards;
}
@keyframes imgFadeIn {
  from { opacity:0; }
  to   { opacity:1; }
}

/* ── Product Card ── */
.product-card {
  border-radius:20px;
  background:#fff;
  border:1.5px solid #f1f5f9;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s;
  position:relative;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.product-card:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) scale(1.02) translateY(-4px);
  box-shadow: 0 22px 48px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.04);
  border-color:#dbeafe;
}
.product-card .img-wrap {
  width:100%;
  aspect-ratio:1/1;
  background:linear-gradient(135deg,#f0f4ff 0%,#e8f0fe 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
}
/* Full-cover image — fills entire image area beautifully */
.product-card .img-wrap img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  transition:transform .4s ease;
  display:block;
}
.product-card:hover .img-wrap img { transform:scale(1.08); }
/* Subtle bottom gradient overlay */
.product-card .img-wrap::after {
  content:'';
  position:absolute;
  bottom:0; left:0; right:0;
  height:35%;
  background:linear-gradient(to top, rgba(0,0,0,0.10), transparent);
  pointer-events:none;
  z-index:1;
}


/* ADD button premium */
.btn-add {
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
  color:#fff;
  border:none;
  border-radius:10px;
  padding:6px 14px;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  transition:all .2s ease;
  letter-spacing:.3px;
  box-shadow:0 4px 12px rgba(37,99,235,.35);
}
.btn-add:hover { transform:scale(1.05); box-shadow:0 6px 18px rgba(37,99,235,.45); }

/* Apple Card Wallet Effect */
.glass-wallet-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.holographic-shine {
    background: linear-gradient(105deg, 
        transparent 20%, 
        rgba(255,255,255,0.2) 25%, 
        rgba(255,255,255,0.4) 50%, 
        transparent 55%);
    background-size: 200% 200%;
    animation: shine 4s linear infinite;
    mix-blend-mode: overlay;
}

@keyframes shine {
    0% { background-position: -200% -200%; }
    100% { background-position: 200% 200%; }
}

/* Premium Tags */
.premium-badge {
    background: linear-gradient(45deg, #FFD700, #FDB931, #FFD700);
    background-size: 200% 200%;
    animation: goldShine 3s ease infinite;
    color: #4A3500;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

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

/* Wishlist Heart Burst */
.heart-burst {
    animation: burst 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes burst {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); filter: hue-rotate(-30deg) brightness(1.2); }
    100% { transform: scale(1); }
}

/* Staggered Slide Up */
.animate-slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideUp {
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide Out Left (Cart Removal) */
.slide-out-left {
    animation: slideOutLeft 0.3s ease-in forwards;
}

@keyframes slideOutLeft {
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

.btn-add:active { transform:scale(.96); }

/* Stepper */
.qty-stepper-inner {
  display:flex;
  align-items:center;
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
  color:#fff;
  border-radius:10px;
  padding:4px 6px;
  gap:10px;
  font-weight:900;
  font-size:15px;
  box-shadow:0 4px 12px rgba(37,99,235,.35);
}
.qty-stepper-inner button {
  background:none;
  border:none;
  color:#fff;
  font-size:18px;
  line-height:1;
  cursor:pointer;
  padding:0 2px;
  opacity:.9;
  transition:opacity .15s;
}
.qty-stepper-inner button:hover { opacity:1; }

/* ── Category pill ── */
.cat-pill {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  padding:10px 4px 8px;
  border-radius:16px;
  background:#fff;
  border:1.5px solid #f1f5f9;
  min-width:72px;
  max-width:80px;
  cursor:pointer;
  transition:all .22s ease;
  text-decoration:none;
}
.cat-pill:hover, .cat-pill.active {
  border-color:#bfdbfe;
  background:#eff6ff;
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(37,99,235,.12);
}
.cat-pill .icon {
  width:48px; height:48px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  transition:transform .22s ease;
}
.cat-pill:hover .icon { transform:scale(1.1) rotate(-3deg); }
.cat-pill span { font-size:11px; font-weight:700; color:#374151; text-align:center; line-height:1.2; }

/* ── Quick category bento cards ── */
.bento-card {
  border-radius:20px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:110px;
  font-weight:800;
  font-size:13px;
  cursor:pointer;
  text-decoration:none;
  transition:transform .22s ease, box-shadow .22s ease;
  position:relative;
  overflow:hidden;
}
.bento-card:hover { transform:translateY(-4px) scale(1.02); box-shadow:0 16px 40px rgba(0,0,0,.13); }
.bento-card .emoji { font-size:32px; line-height:1; }

/* ── Filter pill ── */
.filter-pill {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 18px;
  border-radius:100px;
  border:1.5px solid #e5e7eb;
  font-weight:700;
  font-size:13px;
  white-space:nowrap;
  cursor:pointer;
  transition:all .2s ease;
  background:#fff;
  color:#374151;
  text-decoration:none;
}
.filter-pill:hover { border-color:#93c5fd; background:#eff6ff; color:#1d4ed8; }
.filter-pill.active-all    { background:#1e293b; color:#fff; border-color:#1e293b; }
.filter-pill.active-veg    { background:#16a34a; color:#fff; border-color:#16a34a; }
.filter-pill.active-best   { background:#dc2626; color:#fff; border-color:#dc2626; }
.filter-pill.active-trend  { background:#7c3aed; color:#fff; border-color:#7c3aed; }

/* ── Dietary badge ── */
.diet-badge {
  width:16px; height:16px;
  border-radius:3px;
  border:2px solid;
  display:flex;
  align-items:center;
  justify-content:center;
}
.diet-badge::after {
  content:'';
  width:7px; height:7px;
  border-radius:50%;
  background:currentColor;
}
.diet-veg  { border-color:#16a34a; color:#16a34a; }
.diet-nveg { border-color:#dc2626; color:#dc2626; }

/* ── Wishlist btn ── */
.wl-btn {
  position:absolute;
  top:8px; right:8px;
  width:30px; height:30px;
  border-radius:50%;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(6px);
  display:flex;
  align-items:center;
  justify-content:center;
  border:none;
  cursor:pointer;
  box-shadow:0 2px 10px rgba(0,0,0,.10);
  transition:transform .2s, background .2s;
  z-index:3;
}
.wl-btn:hover { transform:scale(1.15); background:#fff1f2; }

/* ── Trending badge ── */
.badge-hot {
  position:absolute;
  top:8px; left:8px;
  background:linear-gradient(135deg,#f59e0b,#ef4444);
  color:#fff;
  font-size:9px;
  font-weight:900;
  padding:2px 7px;
  border-radius:100px;
  text-transform:uppercase;
  letter-spacing:.06em;
  z-index:3;
}

/* ── Premium hero gradient ── */
@keyframes float {
  0%,100% { transform:translateY(0) rotate(0deg); }
  50%      { transform:translateY(-12px) rotate(3deg); }
}
.hero-float { animation:float 5s ease-in-out infinite; }

/* ── Bottom Nav Premium ── */
.bottom-nav {
  position:fixed;
  bottom:0; left:0; right:0;
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border-top:1px solid rgba(0,0,0,.06);
  display:flex;
  justify-content:space-around;
  align-items:center;
  padding:8px 0 12px;
  z-index:50;
  box-shadow:0 -4px 30px rgba(0,0,0,.06);
}
.bottom-nav a {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:3px;
  color:#9ca3af;
  text-decoration:none;
  font-size:10px;
  font-weight:700;
  transition:color .2s;
  position:relative;
  min-width:56px;
  padding:2px 0;
}
.bottom-nav a.active, .bottom-nav a:hover { color:#2563eb; }
.bottom-nav a .nav-icon { font-size:20px; line-height:1; }
.bottom-nav a.active .nav-dot {
  width:4px; height:4px;
  background:#2563eb;
  border-radius:50%;
  position:absolute;
  bottom:-4px;
}

/* ── Smart Cart Bar (Zoftyfy Premium Floating Bar) ── */
#smart-cart-wrapper {
  /* Base: hidden off-screen below */
  position: fixed !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(120px) !important;
  width: 95% !important;
  max-width: 450px !important;
  z-index: 99999 !important;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s ease;
  /* Default bottom: above the Mart/Food bar (58px) + 10px gap */
  bottom: 72px !important;
}
/* On desktop: lower */
@media (min-width: 768px) {
  #smart-cart-wrapper {
    bottom: 20px !important;
  }
}
/* Category pages: right-aligned to product pane */
.category-page #smart-cart-wrapper {
  left: auto !important;
  right: 2% !important;
  transform: translateY(120px) !important;
  width: 71% !important;
  max-width: 450px !important;
}

/* Shown state (added by JS) */
#smart-cart-wrapper.cart-visible {
  transform: translateX(-50%) translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.category-page #smart-cart-wrapper.cart-visible {
  transform: translateY(0) !important;
}

/* The inner bar — reset any positioning, just style it */
#smart-cart-bar, .smart-cart-bar {
  background: linear-gradient(135deg, #0c831f 0%, #0a731b 100%);
  color: white;
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 25px -4px rgba(12,131,31,0.48), 0 4px 12px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.18);
  cursor: pointer;
  text-decoration: none !important;
  width: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#smart-cart-bar:hover, .smart-cart-bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -4px rgba(12,131,31,0.58), 0 6px 16px rgba(0,0,0,0.2);
}
#smart-cart-bar:active, .smart-cart-bar:active {
  transform: translateY(0) scale(0.99);
}


/* ── Section title ── */
.section-title {
  font-size:20px;
  font-weight:900;
  color:#0f172a;
  letter-spacing:-.4px;
}

/* ── Toast ── */
#toast-container {
  position:fixed; bottom:84px; left:50%; transform:translateX(-50%);
  z-index:9999; display:flex; flex-direction:column; gap:8px; align-items:center;
}
.toast {
  background:#1e293b; color:#fff;
  padding:10px 22px; border-radius:100px;
  font-size:13px; font-weight:700;
  opacity:0; transform:translateY(14px);
  transition:opacity .3s, transform .3s;
  white-space:nowrap; box-shadow:0 6px 24px rgba(0,0,0,.22);
}
.toast.show { opacity:1; transform:translateY(0); }
.toast.success { background:#16a34a; }
.toast.error   { background:#dc2626; }
.toast.info    { background:#2563eb; }

/* ── Misc ── */
.line-clamp-2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
@media(max-width:768px) { body { padding-bottom:72px; } }

/* ── Bottom Nav Switcher: ALWAYS fixed at bottom regardless of any parent transform ── */
/* Body must NOT have transform set - it breaks position:fixed. This is a safety override. */
body { transform: none !important; }
#bottom-mode-switcher {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 999999 !important;
  /* translateZ forces GPU compositing layer - ensures fixed works even in edge cases */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* ── Premium Cart Animations ── */
.flying-item {
  position: fixed;
  z-index: 999999;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  pointer-events: none;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease-in, width 0.8s ease, height 0.8s ease;
}

.cart-spring-up {
  animation: springUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes springUp {
  0% { transform: translate(-50%, 150%); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}

/* ── Order Success Checkmark Drawing ── */
.success-checkmark-svg {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: block;
  stroke-width: 3;
  stroke: #10b981;
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px #10b981;
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
  margin: 0 auto;
}
.success-checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3;
  stroke-miterlimit: 10;
  stroke: #10b981;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.success-checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}
@keyframes stroke {
  100% { stroke-dashoffset: 0; }
}
@keyframes scale {
  0%, 100% { transform: none; }
  50% { transform: scale3d(1.1, 1.1, 1); }
}
@keyframes fill {
  100% { box-shadow: inset 0px 0px 0px 60px rgba(16, 185, 129, 0.1); }
}

/* ── Ripple Effect ── */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 600ms linear;
  background-color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

/* ── Radar Pulse (Track Order) ── */
.radar-pulse {
  position: relative;
}
.radar-pulse::before, .radar-pulse::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  background-color: inherit;
  animation: radar-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  z-index: -1;
}
.radar-pulse::after {
  animation-delay: 1s;
}
@keyframes radar-ping {
  75%, 100% { transform: scale(2.5); opacity: 0; }
}

/* ── Slide to Pay Component ── */
.slide-to-pay-container {
  position: relative;
  width: 100%;
  height: 60px;
  background: #f1f5f9;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
}
.slide-to-pay-bg {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0;
  background: linear-gradient(135deg, #16a34a, #15803d);
  transition: width 0.1s;
}
.slide-to-pay-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #64748b;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  pointer-events: none;
  transition: color 0.3s;
  z-index: 10;
}
.slide-to-pay-handle {
  position: absolute;
  top: 4px; left: 4px;
  width: 52px; height: 52px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #16a34a;
  font-size: 18px;
  cursor: grab;
  transition: left 0.1s;
  z-index: 20;
}
.slide-to-pay-handle:active {
  cursor: grabbing;
}
.slide-to-pay-handle.success {
  background: #16a34a;
  color: white;
  transition: all 0.3s;
}
.slide-to-pay-container.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ── Animated Empty Box ── */
.empty-box-animation {
  transform-origin: bottom center;
  animation: emptyBoxShake 3s ease-in-out infinite;
}
@keyframes emptyBoxShake {
  0%, 100% { transform: rotate(0deg); }
  5% { transform: rotate(5deg); }
  10% { transform: rotate(-5deg); }
  15% { transform: rotate(5deg); }
  20% { transform: rotate(-5deg); }
}

/* ── Premium UI Enhancements ── */

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

/* Page Transition */
/* IMPORTANT: Do NOT use transform in body-level animations — breaks position:fixed */
.page-enter {
  animation: pageFadeIn 0.35s ease forwards;
}
@keyframes pageFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
/* Only use transform version on non-body elements */
.page-enter-content {
  animation: pageFadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes pageFadeInUp {
  0% { opacity: 0; transform: translateY(15px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Ripple Effect for Buttons */
.ripple-btn {
  position: relative;
  overflow: hidden;
  transform: translate3d(0,0,0);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ripple-btn:active {
  transform: scale(0.96);
}
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}
@keyframes ripple-animation {
  to { transform: scale(4); opacity: 0; }
}

/* Product Card Hover Enhancements */
.product-card {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  }
}
.product-card:active {
  transform: scale(0.98);
}

/* Slide to Pay Glow Effect */
.slide-to-pay-container {
  overflow: hidden;
}
.slide-to-pay-bg::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: sweep 2.5s infinite;
}
@keyframes sweep {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* Toast Enhancements */
#toast-container {
  z-index: 9999;
  pointer-events: none;
}
.premium-toast {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}
.toast-progress {
  position: absolute;
  bottom: 0; left: 0; height: 3px;
  background: #10b981;
  width: 100%;
  animation: toastProgress linear forwards;
}
@keyframes toastProgress {
  0% { width: 100%; }
  100% { width: 0%; }
}

/* Badge Bounce */
.badge-bounce {
  animation: badgePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes badgePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   SEASONAL THEMES
   ========================================================================== */

/* Winter Theme */
.theme-winter {
  background-color: #f0f8ff !important;
}
.theme-winter .bg-green-600,
.theme-winter .bg-green-500 {
  background-color: #0284c7 !important; /* icy blue */
}
.theme-winter .text-green-600 {
  color: #0284c7 !important;
}
.theme-winter .slide-to-pay-bg {
  background: linear-gradient(135deg, #38bdf8, #0284c7) !important;
}
.theme-winter .slide-to-pay-handle {
  color: #0284c7 !important;
}
.theme-winter .slide-to-pay-handle.success {
  background: #0284c7 !important;
  color: white !important;
}
/* Snow particles container */
.snowflakes {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 9999;
}
.snowflake {
  position: absolute;
  top: -10px;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  animation: fall linear infinite;
  box-shadow: 0 0 5px rgba(255,255,255,0.8);
}
@keyframes fall {
  0% { transform: translateY(-10px) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(100vh) translateX(20px); opacity: 0; }
}

/* Spring Theme */
.theme-spring {
  background-color: #fdfbf7 !important;
}
.theme-spring .bg-green-600 {
  background-color: #ec4899 !important; /* pink */
}
.theme-spring .text-green-600 {
  color: #ec4899 !important;
}
.theme-spring .slide-to-pay-bg {
  background: linear-gradient(135deg, #f472b6, #ec4899) !important;
}
.theme-spring .slide-to-pay-handle { color: #ec4899 !important; }
.theme-spring .slide-to-pay-handle.success { background: #ec4899 !important; color: white !important; }
.petal {
  position: absolute;
  top: -20px;
  width: 10px; height: 15px;
  background: #fbcfe8;
  border-radius: 50% 0 50% 0;
  opacity: 0.7;
  animation: fallPetal linear infinite, spin linear infinite;
}
@keyframes fallPetal {
  0% { transform: translateY(-20px); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { transform: translateY(100vh); opacity: 0; }
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Monsoon Theme */
.theme-monsoon { background-color: #f1f5f9 !important; }
.theme-monsoon .bg-green-600 { background-color: #0f766e !important; } /* teal */
.theme-monsoon .text-green-600 { color: #0f766e !important; }
.theme-monsoon .slide-to-pay-bg { background: linear-gradient(135deg, #14b8a6, #0f766e) !important; }
.theme-monsoon .slide-to-pay-handle { color: #0f766e !important; }
.theme-monsoon .slide-to-pay-handle.success { background: #0f766e !important; color: white !important; }
.raindrop {
  position: absolute;
  top: -20px;
  width: 2px; height: 15px;
  background: rgba(14, 165, 233, 0.6);
  animation: rainDrop linear infinite;
}
@keyframes rainDrop {
  0% { transform: translateY(0); }
  100% { transform: translateY(100vh); }
}

/* Diwali Theme */
.theme-diwali { background-color: #fffbeb !important; }
.theme-diwali .bg-green-600 { background-color: #d97706 !important; } /* warm gold */
.theme-diwali .text-green-600 { color: #d97706 !important; }
.theme-diwali .slide-to-pay-bg { background: linear-gradient(135deg, #f59e0b, #d97706) !important; }
.theme-diwali .slide-to-pay-handle { color: #d97706 !important; }
.theme-diwali .slide-to-pay-handle.success { background: #d97706 !important; color: white !important; }

/* Holi Theme */
.theme-holi { background-color: #fdf2f8 !important; }
.theme-holi .bg-green-600 { background: linear-gradient(135deg, #ec4899, #8b5cf6, #06b6d4) !important; border:none; }
.theme-holi .text-green-600 { color: #a855f7 !important; }
.theme-holi .slide-to-pay-bg { background: linear-gradient(135deg, #ec4899, #8b5cf6, #06b6d4) !important; }
.theme-holi .slide-to-pay-handle { color: #8b5cf6 !important; }
.theme-holi .slide-to-pay-handle.success { background: #8b5cf6 !important; color: white !important; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Native App Transitions & Touch Micro-Interactions (transitions-dev-ui)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Page Smooth Entrance */
@keyframes pageEntrance {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.app-page-enter {
  animation: pageEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Modal Bottom Sheet Slide Up */
@keyframes bottomSheetSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.app-bottom-sheet {
  animation: bottomSheetSlideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Instant Touch Feedback */
.app-touch-scale {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.12s ease;
}
.app-touch-scale:active {
  transform: scale(0.95);
  opacity: 0.88;
}

/* Premium Card Elevate */
.app-card-hover {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.app-card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

/* Force Mobile Web App View (Amazon/Flipkart Mobile App Style) */
@media (max-width: 768px) {
  html {
    /* DO NOT set overflow:hidden on html — it breaks position:fixed for bottom nav! */
    width: 100% !important;
    max-width: 100vw !important;
    -webkit-text-size-adjust: 100% !important;
  }
  body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    touch-action: manipulation;
  }
}

