/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0a1a 100%);
  background-attachment: fixed;
  color: #e5e5e5;
  line-height: 1.6;
}

/* Dark Theme Colors */
:root {
  --bg-black: #0a0a0a;
  --bg-card: #141414;
  --bg-input: #1a1a1a;
  --border-color: #262626;
  --text-primary: #e5e5e5;
  --text-secondary: #888;
  --text-tertiary: #666;
  --accent-purple: #7c3aed;
  --accent-purple-dark: #6d28d9;
  --accent-purple-darker: #4f46e5;
  --accent-red: #dc2626;
}

/* Loading Screen */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #0a0a0a;
}

.spinner {
  border: 3px solid rgba(42, 42, 42, 0.3);
  border-top: 3px solid #7c3aed;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

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

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.6), 0 0 60px rgba(124, 58, 237, 0.3);
  }
}

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

/* Main Layout */
#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #0a0a0a;
}

.header-bar {
  background: linear-gradient(135deg, rgba(15, 15, 15, 0.95) 0%, rgba(26, 10, 26, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.2);
  padding: 16px;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.header-bar .flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.welcome-text {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtext {
  font-size: 14px;
  color: #888;
  margin-top: 4px;
}

/* Tabs */
.flex.justify-center {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid #1f2937;
  background: #0a0a0a;
  overflow-x: auto;
}

.tabBtn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  color: #888;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}

.tabBtn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7c3aed, transparent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.tabBtn:hover {
  color: #ffffff;
  background: rgba(124, 58, 237, 0.05);
}

.tabBtn:hover::after {
  width: 100%;
}

.tab-active {
  border-bottom-color: #7c3aed !important;
  color: #ffffff !important;
  background: rgba(124, 58, 237, 0.1) !important;
}

.tab-active::after {
  width: 100%;
}

.tab-inactive {
  border-bottom-color: transparent;
  color: #666;
}

/* Content Area */
#app > div:last-child {
  flex: 1;
  overflow-y: auto;
}

.tab-content {
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
  display: none;
}

.tab-content:not(.hidden) {
  display: block;
}

/* Cards */
.card {
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideInUp 0.3s ease-out;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card:hover {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 12px 48px rgba(124, 58, 237, 0.2), 0 0 0 1px rgba(124, 58, 237, 0.1);
  transform: translateY(-4px);
}

.card.rounded-lg {
  border-radius: 12px;
}

.card.p-4 {
  padding: 16px;
}

.card.p-6 {
  padding: 24px;
}

/* Balance Card */
.balance-card {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.balance-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(124, 58, 237, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn-red {
  position: relative;
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.btn-red::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-red:hover::before {
  left: 100%;
}

.btn-red:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 100%);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.5), 0 0 0 1px rgba(124, 58, 237, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-red:active {
  transform: scale(0.98) translateY(0);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-red.w-full {
  width: 100%;
}

.btn-red.rounded-lg {
  border-radius: 12px;
}

.btn-red.py-2 {
  padding: 8px 16px;
}

.btn-red.text-sm {
  font-size: 14px;
}

.btn-red.font-bold {
  font-weight: 700;
}

/* Input Fields */
input, textarea {
  background: rgba(26, 26, 26, 0.6) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white !important;
  border: 1px solid rgba(124, 58, 237, 0.2) !important;
  padding: 8px 16px;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  font-size: 14px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:hover, textarea:hover {
  border-color: rgba(124, 58, 237, 0.4) !important;
  background: rgba(26, 26, 26, 0.8) !important;
}

input:focus, textarea:focus {
  border-color: #7c3aed !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.2);
  background: rgba(26, 26, 26, 0.9) !important;
}

input::placeholder, textarea::placeholder {
  color: #666 !important;
}

input.rounded-lg, textarea.rounded-lg {
  border-radius: 12px;
}

input.px-4, textarea.px-4 {
  padding-left: 16px;
  padding-right: 16px;
}

input.py-2, textarea.py-2 {
  padding-top: 8px;
  padding-bottom: 8px;
}

input.text-sm, textarea.text-sm {
  font-size: 14px;
}

input.w-full, textarea.w-full {
  width: 100%;
}

/* Text Utilities */
.text-white {
  color: #ffffff;
}

.text-gray-400 {
  color: #888;
}

.text-gray-500 {
  color: #999;
}

.text-red-600 {
  color: #dc2626;
}

.text-violet-600 {
  color: #7c3aed;
}

.text-xs {
  font-size: 12px;
}

.text-sm {
  font-size: 14px;
}

.text-base {
  font-size: 16px;
}

.text-lg {
  font-size: 18px;
}

.text-2xl {
  font-size: 24px;
}

.text-3xl {
  font-size: 30px;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.mb-1 {
  margin-bottom: 4px;
}

.mb-2 {
  margin-bottom: 8px;
}

.mb-3 {
  margin-bottom: 12px;
}

.mb-4 {
  margin-bottom: 16px;
}

.mb-6 {
  margin-bottom: 24px;
}

.mt-4 {
  margin-top: 16px;
}

.py-3 {
  padding-top: 12px;
  padding-bottom: 12px;
}

.py-4 {
  padding-top: 16px;
  padding-bottom: 16px;
}

.py-6 {
  padding-top: 24px;
  padding-bottom: 24px;
}

.py-12 {
  padding-top: 48px;
  padding-bottom: 48px;
}

.px-2 {
  padding-left: 8px;
  padding-right: 8px;
}

.px-4 {
  padding-left: 16px;
  padding-right: 16px;
}

.px-6 {
  padding-left: 24px;
  padding-right: 24px;
}

.gap-1 {
  gap: 4px;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

.gap-4 {
  gap: 16px;
}

.gap-6 {
  gap: 24px;
}

.border-b {
  border-bottom: 1px solid #262626;
}

.border-l {
  border-left: 1px solid #262626;
}

.border-gray-800 {
  border-color: #1f2937;
}

/* Flexbox Utils */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-baseline {
  align-items: baseline;
}

.items-start {
  align-items: flex-start;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.flex-1 {
  flex: 1;
}

.flex-wrap {
  flex-wrap: wrap;
}

/* Grid Utils */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: 1fr;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.col-span-full {
  grid-column: 1 / -1;
}

/* Spacing */
.space-y-1 > * + * {
  margin-top: 4px;
}

.space-y-2 > * + * {
  margin-top: 8px;
}

.space-y-3 > * + * {
  margin-top: 12px;
}

.space-y-4 > * + * {
  margin-top: 16px;
}

.space-y-6 > * + * {
  margin-top: 24px;
}

/* Max Width */
.max-w-md {
  max-width: 28rem;
}

.max-w-lg {
  max-width: 32rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-5xl {
  max-width: 64rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Overflow */
.overflow-y-auto {
  overflow-y: auto;
}

.max-h-64 {
  max-height: 16rem;
}

.max-h-96 {
  max-height: 24rem;
}

/* Display */
.hidden {
  display: none !important;
}

/* Icons */
.icon-sm {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
}

.icon-lg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
}

/* Line Clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Product items styling (all screens) */
#admin-products-list > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

#admin-products-list > div:hover {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.2), 0 0 0 1px rgba(124, 58, 237, 0.3);
  transform: translateY(-2px);
}

#admin-products-list .product-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

#admin-products-list .product-name {
  font-weight: 600;
  font-size: 15px;
  color: #e5e5e5;
  margin-bottom: 4px;
  word-break: break-word;
}

#admin-products-list .product-desc {
  font-size: 12px;
  color: #999;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

#admin-products-list .product-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 0;
  flex-shrink: 0;
}

#admin-products-list .product-price {
  font-weight: 600;
  color: #8b5cf6;
  min-width: 80px;
  text-align: right;
  font-size: 14px;
}

#admin-products-list .product-stock {
  padding: 6px 10px;
  background: rgba(55, 65, 81, 0.5);
  border-radius: 4px;
  font-size: 12px;
  color: #d1d5db;
  min-width: 70px;
  text-align: center;
  white-space: nowrap;
}

#admin-products-list .btn-delete-product {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  opacity: 0.7;
}

#admin-products-list .btn-delete-product:hover {
  background: rgba(239, 68, 68, 0.2);
  opacity: 1;
}

/* Promo items styling (all screens) */
#admin-promos-list > div {
  position: relative;
  padding: 16px;
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 14px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: grid;
  grid-template-areas:
    "status"
    "code"
    "usage"
    "footer"
    "button";
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

#admin-promos-list > div:hover {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.2), 0 0 0 1px rgba(124, 58, 237, 0.3);
  transform: translateY(-2px);
}

/* Status badge - top right */
#admin-promos-list .promo-status {
  grid-area: status;
  display: flex;
  justify-content: flex-end;
}

#admin-promos-list .promo-status .text-xs {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  display: inline-block;
}

/* Code promo - center with copy button */
#admin-promos-list .promo-code-container {
  grid-area: code;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

#admin-promos-list .promo-code {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 16px;
  color: #8b5cf6;
  letter-spacing: 1px;
}

#admin-promos-list .copy-btn {
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #8b5cf6;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

#admin-promos-list .copy-btn:hover {
  background: rgba(139, 92, 246, 0.3);
  border-color: #8b5cf6;
}

#admin-promos-list .copy-btn.copied {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #10b981;
}

/* Usage - below code */
#admin-promos-list .promo-usage {
  grid-area: usage;
  text-align: center;
  font-size: 12px;
  color: #888;
}

/* Footer - date and discount */
#admin-promos-list .promo-footer {
  grid-area: footer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #888;
  padding-top: 8px;
  border-top: 1px solid #2a2a2a;
}

#admin-promos-list .promo-discount {
  font-weight: 600;
  color: #10b981;
}

/* Delete button */
#admin-promos-list .delete-promo-btn {
  grid-area: button;
  padding: 8px 12px;
  font-size: 12px;
  width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  /* Admin responsive adjustments */
  #admin-tab {
    padding: 12px;
  }

  #admin-tab .max-w-6xl {
    padding-left: 0;
    padding-right: 0;
  }

  /* Users table - convert to card layout on mobile */
  #admin-users .overflow-x-auto {
    overflow: visible !important;
  }

  #admin-users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  #admin-users-list tr {
    display: flex;
    flex-direction: column;
    padding: 14px;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 12px;
    gap: 10px;
    transition: all 0.3s ease;
  }

  #admin-users-list tr:hover {
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.15);
  }

  #admin-users table thead {
    display: none;
  }

  #admin-users-list td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    text-align: left;
    width: 100%;
    border: none !important;
  }

  #admin-users-list td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  #admin-users-list td:first-child {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  #admin-users-list td:first-child::before {
    display: none;
  }

  /* User info styling on mobile */
  #admin-users-list td:first-child p:first-child {
    font-size: 14px;
    font-weight: 600;
    color: #e5e5e5;
  }

  #admin-users-list td:first-child p:last-child {
    font-size: 11px;
    color: #888;
  }

  /* Balance on mobile */
  #admin-users-list td:nth-child(2) {
    font-weight: 600;
    color: #8b5cf6;
  }

  /* Actions buttons - make them wrap properly */
  #admin-users-list td:last-child {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  #admin-users-list td:last-child::before {
    margin-bottom: 6px;
  }

  #admin-users-list td:last-child .flex {
    width: 100%;
    flex-direction: column;
    gap: 6px;
  }

  #admin-users-list button {
    width: 100% !important;
    justify-content: center;
    padding: 8px 12px !important;
    font-size: 12px !important;
  }

  /* Promos section responsive */
  #admin-promos {
    width: 100%;
  }

  #admin-promos .space-y-6 > * + * {
    margin-top: 24px;
  }

  #admin-promos .card {
    width: 100%;
    margin-bottom: 0;
  }

  #admin-promos .card.max-w-md {
    max-width: 100%;
  }

  /* Promos form - full width on mobile */
  #addPromoForm {
    width: 100%;
  }

  #addPromoForm .space-y-4 > * + * {
    margin-top: 12px;
  }

  /* Promos form inputs */
  #addPromoForm input {
    width: 100%;
    box-sizing: border-box;
  }

  /* Promos form button */
  #addPromoForm button {
    width: 100%;
    margin-top: 8px;
  }

  /* Promos list responsive */
  #admin-promos-list {
    gap: 12px;
  }

  #admin-promos-list > div {
    grid-template-areas:
      "status"
      "code"
      "usage"
      "footer"
      "button";
  }

  #admin-promos-list .promo-code {
    font-size: 14px;
  }

  #admin-promos-list .copy-btn {
    padding: 4px 8px;
    font-size: 11px;
  }

  .admin-tab-btn {
    padding: 10px 12px;
    font-size: 12px;
    margin-right: 6px;
    margin-top: 12px;
    flex: 1;
    min-width: 80px;
  }

  .admin-tabs-nav {
    gap: 6px;
    padding: 12px 0;
  }

  /* Responsive grid for admin tabs */
  .grid.grid-cols-1.lg\:grid-cols-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lg\:col-span-2 {
    grid-column: span 1;
  }

  /* Better table handling on mobile */
  table {
    font-size: 11px;
  }

  th, td {
    padding: 6px 8px;
  }

  th {
    font-size: 10px;
  }

  /* Mobile stats grid */
  .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Admin section spacing */
  #admin-products,
  #admin-users,
  #admin-promos {
    margin-top: 12px;
  }

  .card {
    border-radius: 8px;
    padding: 12px !important;
  }

  .card h3 {
    font-size: 14px;
    margin-bottom: 12px;
  }

  /* Form adjustments */
  input,
  textarea {
    font-size: 16px; /* Prevent zoom on iOS */
  }

  /* Form grid - make it single column on mobile */
  #addProductForm .grid.grid-cols-2,
  #addPromoForm .grid.grid-cols-2 {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Form labels and spacing */
  #addProductForm label,
  #addPromoForm label {
    font-size: 12px;
    margin-bottom: 4px;
  }

  /* Button adjustments - only for form buttons */
  #addProductForm .btn-admin,
  #addPromoForm .btn-admin {
    padding: 8px 12px;
    font-size: 12px;
    width: 100%;
    margin-top: 8px;
  }

  /* Action buttons (delete, edit) stay normal size */
  .delete-promo-btn,
  .delete-product-btn {
    width: auto;
    padding: 6px 10px;
    font-size: 11px;
    white-space: nowrap;
  }

  /* Products section improvements */
  #admin-products {
    width: 100%;
  }

  #admin-products .space-y-6 > * + * {
    margin-top: 24px;
  }

  #admin-products .card {
    width: 100%;
    margin-bottom: 0;
  }

  #admin-products .card.max-w-md {
    max-width: 100%;
  }

  /* Product form - full width on mobile */
  #addProductForm {
    width: 100%;
  }

  #addProductForm .space-y-4 > * + * {
    margin-top: 12px;
  }

  /* Product form inputs */
  #addProductForm input,
  #addProductForm textarea {
    width: 100%;
    box-sizing: border-box;
  }

  /* Product form grid */
  #addProductForm .grid.grid-cols-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #addProductForm .grid.grid-cols-2 > div {
    width: 100%;
  }

  /* Product form button */
  #addProductForm button {
    width: 100%;
    margin-top: 8px;
  }

  /* Product list responsive */
  #admin-products-list {
    gap: 12px;
  }

  #admin-products-list > div {
    flex-direction: column;
    padding: 12px 14px;
  }

  #admin-products-list .product-info {
    width: 100%;
    margin-bottom: 8px;
  }

  #admin-products-list .product-name {
    font-size: 13px;
  }

  #admin-products-list .product-desc {
    font-size: 11px;
  }

  #admin-products-list .product-meta {
    width: 100%;
    flex-direction: row;
    gap: 8px;
    margin-left: 0;
  }

  #admin-products-list .product-price {
    min-width: auto;
    flex: 1;
  }

  #admin-products-list .product-stock {
    min-width: auto;
    flex: 1;
  }

  #admin-products-list .btn-delete-product {
    font-size: 14px;
    padding: 2px 4px;
  }

  /* Product list - convert to card layout on mobile */
  .overflow-x-auto {
    overflow: visible !important;
  }

  #admin-products-list {
    display: block;
    width: 100%;
  }

  #admin-products-list tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  #admin-products-list tr {
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
    background: linear-gradient(135deg, #1a1a1a 0%, #141414 100%);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    border-bottom: none;
    gap: 8px;
    transition: all 0.3s ease;
  }

  #admin-products-list tr:hover {
    border-color: #7c3aed;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
  }

  #admin-products-list thead {
    display: none;
  }

  #admin-products-list td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    text-align: right;
  }

  #admin-products-list td:first-child {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  #admin-products-list td:first-child p {
    margin: 0;
  }

  #admin-products-list td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #888;
    font-size: 10px;
    margin-right: 6px;
  }

  #admin-products-list td:first-child::before {
    display: none;
  }

  #admin-products-list .font-semibold {
    display: block;
    font-size: 14px;
  }

  #admin-products-list .text-xs {
    display: block;
    font-size: 11px;
    color: #666;
  }

  /* Promo card list adjustments - better design */
  #admin-promos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  #admin-promos-list > div {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 14px !important;
  }

  #admin-promos-list > div:hover {
    border-color: #7c3aed;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
  }

  #admin-promos-list .flex {
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
  }

  #admin-promos-list .flex.items-center.justify-between {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  #admin-promos-list .flex-1 {
    width: 100%;
    margin-bottom: 6px;
  }

  #admin-promos-list .font-mono.font-bold {
    font-size: 14px;
    display: inline-block;
  }

  #admin-promos-list .delete-promo-btn {
    width: 100%;
    margin-top: 8px;
  }

  /* Table overflow handling */
  .overflow-x-auto {
    border-radius: 8px;
    border: 1px solid #262626;
    -webkit-overflow-scrolling: touch;
  }

  /* Table column sizing on mobile */
  #admin-products-list td:first-child {
    min-width: 150px;
  }

  #admin-products-list td:nth-child(2),
  #admin-products-list td:nth-child(3) {
    min-width: 80px;
  }

  #admin-products-list td:last-child {
    min-width: 90px;
  }

  /* Product table responsive text */
  #admin-products-list .font-semibold {
    font-size: 12px;
  }

  #admin-products-list .text-xs {
    font-size: 10px;
  }

  /* Promo items better visibility */
  #admin-promos-list > div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 12px;
  }

  #admin-promos-list .flex-1 {
    width: 100%;
    margin-bottom: 8px;
  }

  #admin-promos-list .flex.items-center.gap-2 {
    flex-wrap: wrap;
    gap: 6px;
  }

  #admin-promos-list .font-mono {
    font-size: 13px;
  }

  #admin-promos-list .text-sm {
    font-size: 11px;
  }

  /* Forms space-y adjustment */
  #addProductForm.space-y-4 > * + *,
  #addPromoForm.space-y-4 > * + * {
    margin-top: 12px;
  }

  /* Reduce space-y-2 for promo list */
  #admin-promos-list.space-y-2 > * + * {
    margin-top: 8px;
  }

  /* Stock badge sizing */
  #admin-products-list .px-2.py-1 {
    padding: 4px 8px !important;
    font-size: 10px;
  }

  /* Stats cards on mobile */
  #stat-users,
  #stat-products,
  #stat-purchases,
  #stat-revenue {
    font-size: 18px;
  }

  .stat-label {
    font-size: 10px;
  }

  /* Promo status badges */
  #admin-promos-list .text-xs.px-2.py-1 {
    padding: 3px 6px !important;
    font-size: 9px;
  }

  /* Better header visibility */
  .card h3 {
    word-break: break-word;
  }

  /* Prevent overflow in card text */
  #admin-products-list p {
    word-break: break-word;
  }
}

/* Extra small screens (phones) */
@media (max-width: 480px) {
  #admin-tab {
    padding: 8px;
  }

  .card {
    padding: 10px !important;
    margin-bottom: 12px;
  }

  .card h3 {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .admin-tab-btn {
    padding: 8px 10px;
    font-size: 11px;
    margin-right: 4px;
    margin-top: 10px;
  }

  /* Smaller text sizes */
  table {
    font-size: 10px;
  }

  th {
    font-size: 9px;
    padding: 4px 6px;
  }

  td {
    padding: 4px 6px;
  }

  /* Form inputs */
  input,
  textarea {
    padding: 6px 8px;
    font-size: 14px;
  }

  /* Buttons super compact */
  .btn-admin {
    padding: 6px 8px;
    font-size: 10px;
    gap: 4px;
  }

  .delete-promo-btn,
  .delete-product-btn {
    padding: 4px 8px;
    font-size: 10px;
  }

  #addProductForm .btn-admin,
  #addPromoForm .btn-admin {
    width: 100%;
    margin-top: 6px;
  }

  /* Remove some margins */
  .space-y-4 > * + * {
    margin-top: 10px;
  }

  .space-y-2 > * + * {
    margin-top: 6px;
  }

  .gap-6 {
    gap: 10px;
  }

  /* Labels smaller */
  label {
    font-size: 11px;
    margin-bottom: 2px;
  }

  /* Promo list more compact */
  #admin-promos-list > div {
    padding: 8px 10px;
    gap: 6px;
  }

  #admin-promos-list .flex.items-center.gap-2 {
    gap: 4px;
  }

  #admin-promos-list .font-mono {
    font-size: 12px;
  }

  /* Promos list mobile styling */
  #admin-promos-list > div {
    padding: 10px 12px !important;
    border-radius: 8px;
  }

  #admin-promos-list .flex-1 {
    margin-bottom: 8px;
  }

  #admin-promos-list .font-mono.font-bold {
    font-size: 14px;
    color: #8b5cf6;
  }

  #admin-promos-list .text-sm {
    font-size: 10px;
  }

  #admin-promos-list .text-xs {
    font-size: 9px;
  }

  /* Delete button in promos */
  #admin-promos-list .delete-promo-btn {
    width: 100%;
    margin-top: 8px;
  }

  /* Stats grid */
  .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-4 {
    gap: 8px;
  }

  .card.rounded-lg.p-4 {
    padding: 10px !important;
  }

  .card.p-4 p {
    font-size: 10px;
  }

  /* Product list improvements for small screens */
  #admin-products-list tr {
    padding: 10px 12px;
    gap: 6px;
  }

  #admin-products-list td {
    font-size: 11px;
  }

  #admin-products-list .font-semibold {
    font-size: 13px;
  }

  #admin-products-list .text-xs {
    font-size: 10px;
  }

  #admin-products-list .px-2.py-1 {
    padding: 3px 6px !important;
    font-size: 9px;
  }

  /* Promo list improvements for small screens */
  #admin-promos-list > div {
    padding: 10px 12px !important;
    border-radius: 8px;
  }

  #admin-promos-list .font-mono.font-bold {
    font-size: 13px;
  }

  #admin-promos-list .delete-promo-btn {
    width: 100%;
    padding: 6px 10px;
    font-size: 11px;
  }
}

@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .sm\:col-span-2 {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Status Badge */
.bg-red-600 {
  background: #dc2626;
}

.text-red-accent {
  color: #7c3aed;
}

/* Opacity */
.opacity-40 {
  opacity: 0.4;
}

/* Cursor */
.cursor-not-allowed {
  cursor: not-allowed;
}

.cursor-pointer {
  cursor: pointer;
}

/* Background Colors */
.bg-black {
  background: #0a0a0a;
}

.bg-gray-800 {
  background: #1f2937;
}

.bg-green-600 {
  background: #16a34a;
}

.bg-green-700 {
  background: #15803d;
}

.bg-orange-600 {
  background: #ea580c;
}

.bg-orange-700 {
  background: #c2410c;
}

/* Strikethrough */
.line-through {
  text-decoration: line-through;
}

/* Text Align */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

/* Admin Panel Styles */
.admin-tab-btn {
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  padding: 12px 16px;
  font-weight: 500;
  border-radius: 0;
  margin-right: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.admin-tab-btn.admin-tab-active {
  color: #7c3aed;
  border-bottom-color: #7c3aed;
  background-color: rgba(124, 58, 237, 0.1);
  border-color: #7c3aed;
}

.admin-tab-btn:not(.admin-tab-active) {
  color: #888;
  border-bottom-color: transparent;
}

.admin-tab-btn:hover {
  color: #ffffff;
  background-color: rgba(124, 58, 237, 0.05);
  border-color: #7c3aed;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

.admin-tab-content {
  animation: fadeIn 0.3s ease-out;
}

.admin-tab-content.hidden {
  display: none !important;
}

/* Admin tabs container */
.admin-tabs-nav {
  display: flex;
  gap: 8px;
  border: 1px solid #262626;
  overflow-x: auto;
  justify-content: center;
  padding: 12px;
  flex-wrap: wrap;
  border-radius: 8px;
  margin: 16px 0;
  background: rgba(15, 15, 15, 0.5);
}

.admin-tabs-nav::-webkit-scrollbar {
  height: 4px;
}

.admin-tabs-nav::-webkit-scrollbar-track {
  background: #0a0a0a;
}

.admin-tabs-nav::-webkit-scrollbar-thumb {
  background: #404040;
  border-radius: 2px;
}

/* Admin Action Buttons */
.btn-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-admin:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-admin:active {
  transform: scale(0.98);
}

.btn-admin-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  color: white;
}

.btn-admin-primary:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 100%);
}

.btn-admin-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.btn-admin-danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.btn-admin-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.btn-admin-success:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-admin-secondary {
  background: #262626;
  color: #e5e5e5;
  border: 1px solid #404040;
}

.btn-admin-secondary:hover {
  background: #333333;
  border-color: #7c3aed;
}

/* Admin Tables */
table {
  width: 100%;
  border-collapse: collapse;
}

thead tr {
  background-color: rgba(31, 41, 55, 0.5);
  border-bottom: 1px solid #374151;
}

th {
  padding: 12px 24px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #888;
  letter-spacing: 0.05em;
}

tbody tr {
  border-bottom: 1px solid #262626;
  transition: background-color 0.2s ease;
}

tbody tr:hover {
  background-color: rgba(31, 41, 55, 0.3);
}

td {
  padding: 16px 24px;
  font-size: 14px;
  color: #e5e5e5;
}

/* Gradient Cards */
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-blue-500 {
  --tw-gradient-stops: #3b82f6, var(--tw-gradient-to, rgba(59, 130, 246, 0));
}

.from-blue-600 {
  --tw-gradient-stops: #2563eb, var(--tw-gradient-to, rgba(37, 99, 235, 0));
}

.to-blue-600 {
  --tw-gradient-to: #2563eb;
}

.from-emerald-500 {
  --tw-gradient-stops: #10b981, var(--tw-gradient-to, rgba(16, 185, 129, 0));
}

.from-emerald-600 {
  --tw-gradient-stops: #059669, var(--tw-gradient-to, rgba(5, 150, 105, 0));
}

.to-emerald-600 {
  --tw-gradient-to: #059669;
}

.from-amber-500 {
  --tw-gradient-stops: #f59e0b, var(--tw-gradient-to, rgba(245, 158, 11, 0));
}

.from-amber-600 {
  --tw-gradient-stops: #d97706, var(--tw-gradient-to, rgba(217, 119, 6, 0));
}

.to-amber-600 {
  --tw-gradient-to: #d97706;
}

.from-violet-500 {
  --tw-gradient-stops: #8b5cf6, var(--tw-gradient-to, rgba(139, 92, 246, 0));
}

.from-violet-600 {
  --tw-gradient-stops: #7c3aed, var(--tw-gradient-to, rgba(124, 58, 237, 0));
}

.to-violet-600 {
  --tw-gradient-to: #7c3aed;
}

/* Button Colors */
.bg-violet-600 {
  background-color: #7c3aed;
}

.bg-violet-700 {
  background-color: #6d28d9;
}

.bg-violet-600:hover {
  background-color: #6d28d9;
}

.bg-violet-700:hover {
  background-color: #5b21b6;
}

.bg-emerald-600 {
  background-color: #059669;
}

.bg-emerald-700 {
  background-color: #047857;
}

.bg-emerald-600:hover {
  background-color: #047857;
}

.bg-emerald-700:hover {
  background-color: #065f46;
}

.bg-blue-600 {
  background-color: #2563eb;
}

.bg-blue-700 {
  background-color: #1d4ed8;
}

.bg-blue-600:hover {
  background-color: #1d4ed8;
}

.bg-blue-700:hover {
  background-color: #1e40af;
}

.text-violet-400 {
  color: #c084fc;
}

.text-red-400 {
  color: #f87171;
}

.text-emerald-400 {
  color: #34d399;
}

.bg-gray-900 {
  background-color: #111827;
}

.bg-gray-800 {
  background-color: #1f2937;
}

.bg-gray-950 {
  background-color: #03050b;
}

.border-gray-800 {
  border-color: #1f2937;
}

.border-gray-700 {
  border-color: #374151;
}

.focus-border-violet-500:focus {
  border-color: #8b5cf6;
}

.text-blue-100 {
  color: #dbeafe;
}

.text-emerald-100 {
  color: #d1fae5;
}

.text-amber-100 {
  color: #fef3c7;
}

.text-violet-100 {
  color: #ede9fe;
}

.text-orange-500 {
  color: #f97316;
}

/* Sticky positioning */
.sticky {
  position: sticky;
}

.top-6 {
  top: 24px;
}

/* Rounded corners */
.rounded {
  border-radius: 0.25rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

/* Opacity classes */
.opacity-30 {
  opacity: 0.3;
}

.bg-opacity-20 {
  --tw-bg-opacity: 0.2;
}

.bg-opacity-50 {
  --tw-bg-opacity: 0.5;
}

/* Divide utilities */
.divide-y > * + * {
  border-top: 1px solid #262626;
}

.divide-y.divide-gray-800 > * + * {
  border-top-color: #1f2937;
}

/* Overflow handling */
.overflow-x-auto {
  overflow-x: auto;
}

.overflow-hidden {
  overflow: hidden;
}

/* Lucide Icons */
data-icon[class~="lucide"],
.lucide {
  display: inline-block;
}

/* Responsive text sizes */
.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-4xl {
  font-size: 2.25rem;
}

/* Mobile first */
@media (max-width: 639px) {
  .sm\:text-3xl {
    font-size: 1.5rem;
  }

  .sm\:text-4xl {
    font-size: 1.875rem;
  }

  .sm\:px-6 {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .sm\:rounded-xl {
    border-radius: 0.5rem;
  }

  .sm\:col-span-2 {
    grid-column: span 1;
  }

  .hidden.sm\:table-cell {
    display: none;
  }
}

@media (min-width: 640px) {
  .sm\:text-3xl {
    font-size: 1.875rem;
  }

  .sm\:text-4xl {
    font-size: 2.25rem;
  }

  .sm\:text-base {
    font-size: 1rem;
  }

  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .sm\:rounded-xl {
    border-radius: 0.75rem;
  }

  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .sm\:col-span-2 {
    grid-column: span 2;
  }

  .sm\:flex-row {
    flex-direction: row;
  }

  .sm\:items-center {
    align-items: center;
  }

  .sm\:w-auto {
    width: auto;
  }

  .sm\:table-cell {
    display: table-cell;
  }
}

/* Responsive adjustments */
@media (max-width: 1023px) {
  .lg\:hidden {
    display: none;
  }

  .hidden.lg\:flex {
    display: none;
  }
}

@media (min-width: 1024px) {
  .lg\:flex {
    display: flex;
  }

  .lg\:col-span-1 {
    grid-column: span 1;
  }

  .lg\:col-span-2 {
    grid-column: span 2;
  }

  .lg\:col-span-3 {
    grid-column: span 3;
  }

  .lg\:w-64 {
    width: 16rem;
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .md\:col-span-2 {
    grid-column: span 2;
  }
}

@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .sm\:col-span-2 {
    grid-column: span 2;
  }
}

/* ========================================
   PURCHASE ANIMATIONS
   ======================================== */

@keyframes confetti {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes checkmarkDraw {
  0% {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
  }
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

#purchase-modal.active {
  display: flex !important;
  animation: fadeIn 0.3s ease-out;
}

.purchase-success-card {
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.checkmark-circle {
  animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s backwards, pulse 2s ease-in-out 0.8s infinite;
}

.checkmark {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: checkmarkDraw 0.6s ease-out 0.4s forwards;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  animation: confetti 3s linear;
  pointer-events: none;
}

.btn-copy-credentials:hover {
  background: rgba(139, 92, 246, 0.3) !important;
  border-color: #8b5cf6 !important;
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* Modal Overlay */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay.active {
  display: flex;
}

/* Checkmark Circle */
.checkmark-circle {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.4);
}

.checkmark-circle svg {
  width: 50px;
  height: 50px;
  stroke: white;
  stroke-width: 3;
  fill: none;
}

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

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ============================================
   CART STYLES
   ============================================ */

/* Cart Item Card */
.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #141414;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.cart-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cart-item:hover {
  border-color: rgba(124, 58, 237, 0.3);
  background: rgba(124, 58, 237, 0.03);
  transform: translateX(4px);
}

.cart-item:hover::before {
  opacity: 1;
}

.cart-item-image {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(99, 102, 241, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.cart-item-image i {
  color: #7c3aed;
  width: 28px;
  height: 28px;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.cart-item-name {
  font-weight: 600;
  font-size: 15px;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

.cart-item-remove {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: #ef4444;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item-remove:hover {
  background: rgba(220, 38, 38, 0.2);
  border-color: #ef4444;
  transform: scale(1.05);
}

.cart-item-remove:active {
  transform: scale(0.95);
}

.cart-item-remove i {
  width: 16px;
  height: 16px;
}

.cart-item-price {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.cart-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1a1a1a;
  border: 1px solid #262626;
  border-radius: 8px;
  padding: 4px;
}

.quantity-btn {
  background: transparent;
  border: none;
  color: #e5e5e5;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 18px;
  font-weight: 600;
}

.quantity-btn:hover:not(:disabled) {
  background: rgba(124, 58, 237, 0.2);
  color: #7c3aed;
}

.quantity-btn:active:not(:disabled) {
  transform: scale(0.9);
}

.quantity-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.quantity-value {
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
  min-width: 28px;
  text-align: center;
}

.cart-item-stock {
  font-size: 11px;
  color: #666;
  background: #1a1a1a;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #262626;
}

/* Cart Badge */
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.5);
  border: 2px solid #0a0a0a;
  animation: cartBadgePulse 2s ease-in-out infinite;
}

@keyframes cartBadgePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.nav-item-bottom {
  position: relative;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cart-item {
    padding: 12px;
    gap: 12px;
  }

  .cart-item-image {
    width: 60px;
    height: 60px;
  }

  .cart-item-name {
    font-size: 14px;
  }

  .cart-item-price {
    font-size: 18px;
  }

  .cart-item-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cart-item-quantity {
    width: 100%;
    justify-content: center;
  }

  .cart-item-stock {
    font-size: 10px;
    padding: 3px 6px;
  }
}

@media (max-width: 480px) {
  .cart-item {
    padding: 10px;
    gap: 10px;
  }

  .cart-item-image {
    width: 50px;
    height: 50px;
  }

  .cart-item-image i {
    width: 22px;
    height: 22px;
  }

  .cart-item-name {
    font-size: 13px;
  }

  .cart-item-price {
    font-size: 16px;
  }

  .cart-item-remove {
    padding: 5px;
  }

  .cart-item-remove i {
    width: 14px;
    height: 14px;
  }

  .quantity-btn {
    width: 26px;
    height: 26px;
    font-size: 16px;
  }

  .quantity-value {
    font-size: 13px;
    min-width: 24px;
  }

  .cart-item-stock {
    font-size: 9px;
    padding: 2px 5px;
  }
}

@media (max-width: 360px) {
  .cart-item {
    padding: 8px;
    gap: 8px;
  }

  .cart-item-image {
    width: 45px;
    height: 45px;
  }

  .cart-item-image i {
    width: 20px;
    height: 20px;
  }

  .cart-item-name {
    font-size: 12px;
  }

  .cart-item-price {
    font-size: 15px;
  }

  .quantity-btn {
    width: 24px;
    height: 24px;
    font-size: 15px;
  }

  .quantity-value {
    font-size: 12px;
    min-width: 20px;
  }
}

/* Cart Page Delete Button Icon */
.cart-delete-btn-icon {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  stroke: white !important;
  stroke-width: 2.5 !important;
  flex-shrink: 0 !important;
}
