/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Body */
body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #ffffff;
  color: #111827;
  padding-bottom: 70px; /* Prevent content from hiding behind bottom nav */
}





/* ===== GLOBAL LOADING SYSTEM ===== */
#global-loader {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #4f46e5, #22c55e);
  z-index: 9999;
  transition: width 0.3s ease;
}

.product-card.skeleton {
  animation: skeleton-pulse 1.5s infinite ease-in-out;
  pointer-events: none;
}

.product-card.skeleton .skeleton-img {
  height: 180px;
  background: #e5e7eb;
  border-radius: 8px;
}

.product-card.skeleton .skeleton-text {
  height: 14px;
  background: #e5e7eb;
  margin-top: 10px;
  border-radius: 4px;
}

.product-card.skeleton .skeleton-text.small {
  width: 60%;
}

@keyframes skeleton-pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

.button-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.button-loading::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: button-spin 0.8s linear infinite;
}

@keyframes button-spin {
  to { transform: rotate(360deg); }
}

/* ===== FULL SCREEN CENTER LOADER (app style) ===== */
button:disabled {
  cursor: not-allowed;
}

.btn-loading {
  pointer-events: none;
  opacity: 0.9;
}

#appLoader {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
}
#appLoader.active {
  visibility: visible;
  opacity: 1;
}
#appLoader .app-spinner {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 8px solid rgba(255,255,255,0.2);
  border-top: 8px solid #ffffff;
  animation: spinApp 0.8s linear infinite;
}
@keyframes spinApp {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transition: 0.3s ease;
  z-index: 10000;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
}

.network-error {
  text-align: center;
  padding: 20px;
  color: #ef4444;
  font-weight: 500;
}

/* Navbar (top) */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}


.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* Shake animation */
@keyframes shake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  10% { transform: translateX(-5px) rotate(-2deg); }
  20% { transform: translateX(5px) rotate(2deg); }
  30% { transform: translateX(-5px) rotate(-2deg); }
  40% { transform: translateX(5px) rotate(2deg); }
  50% { transform: translateX(-3px) rotate(-1deg); }
  60% { transform: translateX(3px) rotate(1deg); }
  70% { transform: translateX(-3px) rotate(-1deg); }
  80% { transform: translateX(3px) rotate(1deg); }
  90% { transform: translateX(-2px) rotate(0deg); }
}

.logo.shake {
  animation: shake 0.6s ease-in-out;
}


.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}


.logo-text {
  display: flex;
  align-items: baseline;
  gap: 2px;
}


.logo-main {
  font-weight: 700;
  font-size: 1.15rem;
}


.logo-sub {
  font-weight: 600;
  font-size: 0.95rem;
  color: #0ea5e9;
}


.logo-deal {
  color: #000000;
}


.logo-z {
  color: #2563eb;
}


/* Nav menu (top links) */
.nav-menu {
  display: flex;
  gap: 10px;
}


.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #374151;
  text-decoration: none;
  font-size: 0.9rem;
}


.nav-link i {
  font-size: 0.9rem;
}


.nav-link:hover {
  background: rgba(14, 165, 233, 0.12);
  color: #111827;
}


.nav-link.active {
  background: #22c55e;
  color: #ffffff;
}


/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}


.hamburger span {
  width: 20px;
  height: 2px;
  background: #111827;
  border-radius: 4px;
}


/* Banner (unused on home now but kept) */
.banner {
  position: relative;
  max-width: 1100px;
  margin: 14px auto 0;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}


.banner img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}


.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.7),
    rgba(15, 23, 42, 0.05)
  );
  color: #f9fafb;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 24px;
}


.banner-overlay h1 {
  font-size: 1.5rem;
  margin-bottom: 6px;
  color: #e5f3ff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}


.banner-overlay p {
  font-size: 0.95rem;
  color: #e5e7eb;
}


/* Top shell: dark band under navbar */
.top-shell {
  background: #020617;        /* dark blue band */
  padding: 10px 0 18px;       /* change these to make band taller/shorter */
}


.top-shell-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}


/* Top search (now inside top-shell) */
.top-search {
  max-width: none;
  margin: 0;
  padding: 0 0 10px;
}


.top-search-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 6px 10px;
}


.top-search-inner i {
  color: #9ca3af;
}


.top-search-inner input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #111827;
  font-size: 0.95rem;
}


.top-search-inner button {
  border: none;
  background: #0f766e;
  color: #f9fafb;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Main layout */



/* Pages */
.page {
  display: none;
}


.page.active {
  display: block;
}




.category-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  box-sizing: border-box;
}

.category-row::-webkit-scrollbar {
  display: none;
}


.cat-btn {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 999px;
  padding: 6px 12px;
  color: #374151;
  font-size: 0.85rem;
  cursor: pointer;
}


.cat-btn.active {
  background: #22c55e;
  color: #ffffff;
}



/* Product card full width inside grid */
.product-card {
  width: 100%;
}

/* Mobile-first (already 2 columns) */
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet */
@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop */
@media (min-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}



.product-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #111827;
}


/* SMALL image box for cards */
.product-image.big-card {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #ffffff;
}


/* Product image itself */
.product-img-real {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
}


.product-info h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: #111827;
}


.product-desc {
  font-size: 0.8rem;
  color: #4b5563;
}


.price {
  font-weight: 600;
  margin-top: 2px;
  color: #111827;
}


.old-price {
  font-weight: 400;
  font-size: 0.8rem;
  color: #9ca3af;
  text-decoration: line-through;
  margin-left: 4px;
}


.rating {
  font-size: 0.8rem;
  color: #f59e0b;
}


.product-card p {
  color: #111827;
}


.buy-buttons {
  margin-top: 4px;
}


.buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  font-size: 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  color: #020617;
}


.buy-btn.amazon {
  background: #fbbf24;
}


.buy-btn.flipkart {
  background: #38bdf8;
}


/* Search page */
.search-container {
  margin-top: 12px;
}


.search-container h2 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}


.search-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}


.search-bar input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 6px 10px;
  background: #ffffff;
  color: #111827;
}


.search-bar button {
  border: none;
  background: #0f766e;
  color: #f9fafb;
  width: 34px;
  border-radius: 999px;
  cursor: pointer;
}


/* ===== BOTTOM NAVIGATION (VISIBLE ON ALL DEVICES) ===== */
.bottom-nav {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 60px !important;
  background: #ffffff !important;
  display: flex !important;
  justify-content: space-around !important;
  align-items: center !important;
  border-top: 1px solid #e5e7eb !important;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
  z-index: 999999 !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Universal rule - applies to ALL screen sizes */
.bottom-nav {
  display: flex !important;
}

/* Force visibility on all screen sizes - tablets, laptops, desktops */
@media (min-width: 768px) {
  .bottom-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Specific laptop breakpoints */
@media (min-width: 768px) and (max-width: 1366px) {
  .bottom-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    bottom: 0 !important;
  }
}

@media (min-width: 1024px) {
  .bottom-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

@media (min-width: 1280px) {
  .bottom-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Ensure visibility on all desktop/laptop sizes */
@media (min-width: 768px) and (max-width: 1920px) {
  .bottom-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}



.bottom-item {
  position: relative;
  background: transparent;
  border: none;
  color: #6b7280;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.7rem;
  gap: 2px;
  cursor: pointer;
}


.bottom-item i {
  font-size: 1rem;
}


.bottom-item.active,
.bottom-item:focus {
  color: #22c55e;
}


/* Typography */
h1,
h2 {
  color: #111827;
}


p {
  color: #374151;
  line-height: 1.5;
}

/* Desktop tweaks */
@media (min-width: 768px) {
  .hamburger {
    display: none;
  }


  .nav-menu {
    display: flex;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
}




/* Mobile menu */
@media (max-width: 767px) {
  .nav-container {
    position: relative;
  }


  .nav-menu {
    position: absolute;
    top: 56px;
    right: 16px;
    left: auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 6px 8px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
  }


  .nav-menu.open {
    display: flex;
  }


  .nav-link {
    width: 100%;
    justify-content: flex-start;
  }


  .hamburger {
    display: flex;
  }
}


/* Auth pages */
.auth-form {
  max-width: 420px;
  margin: 12px auto 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}


.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
  color: #374151;
}


.auth-form input {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  font-size: 0.9rem;
  outline: none;
  background: #f9fafb;
}


.auth-form input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2);
  background: #ffffff;
}


.primary-btn {
  border: none;
  background: #22c55e;
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
}


.primary-btn:hover {
  background: #16a34a;
}


.auth-switch {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 4px;
}


.inline-link {
  color: #0ea5e9;
  text-decoration: none;
  font-weight: 500;
}


.inline-link:hover {
  text-decoration: underline;
}


/* Info cards */
#login h2,
#signup h2,
#account h2,
#support h2,
#about h2 {
  margin-bottom: 8px;
}


.info-card {
  max-width: 600px;
  margin: 10px auto 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 14px 18px 16px;
}


.info-card p {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 6px;
}


.info-highlight {
  font-weight: 600;
  color: #111827;
}


.info-email {
  font-weight: 600;
  color: #0ea5e9;
  word-break: break-all;
}


/* Favourite button */
.product-card .buy-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 4px;
}


.fav-btn {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #f97373;
  background: rgba(248, 113, 113, 0.08);
  color: #f97373;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease,
    box-shadow 0.1s ease;
}


.fav-btn:hover {
  background: #f97373;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(248, 113, 113, 0.4);
}


.fav-btn:active {
  transform: translateY(0);
  box-shadow: none;
}


.fav-btn.saved {
  background: rgba(34, 197, 94, 0.08);
  border-color: #22c55e;
  color: #16a34a;
}


/* Favourites card */
.favourites-card {
  max-width: 600px;
  margin: 16px auto 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}


.favourites-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #111827;
}


.favourites-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}


.fav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  font-size: 0.85rem;
}


.fav-item-main {
  display: flex;
  flex-direction: column;
}


.fav-item-name {
  font-weight: 500;
  color: #111827;
}


.fav-item-meta {
  color: #6b7280;
  font-size: 0.75rem;
}


.fav-item-platform {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}


.fav-item-platform.amazon {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
}


.fav-item-platform.flipkart {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}


.empty-msg {
  color: #6b7280;
  font-size: 0.8rem;
}


/* Price styling extras */
.discount {
  color: #16a34a;
  font-size: 0.8rem;
  margin-left: 4px;
  font-weight: 600;
}


/* Result count text */
.result-count {
  margin: 0 0 2px;
  font-size: 0.8rem;
  color: #4b5563;
}


.result-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  color: #15803d;
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 500;
}


.result-count-badge span {
  font-weight: 600;
}


/* Cart badge */
.cart-badge {
  position: absolute;
  top: 2px;
  right: 18px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Cart page */
#cart {
  margin-top: 10px;
}


.cart-container {
  max-width: 600px;
  margin: 10px auto 0;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 12px 14px 14px;
}


.cart-empty {
  font-size: 0.9rem;
  color: #6b7280;
}


.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}


.cart-summary-title {
  font-size: 0.9rem;
  color: #4b5563;
}


.cart-summary-amount {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}


.cart-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}


.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 6px 8px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  font-size: 0.85rem;
}


.cart-item-main {
  display: flex;
  align-items: center;
  gap: 10px;
}


.cart-item-thumb img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}


.cart-item-text {
  display: flex;
  flex-direction: column;
}


.cart-item-name {
  font-weight: 500;
  color: #111827;
}


.cart-item-meta {
  color: #6b7280;
  font-size: 0.75rem;
}


.cart-item-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}


.cart-remove {
  border: none;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.75rem;
  background: rgba(248, 113, 113, 0.12);
  color: #b91c1c;
  cursor: pointer;
}


.cart-remove:hover {
  background: rgba(248, 113, 113, 0.2);
}


.cart-buy-link {
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.75rem;
  background: #22c55e;
  color: #ffffff;
  text-decoration: none;
}


.cart-buy-link:hover {
  background: #16a34a;
}


.cart-note {
  margin-top: 4px;
  font-size: 0.75rem;
  color: #6b7280;
}


/* Add-to-cart on cards */
.cart-btn {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #0ea5e9;
  background: rgba(14, 165, 233, 0.08);
  color: #0369a1;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease,
    box-shadow 0.1s ease;
}


.cart-btn:hover {
  background: #0ea5e9;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.4);
}


.cart-btn:active {
  transform: translateY(0);
  box-shadow: none;
}


/* Guides tables */
.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 0.8rem;
}


.guide-table th,
.guide-table td {
  border: 1px solid #e5e7eb;
  padding: 6px 8px;
  text-align: left;
}


.guide-table th {
  background: #f9fafb;
  font-weight: 600;
}


.guide-table a {
  color: #0ea5e9;
  text-decoration: none;
  font-weight: 500;
}


.guide-table a:hover {
  text-decoration: underline;
}


/* Guides page layout */
#guides.page.active {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}


#guides {
  background: #f3f4f6;
}


#guides .info-card {
  max-width: 1100px;
  width: 100%;
  margin: 10px auto 0;
  padding-left: 16px;
  padding-right: 16px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
  padding-top: 12px;
  padding-bottom: 14px;
}


#guides h2 {
  font-size: 1.3rem;
  margin-top: 10px;
  text-align: left;
}


.guides-subtitle {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 4px 16px 10px;
}


#guides .info-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}


#guides .info-card p {
  font-size: 0.8rem;
  color: #6b7280;
}


/* ---------- PRODUCT DETAIL: DESKTOP + MOBILE ---------- */


#productDetail.page.active {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  background: #f3f4f6;
}


#productDetail .info-card {
  max-width: none;
  width: 100%;
  margin: 0;
  border-radius: 0;
}


/* Grid layout */
.product-detail-layout {
  max-width: 1400px;
  margin: 0 auto 16px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 520px minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
}


.product-detail-left {
  width: 100%;
}


.product-detail-right {
  max-width: 900px;
}


/* Big image */
#detailImageBox {
  position: relative;
  width: 480px;
  height: 480px;
  margin: 24px auto;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
}


#detailImageBox img.product-img-real {
  width: 100%;
  height: auto;          /* ✅ FIX */
  max-height: 100%;
  object-fit: contain;
  display: block;
}



/* Gallery arrows */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  width: 36px;
  height: 52px;
  cursor: pointer;
  border-radius: 6px;
}


/* Text on detail */
.product-detail-title {
  font-size: 1.4rem;
  line-height: 1.5;
  max-width: 820px;
}


.product-detail-price {
  color: #b12704;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 8px 0;
}


.product-detail-meta {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 12px;
}


/* Mobile product detail */
@media (max-width: 768px) {
  #productDetail .info-card {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
  }


  .product-detail-layout {
    display: block;
    padding: 0 16px;
  }


  #detailImageBox {
    width: 260px;
    height: 260px;
    margin: 12px auto;
  }


  .product-detail-right {
    max-width: 100%;
  }
}
/* Big dark-blue band for search + filters */
.top-shell {
  background: #020617;      /* dark navy */
  padding: 16px 0 20px;     /* increase/decrease to change height */
}


/* Center content inside the band */
.top-shell-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}


/* Let the shell control spacing instead of top-search */
.top-search {
  max-width: none;
  margin: 0;
  padding: 0 0 10px;
}


/* Slightly tighter spacing under chips and result text */
.category-row {
  margin: 10px 0 8px;
}


.result-count {
  margin: 0 0 2px;
}
/* =========================
   SPIN PAGE – PREMIUM SAFE
   ========================= */

#spin {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

/* container */
.spin-container {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* header */
.spin-header {
  text-align: center;
}
.spin-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111827;
}
.spin-header p {
  font-size: 0.9rem;
  color: #6b7280;
}

/* card base */
.spin-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
  text-align: center;
}

/* progress */
.spin-progress {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0;
}

#spinProgressFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,#22c55e,#16a34a);
  transition: width 0.35s ease;
}

/* wheel card */
.spin-wheel-card {
  background: linear-gradient(180deg,#ecfeff,#ffffff);
  border-radius: 24px;
  padding: 22px 16px;
  text-align: center;
  box-shadow: 0 18px 45px rgba(14,165,233,0.25);
}

.spin-wheel-centering {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 16px;
}

.spin-wheel-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spin-wheel-wrapper canvas {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.spin-wheel-wrapper.spinning {
  transform: scale(1.03);
  transform-origin: center center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

#spinCanvas {
  display: block;
  margin: 0 auto;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* CTA button */
.spin-cta {
  border: none;
  background: linear-gradient(135deg,#22c55e,#16a34a);
  color: #ffffff;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(34,197,94,0.45);
}

.spin-cta:disabled {
  background: #d1d5db;
  color: #6b7280;
  box-shadow: none;
  cursor: not-allowed;
}

/* helper text */
.spin-hint {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 6px;
}

/* wallet rows */
.wallet-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-top: 8px;
}

/* upi note */
.upi-note {
  font-size: 0.8rem;
  color: #6b7280;
}

/* ===== PRODUCT DETAIL: FULL BLUE BACKGROUND + WHITE CARD ===== */

#productDetail.page.active {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  background: #020617;            /* same dark blue as .top-shell */
}

/* keep dark band continuous */
#productDetail .top-shell {
  background: #020617;
  padding: 16px 0 80px;
}

/* center content like home */
#productDetail .top-shell-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* main white card for product details */
.product-detail-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.55);
}

/* left: image area */
.product-detail-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

#detailImageBox {
  width: 100%;
  max-width: 460px;
  border-radius: 12px;
  overflow: hidden;
}

/* right: text area */
.product-detail-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-detail-title {
  font-size: 1.4rem;
  line-height: 1.4;
  font-weight: 600;
  color: #020617;
}

.product-detail-price {
  color: #b12704;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 8px 0;
}

.product-detail-meta {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 12px;
}

/* “More products” under detail uses similar card style */
#moreProductsCard {
  margin-top: 24px;
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 20px 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
}

/* mobile layout */
@media (max-width: 768px) {
  .product-detail-card {
    grid-template-columns: 1fr;
    padding: 18px 16px 20px;
    gap: 20px;
  }

  #detailImageBox {
    max-width: 260px;
    margin: 12px auto;
  }
}
/* ===== PRODUCT DETAIL WITHOUT BLUE BACKGROUND ===== */

/* Page background for product details */
#productDetail.page.active {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  background: #f3f4f6;   /* light gray, not dark blue */
}

/* Top band on product detail */
#productDetail .top-shell {
  background: #f3f4f6;   /* same as page background */
  padding: 16px 0 20px;  /* adjust if you want more/less space */
}

/* Inner container */
#productDetail .top-shell-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* White card around content */
#productDetail .info-card,
#productDetail .product-detail-card {
  max-width: none;
  width: 100%;
  margin: 0;
  border-radius: 16px;
  background: #ffffff;
}

/* Layout of product detail */
.product-detail-layout {
  max-width: 1400px;
  margin: 0 auto 16px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 520px minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
}

/* Left & right columns */
.product-detail-left {
  width: 100%;
}

.product-detail-right {
  max-width: 900px;
}

/* Big image box */
#detailImageBox {
  position: relative;
  width: 480px;
  height: 480px;
  margin: 24px auto;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
}

#detailImageBox img.product-img-real {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Title, price, meta */
.product-detail-title {
  font-size: 1.4rem;
  line-height: 1.5;
  max-width: 820px;
}

.product-detail-price {
  color: #b12704;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 8px 0;
}

.product-detail-meta {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 12px;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .product-detail-layout {
    display: block;
    padding: 0 16px;
  }

  #detailImageBox {
    width: 260px;
    height: 260px;
    margin: 12px auto;
  }

  .product-detail-right {
    max-width: 100%;
  }
}
.logo-img {
  width: 40px;      /* increase/decrease */
  height: 40px;
  border-radius: 50%;  /* keep circle, or remove if logo is square */
  object-fit: cover;
}
.logo-deal {
  font-weight: 700;
  color: #000000;
}

.logo-z {
  font-weight: 700;
  color: #ff7900;   /* orange */
}
.product-card {
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,.15);
}
.product-card img {
  transition: transform .25s ease;
}
.product-card:hover img {
  transform: scale(1.05);
}
.price {
  font-size: 20px;
  font-weight: 700;
  color: #dc2626;
}
.mrp {
  text-decoration: line-through;
  color: #9ca3af;
  margin-left: 6px;
}
.discount {
  color: #16a34a;
  font-weight: 600;
  margin-left: 6px;
}
.product-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.product-actions button {
  flex: 1;
}
.category-chip {
  transition: all .2s ease;
}
.category-chip.active {
  background: #22c55e;
  color: #fff;
}
.product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;   /* ✅ ADD THIS LINE */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-detail-image {
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
}
.product-card {
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
}
.product-actions button {
  border-radius: 20px;
  font-weight: 600;
}
.discount {
  background: #dcfce7;
  color: #166534;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
}
.product-image {
  background: #f3f4f6;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 180px;
  object-fit: contain;
}

.price {
  font-size: 18px;
  font-weight: 700;
  color: #dc2626;
}

.mrp {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 13px;
}

.discount {
  color: #16a34a;
  font-weight: 600;
}
.product-card {
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}
.product-actions button {
  border-radius: 999px;
  font-weight: 600;
}

.buy-btn {
  background: #facc15;
}

.cart-btn {
  border: 1px solid #3b82f6;
  color: #3b82f6;
}
.buy-btn {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.deal-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #16a34a;
  color: white;
  font-size: 0.7rem;
  padding: 4px 6px;
  border-radius: 6px;
  font-weight: 600;
}
.trust-note {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 8px;
  text-align: center;
}
/* ============================= */
/* PRODUCTS GRID — CLEAN VERSION */
/* ============================= */

/* MOBILE FIRST: 1 product per row */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}

/* Tablet: 2 per row */
@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Laptop / Desktop: 4 per row */
@media (min-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Product card */
.product-card {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
}

/* Product image */
.product-image img {
  width: 100%;
  height: 160px;
  object-fit: contain;
}


/* Best Deal badge */
.deal-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #16a34a;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 600;
}
/* ===== PRODUCT DETAIL FULL WIDTH (MOBILE) ===== */
@media (max-width: 768px) {

  

  /* Product detail layout full width */
  .product-detail {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px !important; /* keep small inner padding */
    margin: 0 !important;
    grid-template-columns: 1fr !important;
  }

  /* Image & content full width */
  .product-detail-left,
  .product-detail-right {
    width: 100% !important;
    margin: 0 !important;
  }
}
/* ============================= */
/* 🔥 FULL-WIDTH PRODUCT DETAIL (MOBILE) 🔥 */
/* ============================= */



  /* Product detail container */
  .product-detail {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
  }

  /* Left & Right blocks */
  .product-detail-left,
  .product-detail-right {
    margin: 0 !important;
    padding: 12px !important; /* internal spacing only */
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important; /* edge-to-edge look */
  }

  /* Image must touch screen edges */
  .product-detail-left img {
    width: 100%;
    max-height: none;
    border-radius: 0 !important;
  }


.product-card {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.product-card * {
  pointer-events: auto;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: #111;
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.8;
}

.gallery-prev {
  left: 10px;   /* 👈 LEFT SIDE */
}

.gallery-next {
  right: 10px;  /* 👉 RIGHT SIDE */
}
/* ✅ SINGLE SOURCE OF TRUTH — MOBILE SAFE AREA */
@media (max-width: 768px) {
  .page {
    padding-bottom: 90px; /* bottom-nav height + safe gap */
  }
}
/* ===== MOBILE: PRODUCT DETAIL FULL WIDTH FIX ===== */
@media (max-width: 768px) {

  /* remove side padding from blue shell */
  #productDetail .top-shell-inner {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
  }

  /* make product card full width */
  .product-detail-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* image container full width */
  #detailImageBox {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

}

/* ===== MOBILE FIX: MORE PRODUCTS FULL WIDTH ===== */
@media (max-width: 768px) {

  /* remove side padding from container */
  #productDetail .top-shell-inner {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
  }

  /* remove card look for "More products" */
  #moreProductsCard {
    margin: 0 !important;
    border-radius: 0 !important;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* force grid to full width */
  #moreProductsList {
    width: 100% !important;
    margin: 0 !important;
  }

  /* ensure product cards don’t shrink container */
  #moreProductsList .product-card {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* ===== TRENDING FILTER BUTTONS (Deals page) ===== */
.trending-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px 12px;
}

.trending-filter-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.trending-filter-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.trending-filter-btn.active {
  background: #2874f0;
  color: #fff;
  border-color: #2874f0;
}

/* ===== CATEGORY HORIZONTAL SCROLL (desktop + mobile) ===== */
.category-scroll-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  padding: 12px 12px 8px;
  background: transparent;
}

.category-scroll-wrapper::-webkit-scrollbar {
  height: 6px;
}

.category-scroll-wrapper::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 10px;
}

.category-scroll-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.category-scroll {
  display: flex;
  gap: 24px;
  min-width: max-content;
}

.category-scroll-wrapper .category-strip,
.category-scroll-wrapper .categories {
  overflow: visible;
  scrollbar-width: unset;
}

.category-scroll-wrapper .category-strip::-webkit-scrollbar,
.category-scroll-wrapper .categories::-webkit-scrollbar {
  display: none;
}

/* ===== FLIPKART STYLE CATEGORY STRIP ===== */
.category-strip {
  display: flex;
  gap: 14px;
  padding: 0;
  background: transparent;
}

.cat-item {
  min-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 6px 4px;
}

.cat-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-bottom: 6px;
}

.cat-item span {
  font-size: 12px;
  font-weight: 500;
  color: #111;
  text-align: center;
}

.cat-item.active span {
  color: #2874f0; /* Flipkart blue */
  font-weight: 600;
}

.cat-item img {
  width: 46px;
  height: 46px;
  transition: transform .25s ease, filter .25s ease;
}

.cat-item.active img {
  transform: scale(1.12);
  filter: drop-shadow(0 4px 10px rgba(34,197,94,.6));
}
.product-card {
  border-radius: 18px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.buy-btn {
  background: linear-gradient(135deg,#facc15,#f59e0b);
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(250,204,21,.45);
}
.best-deal-badge {
  box-shadow: 0 4px 12px rgba(34,197,94,.5);
  font-weight: 600;
}

/* ===== PAGE FADE IN ===== */
.page {
  animation: fadeUp .35s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.product-card {
  animation: popIn .3s ease;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* ===== PRODUCT IMAGE ZOOM ===== */
.product-card img {
  transition: transform 0.35s ease;
}

.product-card:hover img {
  transform: scale(1.08);
}
/* ===== HISTORY LIST ===== */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  font-size: 14px;
}

.history-item .left {
  display: flex;
  flex-direction: column;
}

.history-item .amount.plus {
  color: #22c55e;
  font-weight: 600;
}

.history-item .amount.minus {
  color: #ef4444;
  font-weight: 600;
}

.history-item .status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
}
.account-profile .profile-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.wallet-row {
  display: flex;
  justify-content: space-between;
}

.amount {
  font-size: 20px;
  font-weight: 600;
}

.amount.green {
  color: #16a34a;
}

.account-actions li {
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.full {
  width: 100%;
  margin-top: 8px;
}
.cart-sub {
  color: #6b7280;
  margin-bottom: 12px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-card {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  max-width: 340px;
  width: 90%;
  text-align: center;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.modal-actions button {
  flex: 1;
}
/* Secondary (Cancel) button – Professional style */
.secondary-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid #d1d5db;
  background-color: #ffffff;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.secondary-btn:hover {
  background-color: #f3f4f6;
  border-color: #9ca3af;
}

.secondary-btn:active {
  transform: scale(0.97);
}
/* ========================================= */
/* ✅ ACCOUNT PAGE – FINAL CLEAN FIX */
/* (with animations + pulse) */
/* ========================================= */

/* Hide navbar + top shell on account */
body.account-open .navbar {
  display: none !important;
}

/* keep top-shell visible */
body.account-open .top-shell {
  display: block !important;
}


/* Remove ALL layout spacing */
body.account-open,
body.account-open main,
body.account-open .main-content,
body.account-open .page {
  padding: 0 !important;
  margin: 0 !important;
}

/* Fullscreen account page */
body.account-open #account.page.active {
  position: fixed !important;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  z-index: 9999;
  overflow: hidden;
}

/* Center guest view */
body.account-open #guestView {
  position: absolute !important;
  inset: 0;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  animation: fadeIn 0.4s ease;
}

/* Guest card */
body.account-open .guest-card {
  background: #ffffff;
  padding: 32px 36px;
  border-radius: 16px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);

  animation: slideUp 0.5s ease;
}

/* Text */
.guest-card h2 {
  margin-bottom: 8px;
  font-weight: 700;
}

.guest-card p {
  color: #6b7280;
  margin-bottom: 22px;
  font-size: 0.95rem;
}

/* ================= */
/* 🔔 BUTTON PULSE */
/* ================= */
.pulse {
  animation: pulse 1.8s infinite;
}

/* ================= */
/* 🎞 ANIMATIONS */
/* ================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34,197,94,0.45);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(34,197,94,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34,197,94,0);
  }
}

.cart-header {
  margin-bottom: 20px;
}

.cart-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.cart-subtitle {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 6px;
}

.cart-trust {
  font-size: 0.85rem;
  color: #16a34a;
}
.savings-row {
  color: #16a34a;
  font-weight: 600;
}

.savings-amount {
  font-size: 0.95rem;
}

/* ===== CART CLICK FIX ===== */

.cart-item-main {
  cursor: pointer;
}

.cart-item-actions {
  position: relative;
  z-index: 2;
}

.cart-item-main {
  position: relative;
  z-index: 1;
}
/* ===== SUPPORT PAGE PRO ===== */

.support-page {
  padding-bottom: 40px;
}

/* HERO */
.support-hero {
  text-align: center;
  margin-bottom: 32px;
}

.support-hero h1 {
  font-size: 1.9rem;
}

.support-hero p {
  color: #6b7280;
  margin-top: 6px;
}

/* ACTION CARDS */
.support-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.support-box {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}

.support-box:hover {
  transform: translateY(-6px);
}

.support-emoji {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.support-email {
  margin-top: 8px;
  font-weight: 600;
  color: #16a34a;
}

.support-meta {
  font-size: 0.8rem;
  color: #6b7280;
}

/* TIMELINE */
.support-timeline {
  margin-top: 36px;
  background: #f9fafb;
  border-radius: 18px;
  padding: 22px;
}

.timeline-item {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.timeline-item span {
  width: 28px;
  height: 28px;
  background: #16a34a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* FAQ */
.support-faq {
  margin-top: 36px;
}

.faq-item {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.faq-item h4 {
  margin-bottom: 6px;
}

/* FOOTER */
.support-bottom {
  margin-top: 32px;
  text-align: center;
  color: #374151;
}

/* ANIMATION */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.6s ease forwards;
}

.fade-up.delay-1 { animation-delay: 0.1s }
.fade-up.delay-2 { animation-delay: 0.2s }
.fade-up.delay-3 { animation-delay: 0.3s }
.fade-up.delay-4 { animation-delay: 0.4s }
.fade-up.delay-5 { animation-delay: 0.5s }
.fade-up.delay-6 { animation-delay: 0.6s }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===== LOGIN REQUIRED MODAL ANIMATION ===== */

.login-modal {
  text-align: center;
  animation: slideUpFade .45s ease;
}

.login-modal-icon {
  font-size: 2.6rem;
  margin-bottom: 6px;
}

/* fade background */
.modal-overlay {
  animation: fadeOverlay .3s ease;
}

/* Animations */
@keyframes slideUpFade {
  from {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes fadeOverlay {
  from {opacity: 0;}
  to {opacity: 1;}
}
/* ===== MODAL BASE ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

/* Modal card */
.modal-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px 20px;
  width: 90%;
  max-width: 340px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  animation: popIn 0.35s ease;
}

/* Icon */
.modal-icon {
  font-size: 2.4rem;
  margin-bottom: 6px;
}

/* Text */
.modal-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.modal-card p {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 6px;
}

/* Buttons row */
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

/* Buttons */
.modal-btn {
  flex: 1;
  padding: 9px 0;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
}

/* Secondary */
.modal-btn.secondary {
  background: #f3f4f6;
  color: #111827;
}

/* Primary */
.modal-btn.primary {
  background: linear-gradient(135deg,#22c55e,#16a34a);
  color: white;
}

/* Animation */
@keyframes popIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* ===============================
   DAILY REWARDS SECTION
================================ */

.reward-section {
  background: linear-gradient(135deg, #ffe3cc, #ffd1b3);
  margin: 12px;
  padding: 16px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.reward-section h2 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 6px;
  color: #111;
}

.reward-section p {
  font-size: 14px;
  color: #333;
  margin-bottom: 12px;
}

.spin-btn {
  background: #111;
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.spin-btn:hover {
  background: #000;
  transform: scale(1.05);
}

/* ===== REWARD SLIDER (3-slide auto-scroll) ===== */
.reward-slider {
  margin: 12px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.reward-slider-inner {
  overflow: hidden;
  border-radius: 14px;
}

.reward-slider .slides-wrapper {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.reward-slider .slide {
  min-width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
}

.reward-slider .reward-slide {
  background: linear-gradient(135deg, #ffe3cc, #ffd1b3);
  padding: 16px;
  text-align: center;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
}

.reward-slider .reward-slide h2 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 6px;
  color: #111;
}

.reward-slider .reward-slide p {
  font-size: 14px;
  color: #333;
  margin-bottom: 12px;
}

.reward-slider .reward-slider-btn {
  margin-top: 4px;
}

.reward-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 0 6px;
}

.reward-slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.reward-slider-dots .dot:hover {
  background: rgba(0,0,0,0.4);
}

.reward-slider-dots .dot.active {
  background: #111;
  transform: scale(1.2);
}

/* === FORCE HAMBURGER ALWAYS VISIBLE === */
.hamburger {
  display: flex !important;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

/* Remove any desktop hide rules */
@media (min-width: 768px) {
  .hamburger {
    display: flex !important;
  }

  /* Keep nav-menu hidden until clicked */
  .nav-menu {
    display: none;
  }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 15px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    padding: 10px;
    z-index: 9999;
  }
}
/* ===== FIX NAV RESPONSIVE BEHAVIOR ===== */

/* Base state */
.nav-menu {
  display: none;
}

/* Hamburger always visible by default (mobile-first) */
.hamburger {
  display: flex;
}

/* Dropdown open state (mobile) */
.nav-menu.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 60px;
  right: 15px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  padding: 10px;
  z-index: 1000;
}

/* ===== Desktop Mode ===== */
@media (min-width: 768px) {

  /* Hide hamburger on big screen */
  .hamburger {
    display: none !important;
  }

  /* Show nav menu inline */
  .nav-menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  /* Remove dropdown styling on desktop */
  .nav-menu.open {
    display: flex !important;
    position: static;
  }
}
/* ===== Categories Row (horizontal scroll) ===== */
.categories {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 10px 5px;
  scrollbar-width: none; /* Firefox */
}

.categories::-webkit-scrollbar {
  display: none; /* Chrome */
}

.cat-item {
  min-width: 80px;
  text-align: center;
  cursor: pointer;
  flex-shrink: 0;
}

.cat-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.cat-item span {
  display: block;
  font-size: 13px;
  margin-top: 4px;
}

/* Active category highlight */
.cat-item.active span {
  color: #0aad6b;
  font-weight: bold;
}

/* ===== Search Suggestions Dropdown ===== */
.suggestions-box {
  position: absolute;
  background: white;
  width: 90%;
  max-width: 600px;
  margin: auto;
  left: 0;
  right: 0;
  top: 70px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  z-index: 9999;
  display: none;
  overflow: hidden;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.suggestion-item:hover {
  background: #f9fafb;
}

.suggestion-item img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 6px;
}

.suggestion-text {
  font-size: 14px;
  color: #111;
}

.suggestion-price {
  font-size: 13px;
  color: #16a34a;
  font-weight: bold;
}
.suggestions-box {
  position: absolute;
  background: white;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: none;
  z-index: 9999;
}

.suggestion-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
}

.suggestion-item:hover {
  background: #f3f4f6;
}
.page {
  display: none;
}

.page.active {
  display: block;
}
.search-wrapper {
  position: relative;
  flex: 1;   /* keeps full width inside flex row */
}

.suggestions-box {
  position: absolute;
  top: 100%;        /* directly below input */
  left: 0;
  width: 100%;
  margin-top: 6px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  z-index: 9999;
}
/* Hide placeholder when typing or focusing */
#topSearchInput:focus::placeholder {
  color: transparent;
}

#topSearchInput:not(:placeholder-shown)::placeholder {
  color: transparent;
}
#topSearchInput {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ===== SPIN PAGE – DESKTOP FIX ===== */
@media (min-width: 768px) {

  #spin {
    padding: 40px 0;
  }

  .spin-container {
    max-width: 1100px;   /* full desktop width */
    padding: 32px;
  }

  .spin-wheel-card {
    max-width: 520px;    /* keep wheel nicely centered */
    margin: 0 auto;
  }

}
.about-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}
/* ===============================
   FORCE ABOUT PAGE FULL WIDTH
   =============================== */

/* Break any inherited width limits */
#about {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 32px 0 !important;
}

/* Force inner content like Support page */
#about .about-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}

/* Ensure cards don’t shrink */
#about .info-card {
  width: 100% !important;
  max-width: 100% !important;
}

/* Desktop-only polish */
@media (min-width: 1024px) {
  #about {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
}
#claimBtn {
  margin-top: 12px;
  width: 100%;
}

#claimBtn:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.7;
}
.spin-instruction,
.wallet-instruction {
  font-size: 0.9rem;
  color: #374151;
  background: #f9fafb;
  border-left: 4px solid #22c55e;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 6px;
}

/* ===== ADMIN CSV UPLOAD ===== */
.csv-upload-card {
  max-width: 520px;
  margin: 30px auto;
  padding: 22px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.csv-upload-card h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.admin-desc {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 14px;
}

.csv-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.csv-drop {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
}

.csv-drop:hover {
  border-color: #3b82f6;
  background: #f8fafc;
}

#csvText {
  display: block;
  font-weight: 500;
}

#csvFileName {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: #2563eb;
}

/* ===== CSV UPLOAD BUTTON FINAL ===== */

#csvUploadBtn {
  background: #9ca3af;
  color: #fff;
  opacity: 0.6;
  cursor: not-allowed;
  transition: all 0.2s ease;
}

/* enabled GREEN */
#csvUploadBtn.enabled {
  background: #10b981;
  opacity: 1;
  cursor: pointer;
}

/* ===== CSV CONTROLS LAYOUT FIX ===== */
.csv-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.csv-controls select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
}

.csv-controls button {
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
}
/* ===== GAME BAR ===== */
.game-bar {
  display: flex;
  justify-content: space-between;
  margin: 12px 16px;
  gap: 10px;
}

.level-box,
.token-box {
  flex: 1;
  background: linear-gradient(135deg, #1db954, #0f9d58);
  color: white;
  padding: 10px;
  border-radius: 14px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
/* ===== LEVEL PROGRESS ===== */
.level-progress-card {
  margin: 10px 16px 18px;
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.progress-top {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

#progressFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  transition: width 0.6s ease;
}
/* =====================================================
   DAILY REWARD CARD
===================================================== */

.spin-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 16px;
  margin: 18px 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.spin-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
  font-weight: 600;
  color: #2c2c2c;
}

.spin-card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 14px;
}

/* =====================================================
   PRIMARY BUTTON (VIOLET THEME)
===================================================== */

.primary-btn {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;

  /* Violet gradient */
  background: linear-gradient(135deg, #7b5cff, #a66bff);
  color: #fff;

  box-shadow: 0 6px 14px rgba(123, 92, 255, 0.35);
  transition: all 0.2s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(123, 92, 255, 0.45);
}

.primary-btn:active {
  transform: scale(0.97);
}

/* Disabled state */
.primary-btn:disabled {
  background: #dcd6ff;
  color: #7a6fb0;
  cursor: not-allowed;
  box-shadow: none;
}

/* =====================================================
   WALLET CARD COLOR BALANCE
===================================================== */

.wallet-card {
  background: linear-gradient(135deg, #f8fff9, #f1f7ff);
  border-radius: 18px;
  margin: 16px 14px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* Amount highlight */
.wallet-amount {
  font-weight: 700;
  color: #1a7f37; /* green only for money */
}

/* =====================================================
   LEVEL + TOKEN BADGES
===================================================== */

.game-badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  margin: 6px;
}

/* Level badge = GOLD */
.level-badge {
  background: linear-gradient(135deg, #ffd76a, #ffb300);
  color: #5a3d00;
}

/* Token badge = BLUE */
.token-badge {
  background: linear-gradient(135deg, #5ecbff, #2f8cff);
  color: #ffffff;
}

/* =====================================================
   PROGRESS BAR STYLE
===================================================== */

.progress-bar {
  height: 10px;
  background: #eee;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7b5cff, #ff7ad9);
  transition: width 0.4s ease;
}
/* TOKEN CASHOUT SPECIAL COLOR */
#tokenCashoutCard {
  background: linear-gradient(135deg, #fff7e6, #f3f7ff);
  border: 1px solid #ffe2a8;
}

/* Disabled claim look */
#claimTokenRewardBtn:disabled {
  background: #eee;
  color: #888;
}
/* ===== REFERRAL CARD (CLEAN PREMIUM UI) ===== */

.referral-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  margin-top: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border: 1px solid #f1f5f9;
}

/* title */
.referral-box h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #111827;
}

/* code display */
.referral-code {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;

  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;

  padding: 12px;
  border-radius: 12px;
  margin: 10px 0 14px 0;
}

/* stats row */
.referral-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.referral-stat {
  text-align: center;
  flex: 1;
}

.referral-stat strong {
  display: block;
  font-size: 18px;
  color: #111827;
}

.referral-stat span {
  font-size: 12px;
  color: #6b7280;
}

/* share button */
#copyReferralBtn {
  width: 100%;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  border: none;
  color: white;
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

#copyReferralBtn:hover {
  opacity: 0.9;
}

/* note */
.referral-note {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  margin-top: 10px;
}
/* ===== LEADERBOARD ===== */

.leaderboard-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  margin-top: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border: 1px solid #f1f5f9;
}

.leaderboard-box h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.leaderboard-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}

.leaderboard-item:last-child {
  border-bottom: none;
}

.rank {
  font-weight: 700;
  color: #7c3aed;
}
/* ===== REFERRAL REWARD POPUP ===== */
.reward-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.reward-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 22px;
  text-align: center;
  width: 90%;
  max-width: 340px;
  animation: popupScale 0.35s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.reward-emoji {
  font-size: 48px;
  margin-bottom: 10px;
}

@keyframes popupScale {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* ===== XP PROGRESS BAR ===== */
.progress-bar {
  width: 100%;
  height: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}

#progressFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  border-radius: 999px;
  transition: width 0.6s ease;
}

/* ===== LEVEL POPUP ANIMATION ===== */
.level-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.25s ease;
}

.level-popup-card {
  background: white;
  padding: 24px;
  border-radius: 18px;
  text-align: center;
  width: 260px;
  animation: popScale 0.3s ease;
}

@keyframes popScale {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.level-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.25s ease;
}

.level-popup-card {
  background: white;
  padding: 24px;
  border-radius: 18px;
  text-align: center;
  width: 260px;
  animation: popScale 0.3s ease;
}

.level-popup-card button {
  margin-top: 12px;
  padding: 10px 16px;
  border: none;
  background: #22c55e;
  color: white;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

@keyframes popScale {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* POPUP BASE */
.popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 9999;
}

.popup.show {
  opacity: 1;
  pointer-events: auto;
}

/* POPUP BOX */
.popup-box {
  background: white;
  padding: 20px 30px;
  border-radius: 16px;
  font-size: 20px;
  font-weight: bold;
  animation: pop 0.4s ease;
}

.popup-box.heroic {
  background: gold;
  color: black;
}

@keyframes pop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
/* LEVEL UP MODAL */
#levelUpModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.levelup-hidden {
  display: none !important;
}

.levelup-box {
  background: white;
  padding: 30px 40px;
  border-radius: 20px;
  text-align: center;
  animation: popIn 0.4s ease;
}

.levelup-box h2 {
  margin-bottom: 10px;
}

.levelup-box button {
  margin-top: 15px;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  background: #22c55e;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

/* POP ANIMATION */
@keyframes popIn {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* CONFETTI CANVAS */
#confettiCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
}
/* ===== PIGGY BANK DESIGN ===== */

.savings-card {
  background: linear-gradient(135deg, #fff5e6, #ffe0b3);
  padding: 25px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}

.savings-amount {
  font-size: 38px;
  font-weight: bold;
  color: #ff8c00;
  margin: 15px 0;
}

.savings-status {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

.savings-progress {
  height: 10px;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
}

.savings-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff9800, #ff5722);
  transition: width 0.4s ease;
}

.withdraw-info {
  font-size: 14px;
  color: #666;
}
/* ===== PIGGY BREAK ANIMATION ===== */

@keyframes shakePiggy {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
  75% { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}

@keyframes breakEffect {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.piggy-shake {
  animation: shakePiggy 0.6s ease;
}

.piggy-break {
  animation: breakEffect 0.6s ease forwards;
}

.coin-burst {
  position: absolute;
  font-size: 24px;
  animation: floatUp 1s ease forwards;
}

@keyframes floatUp {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-60px); opacity: 0; }
}
/* ===== XP FLOAT ANIMATION ===== */

#xpFloatingContainer {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.xp-float {
  font-size: 32px;
  font-weight: 700;
  color: #7b5cff;
  text-shadow: 0 0 10px rgba(123, 92, 255, 0.5), 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: xpRise 1.5s ease forwards;
  white-space: nowrap;
  user-select: none;
}

@keyframes xpRise {
  0% { 
    opacity: 0; 
    transform: translateY(20px) scale(0.8); 
  }
  20% { 
    opacity: 1; 
    transform: translateY(0) scale(1.1); 
  }
  50% {
    transform: translateY(-20px) scale(1);
  }
  100% { 
    opacity: 0; 
    transform: translateY(-80px) scale(1.3); 
  }
}

/* XP glow effect */
.xp-glow {
  animation: xpGlow 0.6s ease;
}

@keyframes xpGlow {
  0% { box-shadow: 0 0 0px #7b5cff; }
  50% { box-shadow: 0 0 20px #7b5cff; }
  100% { box-shadow: 0 0 0px #7b5cff; }
}
/* =========================================
   ACCOUNT PAGE – CLEAN FINAL VERSION
========================================= */

#account {
  width: 100%;
  padding: 40px 60px 140px;
  box-sizing: border-box;
}

/* ================= GUEST VIEW ================= */

.guest-wrapper {
  width: 100%;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guest-card {
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  text-align: center;
  max-width: 500px;
  width: 100%;
}

/* ================= HEADER ================= */

.account-header-card {
  width: 100%;
  background: #ffffff;
  padding: 30px;
  border-radius: 18px;
  margin-bottom: 50px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

/* ================= MAIN GRID ================= */

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  width: 100%;
  margin-bottom: 60px;
}

/* ================= GENERAL CARD ================= */

.info-card {
  background: #ffffff;
  padding: 24px 28px;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.info-card h3 {
  margin-bottom: 18px;
}

/* ================= WALLET ================= */

.wallet-row {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
}

/* ================= LIST ================= */

.info-list {
  padding-left: 18px;
}

.info-list li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* ================= REFER SECTION ================= */

.account-wide-card {
  width: 100%;
  margin-top: 40px;
}

/* Referral box stacked vertically */
.referral-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
  padding: 18px;
  border-radius: 12px;
  margin: 18px 0;
}

#referralCode {
  font-size: 18px;
  font-weight: 600;
  word-break: break-word;
}

#copyReferralBtn {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg,#6d5dfc,#8e6dfc);
  color: white;
  cursor: pointer;
  font-weight: 500;
}

/* Referral stats */
.referral-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 20px;
}

.ref-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ref-stat strong {
  font-size: 18px;
}

/* ================= LOGOUT ================= */

.logout-card {
  margin-top: 30px;
}

/* ================= RESPONSIVE ================= */

/* Tablet */
@media (max-width: 1000px) {
  #account {
    padding: 30px 30px 120px;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 600px) {
  #account {
    padding: 20px 16px 120px;
  }

  .guest-card {
    padding: 30px;
  }

  .account-header-card {
    padding: 20px;
  }

  .info-card {
    padding: 18px;
    border-radius: 14px;
  }

  .account-grid {
    gap: 20px;
    margin-bottom: 30px;
  }

  .referral-box {
    padding: 14px;
    gap: 10px;
  }

  .referral-stats {
    flex-direction: column;
    gap: 12px;
  }

  .account-wide-card {
    margin-top: 20px;
  }

  .logout-card {
    margin-top: 20px;
  }
}
/* FORCE FULL WIDTH GRID ITEMS */
.account-grid {
  width: 100%;
}

.account-grid .info-card {
  width: 100%;
}

/* ================= FORCE FULL WIDTH MOBILE FIX ================= */

@media (max-width: 768px) {

  .account-grid {
    width: 100%;
  }

  .account-grid .info-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

}

/* ===== BREAK BUTTON GLOW ===== */
#claimBtn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

#claimBtn.enabled {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  box-shadow: 0 0 15px rgba(168,85,247,0.6);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px rgba(168,85,247,0.4); }
  50% { box-shadow: 0 0 25px rgba(168,85,247,0.8); }
  100% { box-shadow: 0 0 10px rgba(168,85,247,0.4); }
}

/* ===== PIGGY SHAKE BEFORE BREAK ===== */
.piggy-shake {
  animation: shakePiggy 0.6s ease;
}

@keyframes shakePiggy {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
  75% { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}

/* ===== BREAK EXPLOSION EFFECT ===== */
.break-effect {
  animation: breakPop 0.5s ease forwards;
}

@keyframes breakPop {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* ===== MONEY FLOATING EFFECT ===== */
.money-float {
  position: absolute;
  font-size: 22px;
  animation: floatUp 1.5s ease forwards;
}

@keyframes floatUp {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-100px); opacity: 0; }
}
