/* Core Design System */
:root {
  --primary-color: #000000;
  --primary-hover: #1e1e1e;
  --accent-color: #3b82f6; /* Modern Blue */
  --bg-color: #f6f8fa;
  --card-bg: #ffffff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.08);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: 'Inter', sans-serif;

  /* Category colors */
  --pubg-color: #7c3aed;
  --ml-color: #0284c7;
  --ff-color: #f97316;
  --stars-color: #eab308;
  --premium-color: #f59e0b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: #e2e8f0; /* Desktop wrapper bg */
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

/* Telegram WebApp Mobile Centering Frame */
.app-container {
  width: 100%;
  max-width: 480px;
  height: 100vh;
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

@media(max-width: 480px) {
  .app-container {
    height: 100vh;
    border-radius: 0;
  }
}

/* App Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background-color: var(--card-bg);
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.balance-pill {
  display: flex;
  align-items: center;
  background-color: #f3f4f6;
  padding: 6px 6px 6px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.balance-pill:hover {
  background-color: #e5e7eb;
}

.balance-pill span {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-right: 10px;
}

.plus-icon-btn {
  background-color: var(--primary-color);
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.plus-icon-btn i {
  width: 16px;
  height: 16px;
  stroke-width: 3;
}

.balance-pill:hover .plus-icon-btn {
  transform: scale(1.08);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-text {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.8px;
  color: var(--text-main);
}

.notification-btn {
  position: relative;
  cursor: pointer;
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.notification-btn:hover {
  background-color: #f3f4f6;
}

.notification-btn i {
  width: 22px;
  height: 22px;
}

.notification-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background-color: #ef4444; /* red dot */
  border-radius: 50%;
  display: none; /* Shown dynamically */
  border: 1.5px solid var(--card-bg);
}

.notification-badge.active {
  display: block;
}

/* App Content Section */
.app-content {
  flex: 1;
  min-height: 0; /* Crucial for flexbox scroll */
  overflow-y: auto;
  padding: 16px 20px 80px 20px; /* spacing for bottom nav */
  position: relative;
}

.app-content::-webkit-scrollbar {
  display: none;
}

/* View switching state */
.view {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.view.active.view-enter {
  opacity: 0;
  transform: translateY(10px);
}

/* Promo Banner */
.promo-banner {
  border-radius: 20px;
  padding: 24px;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.banner-tags {
  display: flex;
  gap: 8px;
}

.banner-tags .tag {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.banner-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin-top: 8px;
}

.banner-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  margin-bottom: 12px;
}

.banner-btn {
  align-self: flex-start;
  background-color: #ffffff;
  color: #000000;
  border: none;
  padding: 10px 18px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.banner-btn i {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.banner-btn:hover {
  background-color: #f3f4f6;
}

.banner-btn:hover i {
  transform: translateX(4px);
}

/* Categories Horizontal Slider */
.categories-container {
  margin: 0 -20px 24px -20px;
  padding: 0 20px;
}

.categories-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 10px 0;
  scroll-behavior: smooth;
}

.categories-scroll::-webkit-scrollbar {
  display: none;
}

.category-card {
  flex: 0 0 76px;
  background-color: var(--card-bg);
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.category-card.active {
  border-color: var(--primary-color);
  background-color: var(--card-bg);
}

.cat-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

/* Custom background for categories icons */
.cat-icon-wrapper i {
  width: 20px;
  height: 20px;
}

.all-cat { background-color: #f3f4f6; color: #1f2937; }
.pubg-cat { background-color: #ede9fe; color: var(--pubg-color); }
.ml-cat { background-color: #e0f2fe; color: var(--ml-color); }
.ff-cat { background-color: #ffedd5; color: var(--ff-color); }
.stars-cat { background-color: #fef9c3; color: var(--stars-color); }
.premium-cat { background-color: #fef3c7; color: var(--premium-color); }
.gift-cat { background-color: #fce7f3; color: #db2777; }

.category-card.active .cat-icon-wrapper {
  transform: scale(1.05);
}

.cat-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
}

.category-card.active .cat-label {
  color: var(--text-main);
  font-weight: 700;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.see-all-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 2px;
  transition: var(--transition);
}

.see-all-link i {
  width: 14px;
  height: 14px;
}

.see-all-link:hover {
  color: var(--primary-color);
}

/* Products Vertical List */
.products-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--card-bg);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.product-item-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.product-info-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.product-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-icon-box i {
  width: 22px;
  height: 22px;
}

.product-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.product-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  overflow-wrap: anywhere;
}

.product-type {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
}

.product-buy-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.product-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
}

.buy-icon-btn {
  background-color: var(--primary-color);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.buy-icon-btn i {
  width: 16px;
  height: 16px;
}

.buy-icon-btn:hover {
  background-color: var(--primary-hover);
  transform: scale(1.08);
}

/* Bottom Navigation */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: var(--card-bg);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  padding-bottom: 6px;
}

.nav-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  width: 25%;
}

.nav-item i {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.nav-item span {
  font-size: 9px;
  font-weight: 600;
}

.nav-item.active {
  color: var(--primary-color);
}

.nav-item.active i {
  stroke-width: 2.5;
}

/* Catalog View Details */
.search-bar-container {
  display: flex;
  align-items: center;
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 10px 16px;
  gap: 10px;
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.search-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

#catalog-search {
  border: none;
  background: none;
  outline: none;
  width: 100%;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}

.catalog-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 14px 0;
}

.catalog-filters::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  white-space: nowrap;
  background-color: var(--card-bg);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
}

.filter-pill.active {
  background-color: var(--primary-color);
  color: #ffffff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.grid-product-card {
  background-color: var(--card-bg);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.grid-product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.grid-product-card .product-icon-box {
  width: 54px;
  height: 54px;
}

.grid-product-card .product-icon-box i {
  width: 24px;
  height: 24px;
}

.grid-product-card .product-title {
  font-size: 13px;
  text-align: center;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 4px;
}

.grid-product-card .product-price {
  font-size: 14px;
  font-weight: 800;
}

.grid-product-card .buy-icon-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
}

.grid-product-card .buy-icon-btn i {
  width: 14px;
  height: 14px;
}

/* Orders View Style */
.view-header {
  margin-bottom: 18px;
}

.view-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-item-card {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.order-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.order-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.order-player {
  font-size: 11px;
  color: var(--accent-color);
  font-weight: 600;
}

.order-status-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.order-price {
  font-size: 14px;
  font-weight: 800;
}

.status-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-badge.kutilmoqda {
  background-color: #fef3c7;
  color: #d97706;
}

.status-badge.bajarildi {
  background-color: #dcfce7;
  color: #15803d;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
}

.empty-state i {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  stroke-width: 1.5;
}

.empty-state p {
  font-size: 13px;
  font-weight: 500;
}

/* Profile View Style */
.profile-card {
  background-color: var(--card-bg);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  background-color: #f3f4f6;
  color: var(--text-main);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.profile-avatar i {
  width: 32px;
  height: 32px;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.profile-avatar img[hidden],
.profile-avatar-fallback[hidden] { display: none; }

.profile-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-id {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 16px;
}

.profile-stats {
  display: flex;
  width: 100%;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.stat-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-box:first-child {
  border-right: 1px solid var(--border-color);
}

.stat-val {
  font-size: 15px;
  font-weight: 800;
}

.stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.profile-menu {
  display: flex;
  flex-direction: column;
  background-color: var(--card-bg);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:hover {
  background-color: #fafafa;
}

.menu-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-item span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.menu-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-icon i {
  width: 16px;
  height: 16px;
}

.menu-icon.green { background-color: #dcfce7; color: #16a34a; }
.menu-icon.blue { background-color: #e0f2fe; color: #0284c7; }
.menu-icon.purple { background-color: #f3e8ff; color: #7c3aed; }
.menu-icon.orange { background-color: #ffedd5; color: #ea580c; }

.menu-arrow {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

/* Modals System */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: flex-end; /* Mobile drawer style sliding up */
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
  visibility: hidden;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.modal-content {
  background-color: var(--card-bg);
  width: 100%;
  border-radius: 24px 24px 0 0;
  padding: 24px;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.08);
  transform: translate3d(0, calc(100% + 24px), 0);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.modal-overlay.active .modal-content {
  transform: translate3d(0, 0, 0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-header h4 {
  font-size: 16px;
  font-weight: 700;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.4;
}

.quick-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.quick-amounts button {
  background-color: #f3f4f6;
  border: 1px solid var(--border-color);
  padding: 10px 4px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.quick-amounts button:hover {
  background-color: #e5e7eb;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.input-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  outline: none;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  background-color: #fafafa;
  transition: var(--transition);
}

.input-group input:focus {
  border-color: var(--primary-color);
  background-color: #ffffff;
}

.primary-btn {
  width: 100%;
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.primary-btn:hover {
  background-color: var(--primary-hover);
}

.product-price-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background-color: #f8fafc;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.product-price-info strong {
  font-size: 15px;
  font-weight: 800;
}

@media (max-width: 767px) {
  .home-shortcuts { grid-template-columns: 1fr; gap: 8px; }
  .shortcut-card { width: 100%; min-height: 54px; }
  .home-overview { align-items: flex-start; gap: 10px; }
  .overview-status { white-space: nowrap; }
  .product-item-card { gap: 8px; }
  .product-buy-right { gap: 7px; }
  .product-price { font-size: 12px; }
  .section-header { gap: 8px; flex-wrap: wrap; }
  .see-all-link { margin-left: auto; }
  .grid-product-card { min-width: 0; overflow: hidden; }
  .grid-product-card .product-title { overflow-wrap: anywhere; }
}

.balance-check {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Toast Alert System */
.toast {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translate(-50%, -100px);
  background-color: #1e293b;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  z-index: 1000;
  white-space: nowrap;
  pointer-events: none;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.toast-icon {
  width: 18px;
  height: 18px;
  color: #22c55e;
}

/* Notification Dropdown */
.notification-dropdown {
  position: absolute;
  top: 68px;
  right: 20px;
  width: 280px;
  background-color: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.notification-dropdown.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.notification-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.notification-actions button {
  border: 0;
  border-radius: 8px;
  padding: 5px 7px;
  background: #eef0ff;
  color: #4f46e5;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.notification-actions button:nth-child(2) {
  background: #fff0f1;
  color: #dc3b52;
}

.notification-actions .notification-close {
  width: 26px;
  height: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f2f4f8;
  color: #69768d;
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

.dropdown-header h5 {
  font-size: 12px;
  font-weight: 700;
}

.dropdown-header span {
  font-size: 11px;
  color: var(--accent-color);
  font-weight: 600;
  cursor: pointer;
}

.notifications-list {
  max-height: 240px;
  overflow-y: auto;
}

.notification-item {
  padding: 10px 16px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 11px;
  line-height: 1.4;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item .time {
  display: block;
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 4px;
}

.empty-notifications {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
}

/* Loading utilities */
.loading-spinner {
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Utilities classes */
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }

/* Refined mobile storefront layer */
:root {
  --primary-color: #172554;
  --primary-hover: #0f172a;
  --accent-color: #4f46e5;
  --bg-color: #f4f7ff;
  --card-bg: rgba(255, 255, 255, 0.92);
  --text-main: #15213b;
  --text-muted: #71809a;
  --border-color: #e4e9f4;
  --shadow-sm: 0 6px 18px rgba(45, 63, 107, 0.06);
  --shadow-md: 0 14px 34px rgba(45, 63, 107, 0.11);
  --shadow-lg: 0 24px 56px rgba(32, 48, 88, 0.16);
  --nav-bg: #ffffff;
  --nav-active-color: #ea580c;
  --nav-cutout-color: #f2f5fc;
}

body {
  background: radial-gradient(circle at 15% 8%, #dae4ff 0, transparent 30%), #e9eef9;
}

.app-container {
  background: linear-gradient(180deg, #f8faff 0%, #f2f5fc 100%);
  box-shadow: 0 24px 70px rgba(22, 34, 65, 0.23);
}

.app-header {
  padding: 15px 20px 13px;
  background: rgba(248, 250, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: none;
  border-bottom: 1px solid rgba(223, 229, 242, 0.76);
}

.balance-pill {
  padding: 5px 5px 5px 13px;
  border: 1px solid #e0e7f5;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(62, 78, 120, 0.07);
}

.balance-pill:active, .notification-btn:active, .nav-item:active,
.category-card:active, .product-item-card:active, .grid-product-card:active {
  transform: scale(0.97);
}

.plus-icon-btn {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #5b5ce2, #3730a3);
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.26);
}

.header-right { gap: 11px; }
.logo-text { font-size: 15px; letter-spacing: 1.4px; color: #35405f; }
.notification-btn { width: 38px; height: 38px; color: #35405f; background: #fff; border: 1px solid #e5eaf4; }

.app-content { padding: 18px 16px 100px; }
.promo-banner {
  min-height: 225px;
  padding: 22px;
  border-radius: 24px;
  box-shadow: 0 16px 35px rgba(19, 28, 59, 0.22);
  isolation: isolate;
}
.promo-banner::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(115deg, rgba(34, 23, 79, 0.32), rgba(18, 28, 68, 0.05));
}

.home-overview {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 2px 2px 12px;
}

.eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #8b97ac;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.home-overview h3 { font-size: 18px; letter-spacing: -.35px; }
.overview-status { display: inline-flex; align-items: center; gap: 4px; color: #4b9b72; font-size: 10px; font-weight: 700; }
.overview-status svg { width: 14px; height: 14px; }

.home-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 28px;
}

.shortcut-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 11px;
  border: 1px solid rgba(225, 230, 242, .9);
  border-radius: 17px;
  background: rgba(255, 255, 255, .72);
  color: var(--text-main);
  text-align: left;
  box-shadow: 0 7px 18px rgba(53, 70, 111, .05);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.shortcut-card:hover { transform: translateY(-2px); border-color: #cdd2ff; box-shadow: 0 12px 24px rgba(53, 70, 111, .1); }
.shortcut-card:active { transform: scale(.98); }
.shortcut-icon { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 11px; }
.shortcut-icon svg { width: 17px; height: 17px; }
.shortcut-card strong, .shortcut-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shortcut-card strong { font-size: 11px; }
.shortcut-card small { margin-top: 2px; color: #8b97ac; font-size: 9px; }
.shortcut-arrow { width: 13px; height: 13px; margin-left: auto; color: #9da8bc; }
.shortcut-balance .shortcut-icon { background: #e7f8ee; color: #2d9d66; }
.shortcut-orders .shortcut-icon { background: #e8f0ff; color: #4675d2; }
.shortcut-catalog .shortcut-icon { background: #f0eaff; color: #7752ca; }

.dark-mode-icon { background: #eef0ff; color: #5651c9; }
.theme-switch { width: 38px; height: 22px; margin-left: auto; padding: 3px; border-radius: 99px; background: #dce2ee; transition: background .25s ease; }
.theme-switch span { display: block; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(26, 38, 72, .2); transition: transform .25s ease; }
.theme-switch.active { background: #5450d6; }
.theme-switch.active span { transform: translateX(16px); }

body.dark-mode {
  --bg-color: #111827;
  --card-bg: rgba(30, 41, 59, .9);
  --text-main: #edf2ff;
  --text-muted: #9aa9c3;
  --border-color: #334155;
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, .18);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, .28);
  --nav-bg: #1e293b;
  --nav-active-color: #ff9f43;
  --nav-cutout-color: #0f172a;
  color: var(--text-main);
  background: #0b1120;
}

body.dark-mode .app-container { background: linear-gradient(180deg, #111827 0%, #0f172a 100%); }
body.dark-mode .app-header { background: rgba(15, 23, 42, .78); border-bottom-color: rgba(71, 85, 105, .48); }
body.dark-mode .balance-pill, body.dark-mode .notification-btn, body.dark-mode .category-card,
body.dark-mode .product-item-card, body.dark-mode .grid-product-card, body.dark-mode .profile-menu,
body.dark-mode .profile-card, body.dark-mode .order-item-card, body.dark-mode .shortcut-card,
body.dark-mode .search-bar-container, body.dark-mode .modal-content { background: rgba(30, 41, 59, .92); border-color: #334155; color: var(--text-main); }
body.dark-mode .category-card.active { background: rgba(79, 70, 229, .25); }
body.dark-mode .bottom-nav { background: rgba(15, 23, 42, .5); border-color: rgba(100, 116, 139, .42); }
body.dark-mode .shortcut-card small, body.dark-mode .product-type, body.dark-mode .see-all-link { color: #9aa9c3; }
body.dark-mode .product-price, body.dark-mode .section-header h3, body.dark-mode .view-header h3 { color: #f4f7ff; }
body.dark-mode .filter-pill { background: #1e293b; border-color: #334155; color: #a8b5cc; }
body.dark-mode .input-group input { background: #0f172a; border-color: #475569; color: #f4f7ff; }
body.dark-mode .modal-overlay { background: rgba(2, 6, 23, .7); }
body.dark-mode .menu-item:active { background: rgba(79, 70, 229, .2); }
.banner-tags .tag { border: 1px solid rgba(255, 255, 255, 0.2); }
.banner-title { max-width: 295px; font-size: 25px; letter-spacing: -0.6px; line-height: 1.18; }
.banner-desc { font-size: 13px; line-height: 1.5; }
.banner-btn { padding: 11px 17px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }

.categories-container { margin: 0 -16px 26px; padding: 0 16px; }
.categories-scroll { gap: 10px; padding: 3px 0 11px; }
.category-card {
  flex-basis: 78px;
  border: 1px solid #e8ecf5;
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  box-shadow: none;
}
.category-card.active { border-color: #c9caff; background: #f9f9ff; box-shadow: 0 8px 18px rgba(79,70,229,.11); }
.category-card.active .cat-icon-wrapper { background: linear-gradient(135deg, #5b5ce2, #3b35ad); color: #fff; }

.section-header { margin-bottom: 13px; }
.section-header h3, .view-header h3 { font-size: 18px; letter-spacing: -0.35px; }
.see-all-link { color: #5452ba; font-weight: 700; }
.products-vertical-list { gap: 10px; }
.product-item-card {
  border: 1px solid #e8ecf5;
  border-radius: 20px;
  padding: 13px 14px;
  box-shadow: none;
}
.product-item-card:hover { box-shadow: var(--shadow-md); }
.product-icon-box { width: 48px; height: 48px; border-radius: 15px; }
.product-art { overflow: hidden; position: relative; background: #dfe5ff; }
.product-art img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.product-item-card:hover .product-art img, .grid-product-card:hover .product-art img { transform: scale(1.08); }
.product-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10, 16, 43, .02), rgba(10, 16, 43, .28)); pointer-events: none; }
.product-title { font-size: 14px; letter-spacing: -0.15px; }
.product-type { margin-top: 3px; color: #8793ab; }
.product-price { color: #172554; font-size: 13px; }
.buy-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #eef0ff;
  color: #4946c7;
}
.buy-icon-btn:hover { background: #514ccf; }

.bottom-nav {
  left: 12px;
  right: 12px;
  bottom: 12px;
  width: auto;
  height: 68px;
  border: 1px solid rgba(223, 228, 241, .9);
  border-radius: 22px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(36, 49, 86, .15);
  overflow: hidden;
  isolation: isolate;
}

.bottom-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, .62), rgba(239, 243, 255, .28));
  pointer-events: none;
}
.nav-item { border-radius: 16px; margin: 6px 3px; color: #8390a7; }
.nav-item { position: relative; z-index: 1; background: transparent; }
.nav-liquid-indicator {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  display: block;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #5b5ce2, #3b35ad);
  box-shadow: 0 8px 18px rgba(79, 70, 229, .28);
  pointer-events: none;
  transform: translate(0, 0);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              height 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, width, height;
}
.nav-item.active {
  color: #ffffff !important;
  background: transparent;
  box-shadow: none;
}
.nav-item.active i, .nav-item.active span {
  color: #ffffff !important;
}
.nav-item.active::before { display: none; }
.nav-item span { font-size: 10px; font-weight: 650; }

.search-bar-container {
  border: 1px solid #e3e8f3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(51,68,110,.05);
}
.catalog-filters { margin: 16px -16px 18px; padding: 0 16px; }
.filter-pill { border: 1px solid #e2e7f1; background: #fff; color: #72809a; border-radius: 12px; }
.filter-pill.active { background: #4f46e5; border-color: #4f46e5; box-shadow: 0 5px 12px rgba(79,70,229,.22); }
.products-grid { gap: 11px; }
.grid-product-card { border: 1px solid #e6ebf4; border-radius: 20px; box-shadow: none; }
.grid-product-card:hover { box-shadow: var(--shadow-md); }

.profile-card, .order-item-card, .profile-menu, .modal-content {
  border: 1px solid #e5eaf4;
  box-shadow: 0 10px 26px rgba(52,70,113,.07);
}
.profile-card { border-radius: 24px; background: linear-gradient(140deg, #fff, #f4f5ff); }
.profile-avatar { background: linear-gradient(135deg, #5b5ce2, #3530a3); box-shadow: 0 8px 18px rgba(79,70,229,.22); }
.profile-menu { overflow: hidden; border-radius: 20px; }
.menu-item { transition: background .2s ease, transform .2s ease; }
.menu-item:active { background: #f4f5ff; }
.order-item-card { border-radius: 18px; }

.modal-overlay { background: rgba(16, 24, 48, .46); backdrop-filter: blur(5px); }
.modal-content { border-radius: 26px 26px 20px 20px; background: #fff; }
.modal-header { border-bottom-color: #edf0f6; }
.primary-btn { border-radius: 15px; background: linear-gradient(135deg, #5b5ce2, #3933ad); box-shadow: 0 8px 16px rgba(79,70,229,.24); }
.primary-btn:hover { background: linear-gradient(135deg, #4848cf, #2e298e); }
.quick-amounts button { border-radius: 12px; border-color: #e0e5f2; }
.input-group input { border-color: #dfe5f1; border-radius: 14px; }
.toast { border-radius: 16px; box-shadow: var(--shadow-lg); }

@media (min-width: 481px) {
  .app-container { height: min(880px, calc(100vh - 40px)); border-radius: 28px; }
  .bottom-nav { position: absolute; }
}

/* Desktop web application layout */
@media (min-width: 768px) {
  body {
    display: block;
    height: auto;
    min-height: 100vh;
    overflow: auto;
    background:
      radial-gradient(circle at 85% 4%, #dce4ff 0, transparent 26%),
      radial-gradient(circle at 15% 75%, #e6e4ff 0, transparent 28%),
      #f4f7ff;
  }

  .app-container {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    background: transparent;
  }

  .app-header {
    position: sticky;
    top: 0;
    height: 72px;
    padding: 0 max(32px, calc((100vw - 1240px) / 2));
    z-index: 30;
    background: rgba(248, 250, 255, 0.86);
  }

  .header-right { order: -1; }
  .logo-text { font-size: 19px; letter-spacing: 2px; }
  .logo-text::after {
    content: 'MARKET';
    margin-left: 8px;
    color: #8c98ae;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    vertical-align: middle;
  }

  .app-content {
    width: min(1240px, calc(100% - 72px));
    min-height: calc(100vh - 72px);
    margin: 0 auto;
    padding: 42px 0 48px 154px;
    overflow: visible;
  }

  .bottom-nav {
    position: fixed;
    top: 104px;
    bottom: auto;
    left: max(28px, calc((100vw - 1240px) / 2));
    right: auto;
    width: 122px;
    height: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
  }

  .nav-item {
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 8px 10px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
  }

  .nav-item span { font-size: 11px; }
  .nav-item i { width: 19px; height: 19px; }

  .promo-banner {
    min-height: 310px;
    padding: 38px;
    border-radius: 28px;
    background-position: center 40%;
  }

  .banner-title { max-width: 460px; font-size: 34px; }
  .banner-desc { max-width: 390px; font-size: 15px; }
  .banner-btn { font-size: 14px; padding: 13px 21px; }

  .categories-container { margin: 0 0 34px; padding: 0; }
  .categories-scroll { justify-content: space-between; overflow: visible; }
  .category-card { flex: 1 1 0; max-width: 145px; }

  .products-vertical-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .product-item-card { min-height: 82px; }
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .grid-product-card { min-height: 198px; padding: 20px; }
  .grid-product-card .product-icon-box { width: 56px; height: 56px; }

  .catalog-filters { margin: 20px 0 24px; padding: 0; }
  .search-bar-container { max-width: 620px; }
  .orders-list { max-width: 850px; }
  .profile-card { max-width: 700px; }
  .profile-menu { max-width: 700px; }

.notification-dropdown { top: 65px; right: max(32px, calc((100vw - 1240px) / 2)); }
  .modal-content { max-width: 460px; }
}

@supports (backdrop-filter: blur(1px)) {
  .bottom-nav {
    background: rgba(255, 255, 255, .34);
    border-color: rgba(255, 255, 255, .58);
    backdrop-filter: blur(24px) saturate(155%);
    -webkit-backdrop-filter: blur(24px) saturate(155%);
  }

  .app-header {
    background: rgba(248, 250, 255, .62);
    border-bottom-color: rgba(255, 255, 255, .55);
    backdrop-filter: blur(20px) saturate(145%);
    -webkit-backdrop-filter: blur(20px) saturate(145%);
  }

  .notification-dropdown {
    background: rgba(255, 255, 255, .66);
    border-color: rgba(255, 255, 255, .72);
    backdrop-filter: blur(22px) saturate(155%);
    -webkit-backdrop-filter: blur(22px) saturate(155%);
  }
}

body.dark-mode .logo-text,
body.dark-mode .logo-text::after {
  color: #eef2ff;
}

body.dark-mode .bottom-nav::before {
  background: linear-gradient(135deg, rgba(30, 41, 59, .84), rgba(15, 23, 42, .72));
}

body.dark-mode .nav-liquid-indicator {
  border: 0;
  background: linear-gradient(145deg, #ffbd5f, #ed8d1e);
  box-shadow: 0 0 0 6px #191b26, 0 8px 18px rgba(212, 117, 17, .34);
}

body.dark-mode .nav-item,
body.dark-mode .nav-item span {
  color: #b7c3d8;
}

body.dark-mode .nav-item i { color: #b7c3d8; }
body.dark-mode .nav-item.active,
body.dark-mode .nav-item.active span,
body.dark-mode .nav-item.active i { color: #0f172a !important; }
body.dark-mode .menu-item,
body.dark-mode .menu-item span { color: #eef2ff; }
body.dark-mode .menu-arrow { color: #9aa9c3; }
body.dark-mode .profile-id,
body.dark-mode .stat-lbl,
body.dark-mode .overview-status,
body.dark-mode .eyebrow { color: #aab7cd; }
body.dark-mode .dropdown-header,
body.dark-mode .dropdown-header h5 { color: #eef2ff; }
body.dark-mode .notification-item strong,
body.dark-mode .notification-item p { color: #eef2ff; }

@media (max-width: 767px) {
  .bottom-nav {
    overflow: visible;
    background: var(--nav-bg) !important;
    border: 1px solid var(--border-color);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.05);
  }

  .bottom-nav::before {
    display: none !important;
  }

  .nav-item { 
    color: #8390a7; 
    transition: color 0.3s ease; 
  }
  
  .nav-item i {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
  }
  
  .nav-item span {
    transition: transform 0.3s ease, color 0.3s ease, opacity 0.3s ease;
  }

  .nav-item.active { 
    color: var(--nav-active-color) !important; 
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  
  .nav-item.active i { 
    color: var(--nav-active-color) !important; 
    transform: none !important;
    z-index: 5;
  }
  
  .nav-item.active span {
    color: var(--nav-active-color) !important;
    font-weight: 700;
    transform: none;
  }

  .nav-liquid-indicator {
    border-radius: 50% !important;
    background: var(--nav-bg) !important;
    border: 6px solid var(--nav-cutout-color) !important;
    box-shadow: none !important;
  }

  /* Curved cutout wings */
  .nav-liquid-indicator::before,
  .nav-liquid-indicator::after {
    content: '';
    position: absolute;
    top: 14px;
    width: 20px;
    height: 20px;
    background: transparent;
    pointer-events: none;
    display: block !important;
  }

  .nav-liquid-indicator::before {
    left: -22px;
    border-radius: 0 20px 0 0;
    box-shadow: 8px -8px 0 0 var(--nav-cutout-color);
  }

  .nav-liquid-indicator::after {
    right: -22px;
    border-radius: 20px 0 0 0;
    box-shadow: -8px -8px 0 0 var(--nav-cutout-color);
  }

  body.dark-mode .nav-item.active,
  body.dark-mode .nav-item.active i,
  body.dark-mode .nav-item.active span {
    color: var(--nav-active-color) !important;
  }

  body.dark-mode .nav-liquid-indicator {
    border-radius: 50% !important;
    background: var(--nav-bg) !important;
    border-color: var(--nav-cutout-color) !important;
    box-shadow: none !important;
  }
}

/* Desktop Dark Mode Sidebar Overrides */
@media (min-width: 768px) {
  body.dark-mode .bottom-nav { 
    background: rgba(30, 41, 59, .92) !important; 
    border-color: #334155; 
  }
  body.dark-mode .bottom-nav::before { 
    background: linear-gradient(135deg, rgba(30, 41, 59, .84), rgba(15, 23, 42, .72)); 
  }
  body.dark-mode .nav-item, body.dark-mode .nav-item span { 
    color: #b7c3d8; 
  }
  body.dark-mode .nav-item.active, 
  body.dark-mode .nav-item.active i, 
  body.dark-mode .nav-item.active span { 
    color: #0f172a !important; 
  }
  body.dark-mode .nav-liquid-indicator {
    background: linear-gradient(145deg, #ffbd5f, #ed8d1e) !important;
    box-shadow: 0 0 0 6px #191b26, 0 8px 18px rgba(212, 117, 17, .34) !important;
  }
}

@media (min-width: 1100px) {
  .products-vertical-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .home-shortcuts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    overflow: hidden;
  }

  .shortcut-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

.nav-liquid-indicator { display: none !important; }
.nav-item.active,
.nav-item.active i,
.nav-item.active span {
  transform: none !important;
  color: #4f46e5 !important;
}

body.dark-mode .nav-item.active,
body.dark-mode .nav-item.active i,
body.dark-mode .nav-item.active span {
  color: #a5a0ff !important;
}

body.dark-mode {
  --palette-deep: #10252a;
  --palette-slate: #3d4d55;
  --palette-muted: #a79e9c;
  --palette-light: #d3c3b9;
  --palette-accent: #b58863;
  --palette-black: #161616;
  --bg-color: #10252a;
  --card-bg: #3d4d55;
  --text-main: #d3c3b9;
  --text-muted: #a79e9c;
  --border-color: rgba(211, 195, 185, .18);
  color: #d3c3b9;
  background: linear-gradient(180deg, #10252a 0%, #161616 100%);
}

body.dark-mode .app-container { background: linear-gradient(180deg, #10252a 0%, #161616 100%); }
body.dark-mode .app-header { background: rgba(16, 37, 42, .88); border-bottom-color: rgba(211, 195, 185, .16); }
body.dark-mode .logo-text,
body.dark-mode .logo-text::after { color: #d3c3b9; }
body.dark-mode .balance-pill,
body.dark-mode .notification-btn,
body.dark-mode .category-card,
body.dark-mode .product-item-card,
body.dark-mode .grid-product-card,
body.dark-mode .profile-menu,
body.dark-mode .profile-card,
body.dark-mode .order-item-card,
body.dark-mode .shortcut-card,
body.dark-mode .search-bar-container,
body.dark-mode .modal-content {
  background: #3d4d55;
  border-color: rgba(211, 195, 185, .2);
  color: #d3c3b9;
}
body.dark-mode .profile-card { background: linear-gradient(140deg, #3d4d55, #10252a); }
body.dark-mode .bottom-nav { background: rgba(22, 22, 22, .9) !important; border-color: rgba(211, 195, 185, .16); }
body.dark-mode .bottom-nav::before { background: linear-gradient(135deg, rgba(61, 77, 85, .82), rgba(16, 37, 42, .74)); }
body.dark-mode .nav-item,
body.dark-mode .nav-item span { color: #a79e9c !important; }
body.dark-mode .nav-item.active,
body.dark-mode .nav-item.active i,
body.dark-mode .nav-item.active span { color: #b58863 !important; }
body.dark-mode .shortcut-balance .shortcut-icon,
body.dark-mode .shortcut-orders .shortcut-icon,
body.dark-mode .shortcut-catalog .shortcut-icon,
body.dark-mode .dark-mode-icon { background: rgba(211, 195, 185, .14); color: #b58863; }
body.dark-mode .product-price,
body.dark-mode .section-header h3,
body.dark-mode .view-header h3,
body.dark-mode .menu-item,
body.dark-mode .menu-item span,
body.dark-mode .profile-card h3 { color: #d3c3b9; }
body.dark-mode .product-type,
body.dark-mode .profile-id,
body.dark-mode .stat-lbl,
body.dark-mode .shortcut-card small,
body.dark-mode .see-all-link,
body.dark-mode .menu-arrow { color: #a79e9c; }
body.dark-mode .filter-pill { background: #3d4d55; border-color: rgba(211, 195, 185, .2); color: #d3c3b9; }
body.dark-mode .filter-pill.active { background: #b58863; border-color: #b58863; color: #161616; }
body.dark-mode .input-group input { background: #10252a; border-color: rgba(211, 195, 185, .28); color: #d3c3b9; }
body.dark-mode .primary-btn { background: linear-gradient(135deg, #b58863, #8f684b); color: #161616; }
body.dark-mode .modal-overlay { background: rgba(16, 37, 42, .78); }
body.dark-mode .menu-icon { background: rgba(211, 195, 185, .14); color: #b58863; }

body.dark-mode {
  --palette-deep: #152b31;
  --palette-slate: #43545b;
  --palette-muted: #aaa3a1;
  --palette-light: #d8c9c0;
  --bg-color: #152b31;
  --card-bg: #43545b;
  --text-main: #d8c9c0;
  --text-muted: #aaa3a1;
  background: linear-gradient(180deg, #152b31 0%, #1b2022 100%);
}

body.dark-mode .app-container { background: linear-gradient(180deg, #152b31 0%, #1b2022 100%); }
body.dark-mode .profile-card { background: linear-gradient(140deg, #43545b, #152b31); }
body.dark-mode .balance-pill,
body.dark-mode .notification-btn,
body.dark-mode .category-card,
body.dark-mode .product-item-card,
body.dark-mode .grid-product-card,
body.dark-mode .profile-menu,
body.dark-mode .profile-card,
body.dark-mode .order-item-card,
body.dark-mode .shortcut-card,
body.dark-mode .search-bar-container,
body.dark-mode .modal-content { background: #43545b; }
body.dark-mode .bottom-nav { background: rgba(27, 32, 34, .9) !important; }
body.dark-mode .input-group input { background: #152b31; }

body.dark-mode {
  --palette-deep: #12372a;
  --palette-slate: #436850;
  --palette-muted: #adbc9f;
  --palette-light: #fbfada;
  --bg-color: #12372a;
  --card-bg: #436850;
  --text-main: #fbfada;
  --text-muted: #adbc9f;
  --border-color: rgba(251, 250, 218, .18);
  background: linear-gradient(180deg, #12372a 0%, #10291f 100%);
}

body.dark-mode .app-container { background: linear-gradient(180deg, #12372a 0%, #10291f 100%); }
body.dark-mode .app-header { background: rgba(18, 55, 42, .9); border-bottom-color: rgba(251, 250, 218, .16); }
body.dark-mode .logo-text,
body.dark-mode .logo-text::after,
body.dark-mode .section-header h3,
body.dark-mode .view-header h3,
body.dark-mode .product-price,
body.dark-mode .menu-item,
body.dark-mode .menu-item span,
body.dark-mode .profile-card h3 { color: #fbfada; }
body.dark-mode .balance-pill,
body.dark-mode .notification-btn,
body.dark-mode .category-card,
body.dark-mode .product-item-card,
body.dark-mode .grid-product-card,
body.dark-mode .profile-menu,
body.dark-mode .profile-card,
body.dark-mode .order-item-card,
body.dark-mode .shortcut-card,
body.dark-mode .search-bar-container,
body.dark-mode .modal-content { background: #436850; border-color: rgba(251, 250, 218, .2); }
body.dark-mode .profile-card { background: linear-gradient(140deg, #436850, #12372a); }
body.dark-mode .bottom-nav { background: rgba(18, 55, 42, .92) !important; border-color: rgba(251, 250, 218, .2); }
body.dark-mode .bottom-nav::before { background: linear-gradient(135deg, rgba(67, 104, 80, .86), rgba(18, 55, 42, .78)); }
body.dark-mode .nav-item,
body.dark-mode .nav-item span,
body.dark-mode .product-type,
body.dark-mode .profile-id,
body.dark-mode .stat-lbl,
body.dark-mode .shortcut-card small,
body.dark-mode .menu-arrow { color: #adbc9f !important; }
body.dark-mode .nav-item.active,
body.dark-mode .nav-item.active i,
body.dark-mode .nav-item.active span { color: #fbfada !important; }
body.dark-mode .filter-pill { background: #436850; border-color: rgba(251, 250, 218, .2); color: #fbfada; }
body.dark-mode .filter-pill.active { background: #adbc9f; border-color: #adbc9f; color: #12372a; }
body.dark-mode .input-group input { background: #12372a; border-color: rgba(251, 250, 218, .28); color: #fbfada; }
body.dark-mode .primary-btn { background: linear-gradient(135deg, #adbc9f, #8fa882); color: #12372a; }
body.dark-mode .menu-icon,
body.dark-mode .shortcut-balance .shortcut-icon,
body.dark-mode .shortcut-orders .shortcut-icon,
body.dark-mode .shortcut-catalog .shortcut-icon,
body.dark-mode .dark-mode-icon { background: rgba(251, 250, 218, .14); color: #fbfada; }
body.dark-mode .modal-overlay { background: rgba(18, 55, 42, .78); }

/* Custom Buy Cards for Stars and Premium */
.custom-buy-card {
  background-color: var(--card-bg);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.03);
  margin-top: 10px;
  animation: cardFadeIn 0.3s ease;
}
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.custom-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.custom-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.custom-card-icon.stars-icon {
  background-color: #fef9c3;
  color: var(--stars-color);
}
body.dark-mode .custom-card-icon.stars-icon {
  background-color: rgba(254, 249, 195, 0.15);
}
.custom-card-icon.premium-icon {
  background-color: #fef3c7;
  color: var(--premium-color);
}
body.dark-mode .custom-card-icon.premium-icon {
  background-color: rgba(254, 243, 199, 0.15);
}
.custom-card-header h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
}
.custom-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
.calculator-body .input-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
  display: block;
}
.calculator-body .input-group input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-color);
  font-size: 16px;
  font-weight: 600;
  outline: none;
  transition: var(--transition);
}
.calculator-body .input-group input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.price-summary-box {
  background-color: var(--input-bg);
  border-radius: 14px;
  padding: 16px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}
.summary-row.total-row {
  border-top: 1px solid var(--input-border);
  padding-top: 10px;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-color);
}

/* Premium Packages selector style */
.premium-packages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.premium-package-item {
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 18px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}
.premium-package-item.active {
  border-color: #6366f1;
  background-color: rgba(99, 102, 241, 0.05);
  box-shadow: 0 0 0 2px #6366f1;
}
.premium-duration {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-color);
}
.premium-price {
  font-size: 13px;
  font-weight: 600;
  color: #6366f1;
}
.premium-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}
.premium-badge.economy {
  background-color: rgba(234, 179, 8, 0.15);
  color: #eab308;
}
.premium-badge.popularity {
  background-color: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}
.premium-badge.best-val {
  background-color: rgba(236, 72, 153, 0.15);
  color: #ec4899;
}

/* Catalog Categories Grid Menu */
.catalog-categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
  animation: menuFadeIn 0.3s ease;
}
@keyframes menuFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.category-menu-card {
  background-color: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  padding: 12px;
  gap: 16px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition);
}
.category-menu-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 102, 241, 0.2);
}
.cat-menu-image {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.cat-menu-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cat-menu-info h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
}
.cat-menu-info span {
  font-size: 11px;
  color: var(--text-muted);
}

/* Category View Header */
.category-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  margin-top: 10px;
  animation: headerFadeIn 0.2s ease;
}
@keyframes headerFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.back-to-menu-btn {
  background: none;
  border: none;
  color: #6366f1;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 10px;
  background-color: rgba(99, 102, 241, 0.08);
  transition: var(--transition);
}
.back-to-menu-btn:hover {
  background-color: rgba(99, 102, 241, 0.15);
}
.category-view-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-color);
  margin: 0;
}

/* /* ─── Random Gift Styles ───────────────────────────────────────────────────── */
.random-gift-card {
  position: relative;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06) 0%, rgba(219, 39, 119, 0.06) 100%);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 26px;
  overflow: hidden;
  padding: 24px 20px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.04);
}
body.dark-mode .random-gift-card {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(219, 39, 119, 0.12) 100%);
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.lucky-gift-icon {
  background: linear-gradient(135deg, #a78bfa, #ec4899) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(236, 72, 153, 0.2);
}

.custom-card-badge {
  background-color: #ec4899;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  margin-left: 6px;
  letter-spacing: 0.5px;
}

.lucky-gift-display-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 24px 0;
  gap: 16px;
}

.lucky-gift-box-container {
  position: relative;
  width: 100%;
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Mystery Box Design (Floating) */
.lucky-gift-box {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 26px;
  background: radial-gradient(circle at 30% 20%, #ffffff 0%, #ede9fe 100%);
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.12), inset 0 -4px 10px rgba(124, 58, 237, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 2;
  border: 1.5px solid rgba(167, 139, 250, 0.2);
  animation: boxFloat 3s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}

body.dark-mode .lucky-gift-box {
  background: radial-gradient(circle at 30% 20%, #1e1b4b 0%, #0f172a 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 -4px 10px rgba(124, 58, 237, 0.05);
  border-color: rgba(167, 139, 250, 0.1);
}

.lucky-gift-box:hover {
  transform: translateY(-4px) scale(1.04);
  border-color: rgba(236, 72, 153, 0.4);
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.2);
}

@keyframes boxFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.gift-box-glow {
  position: absolute;
  inset: -12px;
  border-radius: 36px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.25) 0%, transparent 70%);
  z-index: -1;
  animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.3; }
  100% { transform: scale(1.1); opacity: 0.8; }
}

.lucky-gift-box.spinning {
  animation: boxJiggle 0.4s infinite alternate !important;
}

@keyframes boxJiggle {
  0% { transform: scale(0.95) rotate(-3deg); }
  100% { transform: scale(1.02) rotate(3deg); }
}

.lucky-gift-box.won {
  animation: boxBurst 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
  border-color: #f59e0b;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
}

@keyframes boxBurst {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.gift-box-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.box-question {
  width: 44px;
  height: 44px;
  color: #db2777;
  animation: questionPulse 1.5s infinite;
}

@keyframes questionPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; color: #7c3aed; }
}

.lucky-gift-final-img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 16px;
  animation: imagePopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes imagePopIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Roulette Slider (Golden indicators) */
.roulette-wrapper {
  position: absolute;
  width: 92%;
  height: 96px;
  background-color: var(--card-bg);
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-md);
  z-index: 10;
  animation: fadeIn 0.3s ease;
}

/* Gold Pointer arrows at center top & bottom */
.roulette-wrapper::before,
.roulette-wrapper::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  z-index: 30;
  transform: translateX(-50%);
}

.roulette-wrapper::before {
  top: 0;
  border-top: 12px solid #f59e0b;
}

.roulette-wrapper::after {
  bottom: 0;
  border-bottom: 12px solid #f59e0b;
}

.roulette-center-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
  z-index: 20;
  transform: translateX(-50%);
}

.roulette-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: 0 10px;
  will-change: transform;
}

/* Rarity Tiers */
.roulette-item {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  margin: 0 10px;
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  flex: 0 0 80px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.roulette-item.rarity-common {
  border-color: rgba(59, 130, 246, 0.4);
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.08) 0%, var(--card-bg) 100%);
}

.roulette-item.rarity-epic {
  border-color: rgba(167, 139, 250, 0.6);
  background: radial-gradient(circle at center, rgba(167, 139, 250, 0.15) 0%, var(--card-bg) 100%);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.1);
}

.roulette-item.rarity-legendary {
  border-color: rgba(245, 158, 11, 0.8);
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.22) 0%, var(--card-bg) 100%);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
  animation: legendaryGlow 2s infinite alternate;
}

@keyframes legendaryGlow {
  0% { box-shadow: 0 0 6px rgba(245, 158, 11, 0.1); }
  100% { box-shadow: 0 0 14px rgba(245, 158, 11, 0.3); }
}

.roulette-item img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
}

/* Result Details */
.lucky-gift-result-details {
  text-align: center;
  animation: resultReveal 0.5s ease forwards;
}

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

.lucky-gift-result-details h5 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.lucky-gift-result-details span {
  font-size: 15px;
  font-weight: 800;
  color: #ec4899;
}

/* Budget Selector */
.gift-budget-selector {
  width: 100%;
  margin-bottom: 20px;
}

.selector-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.budget-pills-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.budget-pills-container::-webkit-scrollbar {
  display: none;
}

.budget-pill-btn {
  flex: 1;
  min-width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 10px 8px;
  border-radius: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.budget-pill-btn:hover {
  border-color: #a78bfa;
  transform: translateY(-1px);
}

.budget-pill-btn.active {
  background-color: rgba(124, 58, 237, 0.08);
  border-color: #7c3aed;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.12);
}

body.dark-mode .budget-pill-btn.active {
  background-color: rgba(124, 58, 237, 0.2);
  border-color: #a78bfa;
}

.budget-pill-btn span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
}

.budget-pill-btn small {
  font-size: 9px;
  font-weight: 500;
  color: var(--text-muted);
}

.budget-pill-btn.active span {
  color: #7c3aed;
}
body.dark-mode .budget-pill-btn.active span {
  color: #c084fc;
}

/* Actions styling */
.lucky-gift-actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

.lucky-gift-actions .spin-btn {
  background: linear-gradient(135deg, #7c3aed, #db2777);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.lucky-gift-actions .spin-btn:hover {
  background: linear-gradient(135deg, #6d28d9, #be185d);
}

.post-spin-actions .secondary-btn {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.post-spin-actions .secondary-btn:hover {
  background-color: rgba(0, 0, 0, 0.02);
}
body.dark-mode .post-spin-actions .secondary-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.flex-1 {
  flex: 1;
}

.section-divider {
  display: flex;
  align-items: center;
  margin: 32px 0 20px 0;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--border-color);
}

.section-divider span {
  padding: 0 10px;
}

/* Confetti Particle Burst Animation */
.confetti-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 50;
  animation: explodeConfetti 1.2s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes explodeConfetti {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) rotate(var(--rot)) scale(0);
    opacity: 0;
  }
}


