/* Modern Premium CSS - TSLPREMIUM Store (Antigravity Inspired) */

:root {
  /* LIGHT MODE (DEFAULT) */
  --bg-deep: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --border-color: rgba(15, 23, 42, 0.08);
  --border-color-active: rgba(139, 92, 246, 0.4);
  
  --text-primary: #0f172a;
  --text-muted: #64748b;
  --text-dark: #0f172a;
  
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --cyan: #0d9488;
  --emerald: #059669;
  --rose: #e11d48;
  --amber: #d97706;
  
  --grad-primary: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 50%, #06b6d4 100%);
  --grad-primary-hover: linear-gradient(135deg, #7c3aed 0%, #2563eb 50%, #0891b2 100%);
  --grad-glow: radial-gradient(circle at center, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
  --grad-hero: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.5) 100%);
  --bg-topbar: rgba(248, 250, 252, 0.85);
  --grad-text: linear-gradient(135deg, #0f172a 0%, #475569 100%);
  
  --shadow-premium: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 15px rgba(139, 92, 246, 0.1);
  --radius-lg: 16px;
  --radius-md: 10px;
}

/* Dark mode removed — light mode only */

.hidden {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

/* Base resets & styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Ambient background glows */
body::before, body::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  z-index: -2;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.12;
  will-change: filter;
  transform: translateZ(0);
}
body::before {
  top: 10%;
  left: -100px;
  background: var(--purple);
}
body::after {
  bottom: 20%;
  right: -100px;
  background: var(--cyan);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.45);
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Outfit', sans-serif;
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* Sticky top navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px min(48px, 4vw);
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  padding: 2px;
}
.brand div {
  display: flex;
  flex-direction: column;
}
.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand h1 {
  font-size: 18px;
  color: var(--text-primary);
  font-weight: 700;
}

/* Search bar styling */
.top-search {
  max-width: 480px;
  width: 100%;
  position: relative;
  margin: 0 auto;
}
.top-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 16px 10px 42px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
  font-size: 14px;
  transition: all 0.3s ease;
  font-family: inherit;
}
.top-search input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
  background: rgba(255, 255, 255, 0.08);
}
.top-search::before {
  content: '🔍';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  font-size: 14px;
  pointer-events: none;
}

/* Views Navigation */
.tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}
.tab {
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.25s ease;
}
.tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}
.tab.active {
  color: #ffffff;
  background: var(--grad-primary);
  box-shadow: var(--shadow-glow);
}

/* Category Filter Bar */
.categories-container {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none; /* Firefox */
}
.categories-container::-webkit-scrollbar {
  display: none; /* Safari & Chrome */
}
.category-btn {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}
.category-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}
.category-btn.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--purple);
  color: var(--text-primary);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

/* Main workspace */
main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px min(48px, 4vw) 64px;
  position: relative;
  z-index: 10;
}
.view {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}
.view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Premium Hero Section */
.hero {
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--grad-hero);
  padding: clamp(32px, 5vw, 64px);
  margin-bottom: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}
/* Glow sphere in hero */
.hero::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero-copy {
  max-width: 780px;
  position: relative;
  z-index: 2;
}
.hero-copy h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-family: 'Outfit', sans-serif;
  line-height: 1.15;
  margin-bottom: 16px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-copy p:not(.eyebrow) {
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 600px;
}
.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  font-size: 13px;
  color: var(--text-muted);
}
.hero-metrics strong {
  color: var(--text-primary);
}

/* Layout Store Grid & Checkout Panel */
.store-grid {
  display: block;
}
.order-layout {
  display: grid;
  grid-template-columns: minmax(300px, 350px) 1fr;
  gap: 32px;
  align-items: start;
}

/* Checkout Modal Container */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 4, 11, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.checkout-modal.active {
  opacity: 1;
  pointer-events: all;
}
.checkout-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: min(450px, 90%);
  padding: 8px;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-premium), var(--shadow-glow);
}
.checkout-modal.active .checkout-modal-content {
  transform: scale(1);
}
.checkout-modal-content .checkout-panel {
  border: none;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.close-modal-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 24px;
  z-index: 10;
  transition: color 0.2s ease;
}
.close-modal-btn:hover {
  color: var(--rose);
}

/* Panels */
.checkout-panel, .admin-login, .auth-card, .editor, .admin-list, .order-card, .admin-item, .detail-empty, .stat {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-premium);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkout-panel:hover, .auth-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.checkout-panel, .admin-login, .auth-card, .editor {
  padding: 24px;
}

.panel-head {
  margin-bottom: 20px;
}
.panel-head h2 {
  font-size: 24px;
  margin-top: 4px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.panel-head p.muted {
  font-size: 13px;
  color: var(--text-muted);
}

.stack, .editor {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input, select, textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  outline: none;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

select option {
  background-color: #ffffff;
  color: #0f172a;
}


textarea {
  min-height: 100px;
  resize: vertical;
}

/* Total Box */
.total-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px dashed rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.08);
}
.total-box span {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}
.total-box strong {
  font-size: 20px;
  color: var(--cyan);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

/* Premium Buttons */
.primary, .secondary, .danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-md);
  padding: 0 20px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-size: 14px;
}

.primary {
  color: #fff;
  background: var(--grad-primary);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}
.primary:hover {
  background: var(--grad-primary-hover);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}
.primary:active {
  transform: translateY(1px);
}

.secondary {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
}
.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.danger {
  color: #fff;
  background: linear-gradient(135deg, #f43f5e 0%, #b91c1c 100%);
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.2);
}
.danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.4);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.3;
  transform: none !important;
  box-shadow: none !important;
}

/* Products Layout Redesigned (Premium Grid of Cards) */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.section-head h2 {
  font-size: 26px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head .support {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* Product Card Component (Totally changed from list row) */
.product-row {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  height: 100%;
}

.product-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.06), transparent 60%);
  z-index: 1;
}

.product-row:hover {
  transform: translateY(-6px);
  border-color: var(--border-color-active);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), var(--shadow-glow);
}

/* Image Container with Glow/Halos */
.product-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: #03040b;
  z-index: 2;
}

.product-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6, 8, 19, 0.8));
  z-index: 2;
}

.product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-row:hover .product-thumb {
  transform: scale(1.06);
}

/* Category/badge absolute inside image */
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(139, 92, 246, 0.75);
  border: 1px solid rgba(139, 92, 246, 0.5);
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Content Details */
.product-main {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  z-index: 2;
  position: relative;
}

.product-title-line {
  margin-bottom: 8px;
}
.product-title-line h3 {
  font-size: 18px;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
}

.product-main p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
  /* Line clamp 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bottom pricing & actions */
.product-side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  z-index: 2;
}

.stock {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald);
}
.stock.empty {
  background: rgba(244, 63, 94, 0.1);
  color: var(--rose);
}

.price {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
}

.product-action {
  width: 100%;
  z-index: 2;
  margin-top: auto;
}

/* Empty listings */
.empty-list {
  grid-column: 1 / -1;
  padding: 48px 24px;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  background: var(--bg-card);
  text-align: center;
  font-size: 14px;
}

/* Order tracker layout styling */
.order-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.order-card.soft {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: none;
}

.detail-empty {
  min-height: 300px;
  display: grid;
  place-items: center;
  padding: 32px;
  color: var(--text-muted);
  text-align: center;
  font-size: 15px;
}
#orderDetail {
  scroll-margin-top: 92px;
}

#orderDetail.order-detail-modal {
  position: fixed;
  inset: 96px 16px 16px;
  z-index: 90;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
  overflow-y: auto;
  max-height: calc(100vh - 112px);
}

body.order-detail-modal-open {
  overflow: hidden;
}

.instructions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-left: 20px;
}
.instructions li {
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.4;
}

.status {
  width: max-content;
  border-radius: 30px;
  padding: 6px 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-glow);
}
.status.delivered { background: linear-gradient(135deg, #10b981, #059669); }
.status.cancelled, .status.delivery_error { background: linear-gradient(135deg, #f43f5e, #be123c); }
.status.review, .status.waiting_invite { background: linear-gradient(135deg, #f59e0b, #d97706); }
.badge-archived {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #475569;
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.verify-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.verify-row input {
  flex: 1 1 200px;
}

/* User Account Views */
.account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}
.account-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}
.account-summary strong {
  font-size: 18px;
  color: var(--text-primary);
}
.account-summary p {
  color: var(--text-muted);
  font-size: 13px;
}

.mini-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.mini-order {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: left;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.25s ease;
}
.mini-order,
.product-row,
.ticket-card,
.admin-item,
.collapsible-admin-product {
  content-visibility: auto;
  contain-intrinsic-size: 180px 1px;
}
.mini-order:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}
.mini-order.active {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}
.mini-order strong {
  font-size: 13px;
  font-family: 'Space Grotesk', sans-serif;
}
.mini-order span {
  color: var(--text-muted);
  font-size: 11px;
}

/* Toast Messages */
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  max-width: 400px;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: #fff;
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  border: 1px solid var(--purple);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), var(--shadow-glow);
  font-size: 14px;
  font-weight: 500;
  animation: slideUp 0.3s ease-out forwards;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Admin Dashboard CSS Styles */
.admin-panel {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat {
  padding: 20px;
}
.stat .muted {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-primary);
}

.admin-columns {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}
.admin-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
  padding: 16px;
}
.admin-list.compact {
  margin-top: 24px;
}

.admin-product-head {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: center;
}
.admin-product-head img {
  width: 80px;
  height: 60px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  object-fit: cover;
  background: #03040b;
}
.admin-product-head strong {
  font-size: 16px;
  color: var(--text-primary);
}

.admin-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.admin-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}
.admin-item textarea {
  min-height: 80px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Footer Section */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 48px min(48px, 4vw) 32px;
  padding: 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  background: rgba(13, 17, 34, 0.85);
}
.site-footer strong {
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
}
.site-footer p {
  font-size: 13px;
  margin-top: 4px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-size: 13px;
}
.footer-links a {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--purple);
}

/* Responsive queries */
@media (max-width: 1024px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 24px;
  }
  .topbar .brand {
    justify-content: center;
  }
  .top-search {
    order: 3;
    max-width: 100%;
  }
  .tabs {
    width: 100%;
    justify-content: center;
  }
  .tab {
    flex: 1;
    text-align: center;
  }
  .store-grid, .order-layout, .admin-columns, .account-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  main {
    padding: 20px 16px 48px;
  }
  .hero {
    padding: 24px;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .site-footer {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .admin-edit-grid {
    grid-template-columns: 1fr;
  }
}

/* Upload Group Elements */
.upload-group {
  display: flex;
  gap: 10px;
  align-items: center;
}
.upload-group input {
  flex: 1;
}
.file-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px dashed var(--purple);
  border-radius: var(--radius-md);
  color: var(--purple);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  user-select: none;
}
.file-upload-btn:hover {
  background: rgba(139, 92, 246, 0.25);
}
.hidden-file-input {
  display: none !important;
}

/* Admin Login Mode (Lock Screen) */
body.admin-login-mode .topbar,
body.admin-login-mode .site-footer,
body.admin-login-mode #adminPanel {
  display: none !important;
}
body.admin-login-mode #adminLogin {
  display: block !important;
}
body.admin-login-mode {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}
body.admin-login-mode main {
  width: 100%;
  max-width: 400px;
  padding: 0;
}
body:not(.admin-login-mode) #adminLogin {
  display: none !important;
}
body:not(.admin-login-mode) #adminPanel {
  display: grid !important;
}

/* Currency Switcher Toggle */
.currency-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 3px;
  border-radius: 30px;
  gap: 2px;
  margin-right: 8px;
}
.currency-btn {
  border: 0;
  border-radius: 20px;
  background: transparent;
  padding: 5px 12px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
.currency-btn.active {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

/* Fade-in Scroll Animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* Reviews / Testimonials Section */
.testimonials-section {
  margin-top: 80px;
  border-top: 1px solid var(--border-color);
  padding-top: 60px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  position: relative;
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  border-color: var(--border-color-active);
  transform: translateY(-4px);
  box-shadow: var(--shadow-premium), var(--shadow-glow);
}
.stars {
  color: var(--amber);
  font-size: 14px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.testimonial-text {
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 16px;
}
.testimonial-author {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Tickets de Soporte */
.ticket-form-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}
.ticket-form {
  padding: 24px;
}
.tickets-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ticket-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.25s ease;
}
.ticket-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.12);
}
.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.ticket-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.ticket-status {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}
.ticket-status.pending { background: rgba(245, 158, 11, 0.15); color: var(--amber); border: 1px solid rgba(245, 158, 11, 0.3); }
.ticket-status.in_progress { background: rgba(59, 130, 246, 0.15); color: var(--blue); border: 1px solid rgba(59, 130, 246, 0.3); }
.ticket-status.resolved { background: rgba(16, 185, 129, 0.15); color: var(--emerald); border: 1px solid rgba(16, 185, 129, 0.3); }
.ticket-msg {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.ticket-date {
  font-size: 11px;
  color: var(--text-muted);
  align-self: flex-end;
}

/* Collapsible Admin product editor */
.collapsible-admin-product {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.01);
  transition: border-color 0.25s ease;
}
.collapsible-header {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  font-weight: 700;
  transition: background 0.2s ease;
}
.collapsible-header:hover {
  background: rgba(255, 255, 255, 0.05);
}
.collapsible-header .p-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.collapsible-header .p-toggle-icon {
  font-size: 14px;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}
.collapsible-content {
  display: none;
  padding: 18px;
  border-top: 1px solid var(--border-color);
  background: rgba(6, 8, 19, 0.4);
}
.collapsible-admin-product.active {
  border-color: var(--purple);
}
.collapsible-admin-product.active .collapsible-content {
  display: block;
}
.collapsible-admin-product.active .p-toggle-icon {
  transform: rotate(180deg);
  color: var(--purple);
}
.admin-search-box {
  margin-bottom: 16px;
  width: 100%;
}

/* Category Cards Component — gradient style, no images */
.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.category-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1.5px solid rgba(15, 23, 42, 0.07);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cat-gradient, linear-gradient(135deg, #8b5cf6, #3b82f6));
  opacity: 0;
  transition: opacity 0.28s ease;
  z-index: 0;
}
.category-card:hover::after,
.category-card.active::after {
  opacity: 1;
}
.category-card:hover,
.category-card.active {
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.2);
}
.category-card .c-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  position: relative;
  z-index: 1;
  background: var(--cat-gradient, linear-gradient(135deg, #8b5cf6, #3b82f6));
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.18);
  transition: background 0.28s, box-shadow 0.28s;
}
.category-card:hover .c-icon,
.category-card.active .c-icon {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}
.category-card > div {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.category-card .c-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 700;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.28s;
}
.category-card .c-tag {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
  display: block;
  transition: color 0.28s;
}
.category-card:hover .c-title,
.category-card:hover .c-tag,
.category-card.active .c-title,
.category-card.active .c-tag {
  color: #ffffff;
}

/* Redesigned Process Section */
.process-section {
  margin-top: 80px;
  border-top: 1px solid var(--border-color);
  padding-top: 60px;
}
.process-grid {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  margin-top: 40px;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  opacity: 0.3;
  z-index: 1;
}
.process-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px 20px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  z-index: 2;
}
.process-card:hover {
  border-color: var(--border-color-active);
  transform: translateY(-4px);
  box-shadow: var(--shadow-premium), var(--shadow-glow);
}
.p-step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--purple);
  display: grid;
  place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--purple);
  margin-bottom: 8px;
  box-shadow: var(--shadow-glow);
  z-index: 3;
}
.process-card .p-icon {
  font-size: 28px;
  margin-bottom: 4px;
}
.process-card h3 {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 700;
}
.process-card p {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .process-grid {
    flex-direction: column;
    gap: 32px;
  }
  .process-grid::before {
    top: 40px;
    bottom: 40px;
    left: 47px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .process-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 20px 24px;
    gap: 20px;
  }
  .p-step-circle {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .process-card .p-icon {
    margin-bottom: 0;
  }
  .process-card div.p-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
}

/* Reviews ratings summary layouts */
.rating-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  width: max-content;
  box-shadow: var(--shadow-premium);
}
.rating-summary .rating-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
}
.rating-summary .rating-stars-group {
  display: flex;
  flex-direction: column;
}
.rating-summary .rating-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}
.t-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.t-avatar {
  width: 40px;
  height: 40px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  font-family: 'Space Grotesk', sans-serif;
}
.t-author-name {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
}
.t-author-country {
  font-size: 11px;
  color: var(--text-muted);
}

/* Payment logos in footer */
.footer-payment-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}
.payment-logo-item {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  transition: all 0.2s ease;
}
.footer-payment-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 auto;
}
.payment-logo-item.binance-logo:hover { border-color: #F0B90B; color: #F0B90B; background: rgba(240, 185, 11, 0.05); }
.payment-logo-item.paypal-logo:hover { border-color: #0079C1; color: #0079C1; background: rgba(0, 121, 193, 0.05); }
.payment-logo-item.mercado-logo:hover { border-color: #00AEEF; color: #00AEEF; background: rgba(0, 174, 239, 0.05); }
.payment-logo-item.usdt-logo:hover { border-color: #26A17B; color: #26A17B; background: rgba(38, 161, 123, 0.05); }
.payment-logo-item.balance-logo:hover { border-color: var(--purple); color: var(--purple); background: rgba(124, 58, 237, 0.05); }

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-premium);
  color: var(--purple);
  font-size: 20px;
  font-weight: 800;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.95);
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.back-to-top.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.back-to-top:hover {
  box-shadow: var(--shadow-premium), var(--shadow-glow);
}

/* Language Switcher Buttons active color */
.lang-btn.active {
  background: var(--purple) !important;
  color: #fff !important;
  box-shadow: var(--shadow-glow);
}


/* Checkout payment cards */
.checkout-modal-content {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}
.payment-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  flex-wrap: wrap;
}

.catalog-search {
  max-width: 520px;
  width: 100%;
}

.catalog-search input {
  min-height: 52px;
}

.user-notification-container .notification-bell-btn {
  position: relative;
}

.user-notification-dropdown {
  right: 0;
  left: auto;
  width: min(360px, calc(100vw - 24px));
}

.user-notification-dropdown .notification-dropdown-header {
  flex-wrap: wrap;
  gap: 8px;
}

.user-notification-dropdown .notification-dropdown-header .clear-btn:last-child {
  margin-left: auto;
}

.user-notification-dropdown .notification-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
}

.user-notification-dropdown .notification-item + .notification-item {
  border-top: 1px solid var(--border-color);
}

.notification-item.notif-order {
  background: rgba(59, 130, 246, 0.03);
}

.notification-item.notif-review {
  background: rgba(245, 158, 11, 0.05);
}

.notification-item.notif-delivered {
  background: rgba(16, 185, 129, 0.05);
}

.notification-item-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.notification-item-body small {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.notif-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
  margin-top: 5px;
  flex: 0 0 auto;
}
.payment-method-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 12px 14px;
  border: 1.5px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #f8fafc;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  overflow: hidden;
}
.payment-method-card:hover {
  border-color: rgba(139, 92, 246, 0.35);
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.1);
  transform: translateY(-1px);
}
.payment-method-card.active {
  border-color: var(--purple);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(59, 130, 246, 0.04));
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}
.payment-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  flex: 0 0 auto;
}
.payment-binance .payment-mark { background: #f0b90b; color: #111827; }
.payment-paypal .payment-mark { background: #0079c1; }
.payment-mercadopago .payment-mark { background: #009ee3; }
.payment-bep20 .payment-mark,
.payment-erc20 .payment-mark { background: #26a17b; }
.payment-method-card strong {
  display: block;
  font-size: 12px;
  line-height: 1.2;
}
.payment-method-card small {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 0;
}

/* Category card index label */
.category-card .c-index {
  display: none;
}

/* Admin user details */
.user-orders-detail {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
}
.user-orders-detail summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}
.user-orders-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

@media (max-width: 540px) {
  .payment-method-grid {
    grid-template-columns: 1fr;
  }
}

/* Minimal premium light background */
body::before,
body::after {
  display: none;
}

body {
  background: #f8fafc;
}

.product-row.product-showcase {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  cursor: pointer;
}

.product-row.product-showcase:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.22);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.10);
}

.product-showcase .product-image-wrapper {
  width: 100%;
  min-height: 220px;
  border-radius: 14px;
  overflow: hidden;
}

.product-showcase .product-thumb {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.product-showcase .product-main,
.product-showcase .product-side {
  width: 100%;
}

.product-showcase .product-title-line h3 {
  font-size: 1.12rem;
  line-height: 1.18;
}

.product-showcase .product-main p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-showcase .product-side {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.product-showcase .price {
  text-align: right;
  white-space: normal;
}

.product-buy-pill,
.product-detail-buy {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #0ea5e9);
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.22);
}

.product-buy-pill:disabled,
.product-detail-buy:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.payment-method-card {
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
}

.payment-method-card.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, .08), rgba(14, 165, 233, .08));
  border-color: rgba(139, 92, 246, .45);
}

.payment-mark {
  min-width: 54px;
  height: 54px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: #f8fafc;
}

.pay-logo {
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
}

.pay-logo.paypal { color: #003087; letter-spacing: -.2px; }
.pay-logo.mercado { color: #009ee3; }
.pay-logo.binance { color: #f0b90b; font-size: 22px; }
.pay-logo.usdt { color: #26a17b; font-size: 24px; }
.pay-logo.wallet { font-size: 22px; }

.product-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  place-items: center center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(15, 23, 42, .6);
}

.product-detail-modal.active {
  display: grid;
}

.product-detail-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 44%) 1fr;
  width: min(1120px, 100%);
  height: calc(100dvh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, .25);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  font-size: 24px;
}

.product-detail-media {
  background: var(--bg-deep);
  min-height: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 24px;
}
.product-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-deep);
}

.product-detail-copy {
  padding: 42px;
  display: grid;
  gap: 18px;
  align-content: start;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (min-width: 821px) {
  .product-detail-modal {
    place-items: center center;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .product-detail-shell {
    height: auto;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
  }

  .product-detail-copy {
    overflow: visible;
  }
}

.detail-kicker,
.eyebrow {
  letter-spacing: .16em;
}

.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-facts span,
.inv-badge {
  border: 1px solid rgba(15,23,42,.08);
  background: #f8fafc;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
}

.detail-note {
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
}

.inv-table textarea,
.inv-table input,
.ticket-reply-form textarea,
.ticket-reply-form input {
  width: 100%;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 12px;
  background: #fff;
  color: var(--text-primary);
  padding: 9px 10px;
}

#inventoryNewPanel,
#inventoryAddForm {
  scroll-margin-top: 112px;
}

.mini-action {
  padding: 7px 10px;
  font-size: 12px;
  border-radius: 999px;
}

.ticket-thread {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.ticket-reply {
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(15,23,42,.08);
}

.ticket-reply.admin {
  background: rgba(139, 92, 246, .08);
  border-color: rgba(139, 92, 246, .18);
}

.ticket-attachments {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.ticket-attachments img {
  width: 92px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(15,23,42,.08);
}

.ticket-reply-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 820px) {
  .product-row.product-showcase,
  .product-detail-shell {
    grid-template-columns: 1fr;
  }

  /* On mobile the shell scrolls as a whole (image + copy stacked) */
  .product-detail-shell {
    grid-template-rows: auto 1fr;
    overflow-y: auto;
  }
  .product-detail-media {
    overflow: visible;
  }
  .product-detail-media img {
    height: 240px;
    min-height: 240px;
  }
  .product-detail-copy {
    padding: 26px;
    overflow-y: visible;
  }
}

/* Card hover gradient border & click animation */
.product-row.product-showcase {
  position: relative;
  background: var(--bg-card) !important;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s, box-shadow 0.3s;
  z-index: 1;
}
.product-row.product-showcase::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: linear-gradient(90deg, #ff007f, #7f00ff, #00f0ff, #ff007f);
  background-size: 300% 300%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  
  /* Mask out the center of the pseudo-element so only the 2px border is visible! */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
  pointer-events: none;
}

.product-row.product-showcase:hover::before {
  opacity: 1;
  animation: borderGradient 4s linear infinite;
}
.product-row.product-showcase.clicked {
  transform: scale(0.93) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12) !important;
}
@keyframes borderGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Instructions List formatting */
.instructions-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.instructions-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-primary);
}
.instructions-list .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.15);
  color: var(--purple);
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}
.instructions-list .step-bullet {
  color: var(--purple);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  flex-shrink: 0;
}
.instructions-list .step-text {
  flex: 1;
}

/* Image Lightbox Modal */
.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 19, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.image-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.image-lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}
.image-lightbox.active img {
  transform: scale(1);
}
.image-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 10000;
}
.image-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

/* Payment entities logo styles inside checkout */
.payment-mark img.payment-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

/* Collapsible Support Tickets in Admin */
.collapsible-admin-ticket {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.01);
  transition: border-color 0.25s ease;
}
.collapsible-admin-ticket.active {
  border-color: var(--purple);
}
.collapsible-admin-ticket .collapsible-content {
  display: none;
  padding: 18px;
  border-top: 1px solid var(--border-color);
  background: rgba(6, 8, 19, 0.4);
}
.collapsible-admin-ticket.active .collapsible-content {
  display: block;
}
.collapsible-admin-ticket.active .p-toggle-icon {
  transform: rotate(180deg);
  color: var(--purple);
}

/* Notification Bell & Dropdown Styles */
.notification-container {
  position: relative;
  display: inline-block;
}

.notification-bell-btn {
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, transform 0.2s;
  color: var(--text-primary);
}

.notification-bell-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
  transform: scale(1.05);
}

.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: var(--rose);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-deep);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.notification-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 10px;
  width: 320px;
  max-height: 400px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  display: none;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
}

.notification-dropdown.active {
  display: flex;
  animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notification-dropdown-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.05);
}

.notification-dropdown-header strong {
  font-size: 14px;
  color: var(--text-primary);
}

.notification-dropdown-header .clear-btn {
  background: transparent;
  border: none;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.notification-dropdown-header .clear-btn:hover {
  text-decoration: underline;
  background: rgba(13, 148, 136, 0.1);
}

.notification-list-items {
  overflow-y: auto;
  flex: 1;
}

.notification-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: background-color 0.15s;
  cursor: pointer;
  text-decoration: none;
}

.notification-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item .notif-icon {
  font-size: 18px;
  margin-top: 2px;
}

.notification-item .notif-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.notification-item .notif-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.notification-item .notif-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
}

.notification-item .notif-time {
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.7;
  align-self: flex-end;
}

.empty-notif {
  padding: 30px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* User Support Tickets Collapsible */
.collapsible-user-ticket {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.collapsible-user-ticket.active {
  border-color: var(--purple);
  background: var(--bg-card-hover);
}

.collapsible-user-ticket.active .p-toggle-icon {
  transform: rotate(180deg);
  color: var(--purple);
}

/* Chat bubble thread UI styling */
.ticket-thread {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  margin-top: 10px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.03);
}

.reply-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.4;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.reply-bubble.reply-user {
  background-color: #ffffff;
  color: #1e293b;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.reply-bubble.reply-admin {
  background-color: var(--purple);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.reply-meta {
  font-size: 11px;
  opacity: 0.85;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.reply-text {
  word-break: break-word;
  font-weight: 500;
}

/* Kanban column support board */
.ticket-kanban-board {
  margin-top: 20px;
}

.kanban-column {
  transition: all 0.3s ease;
}

.kanban-column:hover {
  border-color: rgba(139, 92, 246, 0.15) !important;
}

.collapsible-admin-ticket {
  background: var(--bg-card) !important;
}

.collapsible-admin-ticket.active {
  background: var(--bg-card-hover) !important;
}

.collapsible-admin-ticket.active .collapsible-content {
  display: block;
}

.collapsible-admin-ticket .collapsible-content {
  background: #ffffff !important;
}

/* Chat view updates */
.ticket-thread {
  background-color: #f3f4f6;
  background-image: radial-gradient(#d1d5db 1px, transparent 1px);
  background-size: 16px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 450px;
  overflow-y: auto;
  margin-top: 10px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.03);
}

.chat-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
}

.chat-row.user {
  justify-content: flex-start;
}

.chat-row.admin {
  justify-content: flex-end;
  flex-direction: row-reverse;
}

.chat-row .reply-bubble {
  max-width: 75%;
}

/* Styled default avatar images */
.ticket-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.ticket-avatar.avatar-user {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  color: #0284c7;
}

.ticket-avatar.avatar-admin {
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
  color: #7c3aed;
}

.ticket-avatar svg {
  width: 20px;
  height: 20px;
}

/* Explicit Select backgrounds */
select {
  background-color: #ffffff !important;
  color: #0f172a !important;
}
select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

/* Ensure solid background for product collapsible */
.collapsible-admin-product .collapsible-content {
  background: #ffffff !important;
}

/* =========================================================
   DESIGN IMPROVEMENTS — Light mode polish
   ========================================================= */

/* Better topbar light style */
.topbar {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07) !important;
  box-shadow: 0 1px 20px rgba(15, 23, 42, 0.06) !important;
}

/* Better hero section */
.hero {
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 60%, #ede9fe 100%) !important;
  border: 1.5px solid rgba(139, 92, 246, 0.12) !important;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.06) !important;
}

/* Tab active style — cleaner */
.tab.active {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6) !important;
  color: #fff !important;
}

/* Product cards — clean white */
.product-row.product-showcase {
  background: #ffffff !important;
  border: 1.5px solid rgba(15, 23, 42, 0.07) !important;
}
.product-row.product-showcase:hover {
  border-color: rgba(139, 92, 246, 0.22) !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.09) !important;
}

/* Support bell badge for nav */
.tab-with-badge {
  position: relative;
}
.tab-support-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e11d48;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #f8fafc;
  padding: 0 3px;
  pointer-events: none;
}

/* Account profile card improvements */
.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.profile-info-item {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 12px;
  padding: 12px 14px;
}
.profile-info-item .p-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 4px;
}
.profile-info-item .p-value {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  word-break: break-all;
}
.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #ede9fe 0%, #dbeafe 100%);
  border-radius: 14px;
  margin-bottom: 4px;
}
.profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  flex-shrink: 0;
}
.profile-avatar-name {
  font-size: 18px;
  font-weight: 700;
  color: #1e1b4b;
  font-family: 'Space Grotesk', sans-serif;
}
.profile-avatar-email {
  font-size: 13px;
  color: #6d28d9;
  margin-top: 2px;
}

/* Checkout modal — PRO redesign */
.checkout-modal {
  background: rgba(15, 23, 42, 0.88) !important;
}
.checkout-modal-content {
  width: min(520px, 95%) !important;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 24px !important;
}
.checkout-modal-content .checkout-panel {
  padding: 32px !important;
  background: #ffffff !important;
}
.checkout-modal-content .panel-head h2 {
  font-size: 22px;
}

/* Checkout total box */
.total-box {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.07), rgba(59, 130, 246, 0.05)) !important;
  border: 1.5px solid rgba(139, 92, 246, 0.2) !important;
  border-radius: 14px !important;
}
.total-box strong {
  font-size: 22px;
  color: #7c3aed !important;
}

/* Payment method grid */
.payment-method-grid {
  gap: 8px !important;
}

/* Orders view improvements */
.order-layout {
  gap: 24px;
}

/* Ticket view for user — fix fade-in issue */
#ticketsList .ticket-card,
#ticketsList .collapsible-user-ticket {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* Footer polish */
.site-footer {
  background: #ffffff !important;
  border: 1.5px solid rgba(15, 23, 42, 0.07) !important;
}

/* Glassmorphic panels light mode */
.checkout-panel, .auth-card, .editor, .admin-list, .order-card, .admin-item, .detail-empty, .stat {
  background: #ffffff !important;
  border: 1.5px solid rgba(15, 23, 42, 0.07) !important;
}

/* Admin content backgrounds */
.collapsible-admin-ticket .collapsible-content {
  background: #f8fafc !important;
}
.collapsible-admin-ticket.active .collapsible-content {
  display: block;
}

/* Ticket thread — clean chat bg */
.ticket-thread {
  background-color: #f1f5f9 !important;
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px) !important;
  background-size: 18px 18px !important;
}

/* Input and form fields light */
input, select, textarea {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: #0f172a !important;
}
input:focus, select:focus, textarea:focus {
  background: #ffffff !important;
  border-color: var(--purple) !important;
}

/* Toast notification light mode */
.toast {
  background: linear-gradient(135deg, #1e1b4b, #312e81) !important;
}

/* Notification bell light */
.notification-bell-btn {
  color: #475569 !important;
}
.notification-bell-btn:hover {
  background: rgba(139, 92, 246, 0.08) !important;
}

/* Support bell in client nav */
.support-notif-dot {
  width: 8px;
  height: 8px;
  background: #e11d48;
  border-radius: 50%;
  position: absolute;
  top: 4px;
  right: 10px;
  border: 1.5px solid #f8fafc;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* Category card gradients per type */
.cat-todos { --cat-gradient: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 60%, #06b6d4 100%); }
.cat-ia { --cat-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); }
.cat-streaming { --cat-gradient: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%); }
.cat-diseno { --cat-gradient: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%); }
.cat-productividad { --cat-gradient: linear-gradient(135deg, #10b981 0%, #0891b2 100%); }
.cat-video { --cat-gradient: linear-gradient(135deg, #f97316 0%, #f59e0b 100%); }
.cat-otros { --cat-gradient: linear-gradient(135deg, #64748b 0%, #475569 100%); }

/* Better section heads */
.section-head h2 {
  color: #0f172a;
  background: none !important;
  -webkit-text-fill-color: #0f172a !important;
}

/* Hero copy gradient text stays */
.hero-copy h2 {
  background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 50%, #7c3aed 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Better process cards */
.process-card {
  background: #ffffff !important;
  border: 1.5px solid rgba(15, 23, 42, 0.07) !important;
}
.p-step-circle {
  background: linear-gradient(135deg, #ede9fe, #dbeafe) !important;
  border-color: transparent !important;
  color: #7c3aed !important;
}

/* Testimonial cards */
.testimonial-card {
  background: #ffffff !important;
  border: 1.5px solid rgba(15, 23, 42, 0.07) !important;
}

/* Stat cards in admin */
.stat {
  background: #ffffff !important;
}

/* Remove old dark-mode .lang-btn override */
.lang-btn.active {
  background: var(--purple) !important;
  color: #fff !important;
}

@media (max-width: 768px) {
  .category-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }
  .category-card {
    padding: 12px 14px;
  }
  .profile-info-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   TICKET CARDS (clickable) + CHAT MODAL
   ========================================================= */
.ticket-clickable {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.ticket-clickable:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.3) !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}
.ticket-preview {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.ticket-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding-top: 10px;
  margin-top: 2px;
}
.ticket-open-hint {
  color: var(--purple);
  font-weight: 700;
}
.ticket-unread-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e11d48;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
  animation: pulse-dot 1.5s ease-in-out infinite;
}
.ticket-kanban-card {
  background: #ffffff;
  border: 1.5px solid rgba(15, 23, 42, 0.07);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.ticket-kanban-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

/* Chat modal */
.ticket-chat-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.ticket-chat-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.ticket-chat-shell {
  position: relative;
  width: min(640px, 100%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ticket-chat-modal.active .ticket-chat-shell {
  transform: scale(1);
}
.ticket-chat-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.06);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #475569;
  transition: background 0.2s;
}
.ticket-chat-close:hover {
  background: rgba(225, 29, 72, 0.12);
  color: #e11d48;
}
.ticket-chat-head {
  padding: 22px 24px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  background: linear-gradient(135deg, #faf5ff, #eef2ff);
}
.tc-head-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-right: 36px;
}
.tc-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--purple);
}
.tc-subject {
  font-size: 18px;
  color: #0f172a;
  margin-top: 2px;
  font-family: 'Space Grotesk', sans-serif;
}
.tc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 10px;
  font-size: 12px;
  color: #64748b;
}
.ticket-chat-thread {
  flex: 1;
  overflow-y: auto;
  margin: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  max-height: none !important;
}
.ticket-chat-foot {
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  padding: 14px 18px 18px;
  background: #ffffff;
}
.tc-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.tc-status-btn {
  font-size: 12px;
  padding: 7px 12px;
  min-height: auto;
  border-radius: 10px;
}
.tc-reply-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tc-reply-form textarea {
  min-height: 64px;
  border-radius: 14px !important;
  resize: vertical;
}
.tc-reply-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tc-attach-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.tc-attach-btn:hover {
  background: #e2e8f0;
}
.tc-file-info {
  flex: 1;
  font-size: 12px;
  color: var(--purple);
  font-weight: 600;
}
.tc-reply-form .primary {
  min-height: 42px;
  border-radius: 12px;
}

@media (max-width: 540px) {
  .ticket-chat-shell { max-height: 94vh; border-radius: 18px; }
  .tc-subject { font-size: 16px; }
}

/* =========================================================
   MY ORDERS — richer cards + detail facts
   ========================================================= */
.mini-order {
  gap: 8px !important;
  padding: 14px !important;
  border-radius: 14px !important;
}
.mini-order-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.mini-order-top strong {
  font-size: 13.5px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-order-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  font-size: 11.5px;
  color: var(--text-muted);
}
.order-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 18px 0;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
}
.order-fact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.order-fact .of-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}
.order-fact .of-value {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  word-break: break-word;
}

/* Order filter chips */
.orders-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 4px;
}
.order-chip {
  border: 1.5px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}
.order-chip b { font-weight: 800; }
.order-chip:hover { border-color: rgba(139, 92, 246, 0.4); color: #0f172a; }
.order-chip.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

/* Readable order status badges (solid light bg + strong colored text) */
.order-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-pending      { background: #fef3c7; color: #b45309; }
.badge-review       { background: #e0e7ff; color: #4338ca; }
.badge-paid         { background: #cffafe; color: #0e7490; }
.badge-waiting_invite { background: #ffedd5; color: #c2410c; }
.badge-delivered    { background: #dcfce7; color: #15803d; }
.badge-cancelled    { background: #fee2e2; color: #b91c1c; }
.badge-delivery_error { background: #fee2e2; color: #b91c1c; }

/* =========================================================
   MOBILE HARDENING
   Keeps the good desktop layout intact while forcing the
   checkout/store/admin surfaces to stack cleanly on phones.
   ========================================================= */
@media (max-width: 900px) {
  html, body {
    overflow-x: hidden;
  }

  main {
    padding: 16px 12px 42px !important;
  }

  .topbar {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 12px 12px 14px !important;
  }

  .topbar .brand {
    justify-content: flex-start;
    width: 100%;
  }

  .top-search {
    width: 100%;
    max-width: none !important;
  }

  .topbar > div:last-child {
    width: 100%;
    justify-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .user-notification-container {
    position: static !important;
  }

  .user-notification-dropdown {
    position: fixed !important;
    top: 136px;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-height: 52dvh;
    z-index: 1200;
  }

  .topbar .lang-switcher,
  .topbar .currency-switcher {
    align-self: flex-start;
  }

  .tabs {
    width: 100%;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px !important;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .admin-tabs {
    width: 100%;
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .admin-tabs::-webkit-scrollbar {
    display: none;
  }

  .admin-tabs .tab {
    flex: 0 0 auto;
  }

  .tab {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 10px 14px;
  }

  .hero {
    padding: 18px !important;
    margin-bottom: 20px !important;
  }

  .hero::before {
    width: 240px;
    height: 240px;
    right: -130px;
    top: -130px;
  }

  .hero-copy h2 {
    font-size: clamp(24px, 7vw, 36px) !important;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 14px !important;
  }

  .hero-metrics {
    gap: 8px !important;
  }

  .hero-metrics span {
    width: 100%;
    justify-content: center;
  }

  .section-head {
    gap: 8px;
  }

  .section-head h2 {
    font-size: clamp(20px, 5vw, 28px) !important;
  }

  .products {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .product-row.product-showcase {
    padding: 12px !important;
    border-radius: 18px !important;
    gap: 12px !important;
    min-width: 0;
  }

  .product-row.product-showcase .product-image-wrapper {
    height: auto !important;
    aspect-ratio: 16 / 11;
    min-height: 0;
  }

  .product-row.product-showcase .product-main p {
    -webkit-line-clamp: 3;
    font-size: 12.5px;
  }

  .product-row.product-showcase .product-title-line h3 {
    font-size: 16px !important;
  }

  .product-row.product-showcase .product-side {
    flex-wrap: wrap;
    gap: 10px;
  }

  .product-row.product-showcase .price {
    font-size: 18px;
  }

  .product-buy-pill {
    width: 100% !important;
    min-height: 46px;
  }

  .category-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .category-card {
    padding: 12px !important;
    min-height: 88px;
  }

  .store-grid,
  .order-layout,
  .admin-columns,
  .account-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .checkout-modal,
  .product-detail-modal {
    padding: 8px !important;
    align-items: flex-start !important;
  }

  .checkout-modal-content,
  .product-detail-shell,
  .ticket-chat-shell {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    max-height: calc(100dvh - 16px) !important;
  }

  .checkout-modal-content {
    transform: none !important;
    height: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .checkout-modal-content .checkout-panel {
    padding: 18px !important;
  }

  #checkoutModal .checkout-modal-content .panel-head h2 {
    font-size: 20px !important;
  }

  #checkoutModal .primary {
    width: 100% !important;
    height: 48px !important;
  }

  .payment-method-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .payment-method-card {
    min-height: 62px !important;
    padding: 10px 12px !important;
  }

  .primary,
  .secondary,
  .tab,
  .payment-method-card,
  .product-buy-pill,
  .product-detail-buy {
    touch-action: manipulation;
  }

  .payment-mark {
    width: 24px !important;
    height: 24px !important;
    border-radius: 8px !important;
    overflow: hidden;
  }

  .payment-mark img.payment-logo-img {
    width: 72% !important;
    height: 72% !important;
    object-fit: contain !important;
  }

  .checkout-panel,
  .auth-card,
  .editor,
  .admin-list,
  .order-card,
  .admin-item,
  .detail-empty,
  .stat {
    padding: 16px !important;
  }

  .panel-head h2 {
    font-size: 20px;
  }

  .order-facts {
    grid-template-columns: 1fr !important;
    padding: 12px !important;
    margin: 14px 0;
  }

  .verify-row {
    flex-direction: column;
    align-items: stretch;
  }

  .verify-row input,
  .verify-row .primary {
    width: 100%;
  }

  .ticket-form-container {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr !important;
  }

  .ticket-form-container > section,
  .ticket-form {
    width: 100% !important;
    min-width: 0 !important;
  }

  .ticket-attachments {
    gap: 8px;
  }

  .ticket-attachments img {
    width: 72px;
    height: 72px;
  }

  .product-detail-modal {
    place-items: start center;
  }

  .product-detail-shell {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    overflow-y: auto !important;
    border-radius: 18px !important;
    height: auto !important;
    max-height: calc(100dvh - 16px) !important;
  }

  .product-detail-media img {
    height: 220px !important;
    object-fit: cover !important;
  }

  .product-detail-copy {
    padding: 18px !important;
    gap: 14px !important;
  }

  .detail-facts {
    gap: 8px !important;
  }

  .detail-facts span {
    width: 100%;
  }

  .modal-close,
  .close-modal-btn {
    top: 10px !important;
    right: 10px !important;
    width: 34px !important;
    height: 34px !important;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }

  .back-to-top {
    right: 12px;
    bottom: 84px;
  }

  .stats {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

@media (max-width: 540px) {
  .category-cards-grid {
    grid-template-columns: 1fr !important;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .hero-metrics span {
    font-size: 12px;
  }

  .product-row.product-showcase .badge {
    font-size: 9px;
    padding: 4px 8px;
  }

  .product-row.product-showcase .product-side {
    align-items: flex-start;
  }

  .checkout-modal-content,
  .product-detail-shell,
  .ticket-chat-shell {
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    max-height: calc(100dvh - 12px) !important;
  }

  .checkout-modal-content {
    overflow-y: auto !important;
  }

  .checkout-modal-content .checkout-panel,
  .product-detail-copy,
  .ticket-chat-head,
  .ticket-chat-foot {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

