/* ============================================================
   Venta y Compra - Taller Mecanico Mojarra
   Futuristic Dark Marketplace Theme
   ============================================================ */

/* ---------- Google Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ==========================================================
   1. CSS CUSTOM PROPERTIES
   ========================================================== */
:root {
  /* Backgrounds */
  --bg:             #070b18;
  --bg-secondary:   #0d1526;
  --bg-card:        rgba(13, 21, 42, 0.85);
  --bg-glass:       rgba(13, 21, 42, 0.65);
  --bg-input:       rgba(255, 255, 255, 0.05);
  --bg-input-focus: rgba(255, 255, 255, 0.08);

  /* Borders */
  --border:         rgba(99, 149, 255, 0.15);
  --border-active:  rgba(99, 149, 255, 0.4);

  /* Text */
  --text:           #e8edf5;
  --text-muted:     #8899b8;
  --text-heading:   #ffffff;

  /* Brand Colors */
  --primary:        #00e5ff;
  --primary-glow:   rgba(0, 229, 255, 0.2);
  --primary-dark:   #00b8cc;
  --secondary:      #2ea8ff;
  --secondary-glow: rgba(46, 168, 255, 0.2);
  --accent:         #4ed8b0;
  --accent-glow:    rgba(78, 216, 176, 0.2);

  /* Semantic */
  --danger:         #ff4757;
  --danger-glow:    rgba(255, 71, 87, 0.2);
  --warning:        #ffa502;
  --warning-glow:   rgba(255, 165, 2, 0.2);
  --success:        #2ed573;
  --success-glow:   rgba(46, 213, 115, 0.2);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--secondary), var(--primary));
  --gradient-accent:  linear-gradient(135deg, var(--primary), var(--accent));
  --gradient-danger:  linear-gradient(135deg, #ff6b6b, var(--danger));
  --gradient-success: linear-gradient(135deg, var(--success), #7bed9f);
  --gradient-hero:    linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(46, 168, 255, 0.05), rgba(78, 216, 176, 0.03));

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md:   0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg:   0 16px 48px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px var(--primary-glow);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border);

  /* Layout */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --radius-full: 9999px;
  --max-width:  1280px;
  --navbar-h:   64px;

  /* Transitions */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.15s var(--ease-out);
  --transition-base: 0.25s var(--ease-out);
  --transition-slow: 0.4s var(--ease-out);
}

/* ==========================================================
   2. KEYFRAMES
   ========================================================== */
@keyframes shine {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

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

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

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 5px var(--primary-glow); }
  50%      { box-shadow: 0 0 20px var(--primary-glow), 0 0 40px rgba(0, 229, 255, 0.1); }
}

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

@keyframes borderGlow {
  0%, 100% { border-color: var(--border); }
  50%      { border-color: var(--border-active); }
}

/* ==========================================================
   3. RESET & BASE
   ========================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 10% 0%, rgba(0, 229, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(46, 168, 255, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  line-height: 1.3;
  font-weight: 700;
}

::selection {
  background: var(--primary);
  color: var(--bg);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(99, 149, 255, 0.25);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 149, 255, 0.4);
}

/* ==========================================================
   4. CONTAINER & MAIN CONTENT
   ========================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.main-content {
  min-height: calc(100vh - var(--navbar-h) - 200px);
  padding: 2rem 0;
  animation: fadeIn 0.4s var(--ease-out);
}

/* ==========================================================
   5. NAVBAR
   ========================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--navbar-h);
  transition: background var(--transition-base);
}

.navbar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--bg);
}

.brand-text {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-heading);
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.brand-sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 1px;
}

/* Nav Search */
.nav-search {
  position: relative;
  flex: 1;
  max-width: 420px;
}

.nav-search input {
  width: 100%;
  padding: 0.55rem 0.85rem 0.55rem 2.4rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text);
  font-size: 0.875rem;
  font-family: inherit;
  transition: all var(--transition-base);
}

.nav-search input::placeholder {
  color: var(--text-muted);
}

.nav-search input:focus {
  outline: none;
  background: var(--bg-input-focus);
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.nav-search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-glow);
}

/* Dropdown button in nav */
.nav-dd-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.nav-dd-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* Nav Categories Dropdown */
.nav-categories-dropdown {
  position: relative;
}

.nav-categories-dropdown .nav-dd-btn::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 2px;
  transition: transform var(--transition-fast);
}

.nav-categories-dropdown:hover .nav-dd-btn::after {
  transform: rotate(180deg);
}

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 600px;
  padding: 1.5rem;
  background: var(--bg-secondary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-base);
  z-index: 1100;
}

.nav-categories-dropdown:hover .mega-menu,
.mega-menu:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.mega-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.mega-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--primary);
}

.mega-item i,
.mega-item .mega-icon {
  font-size: 1.1rem;
  color: var(--primary);
  width: 28px;
  text-align: center;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-active);
}

/* Nav Logout */
.nav-logout-form {
  display: inline;
  margin: 0;
  padding: 0;
}

.nav-logout {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: none;
  background: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.nav-logout:hover {
  background: var(--danger-glow);
}

/* Nav Role Badges */
.nav-admin,
.nav-super {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-admin {
  background: var(--warning-glow);
  color: var(--warning);
  border: 1px solid rgba(255, 165, 2, 0.3);
}

.nav-super {
  background: var(--danger-glow);
  color: var(--danger);
  border: 1px solid rgba(255, 71, 87, 0.3);
}

/* Glow Button */
.btn-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  background: var(--gradient-primary);
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  font-family: inherit;
}

.btn-glow:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
  color: var(--bg);
}

/* ==========================================================
   6. FLASH MESSAGES
   ========================================================== */
.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  animation: slideDown 0.35s var(--ease-out);
  border: 1px solid transparent;
}

.flash-success {
  background: var(--success-glow);
  border-color: rgba(46, 213, 115, 0.3);
  color: var(--success);
}

.flash-error {
  background: var(--danger-glow);
  border-color: rgba(255, 71, 87, 0.3);
  color: var(--danger);
}

.flash-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
  padding: 0 0.25rem;
  line-height: 1;
}

.flash-close:hover {
  opacity: 1;
}

/* ==========================================================
   7. HERO SECTION
   ========================================================== */
.hero {
  position: relative;
  padding: 3.5rem 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--gradient-hero);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  overflow: hidden;
  margin-bottom: 2.5rem;
  animation: fadeIn 0.6s var(--ease-out);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(0, 229, 255, 0.05), transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(46, 168, 255, 0.04), transparent 50%);
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(0, 229, 255, 0.08), transparent 60%),
              radial-gradient(circle at 80% 70%, rgba(46, 168, 255, 0.06), transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
  position: relative;
  background: linear-gradient(135deg, var(--text-heading), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 1.8rem;
  position: relative;
}

.hero-search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-search-form input {
  flex: 1;
  min-width: 200px;
  padding: 0.85rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all var(--transition-base);
}

.hero-search-form input::placeholder {
  color: var(--text-muted);
}

.hero-search-form input:focus {
  outline: none;
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.hero-search-form select {
  padding: 0.85rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-base);
  min-width: 160px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238899b8' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6 6.5-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

.hero-search-form select:focus {
  outline: none;
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.hero-search-form button {
  padding: 0.85rem 1.8rem;
  background: var(--gradient-primary);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.hero-search-form button:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

/* ==========================================================
   8. SECTION HEADERS
   ========================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-header a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all var(--transition-fast);
}

.section-header a:hover {
  gap: 0.5rem;
}

/* ==========================================================
   9. CARDS GRID
   ========================================================== */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* ==========================================================
   10. LISTING CARD
   ========================================================== */
.listing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  animation: slideUp 0.5s var(--ease-out) backwards;
  display: flex;
  flex-direction: column;
}

.listing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--border-active);
}

.listing-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--bg-secondary);
}

.listing-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.listing-card:hover .listing-card-img img {
  transform: scale(1.05);
}

.listing-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Badges */
.listing-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.badge-new {
  color: var(--success);
  border-color: rgba(46, 213, 115, 0.3);
  background: var(--success-glow);
}

.badge-used {
  color: var(--warning);
  border-color: rgba(255, 165, 2, 0.3);
  background: var(--warning-glow);
}

.badge-featured {
  color: var(--primary);
  border-color: rgba(0, 229, 255, 0.3);
  background: var(--primary-glow);
}

.badge-verified {
  color: var(--accent);
  border-color: rgba(78, 216, 176, 0.3);
  background: var(--accent-glow);
}

.listing-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.listing-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.listing-card-title a:hover {
  color: var(--primary);
}

.listing-card-location {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.listing-card-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: auto;
  letter-spacing: -0.02em;
}

.listing-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================
   11. PRODUCT DETAIL
   ========================================================== */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: calc(var(--navbar-h) + 1rem);
}

.gallery-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  margin-bottom: 0.75rem;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.gallery-thumb {
  width: 72px;
  height: 54px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all var(--transition-fast);
  opacity: 0.6;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: var(--primary);
  opacity: 1;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Info */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.product-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.product-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.product-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

.product-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.product-description p {
  margin-bottom: 0.75rem;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  font-family: inherit;
}

.btn-whatsapp:hover {
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
  transform: translateY(-1px);
  color: #fff;
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--gradient-primary);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  font-family: inherit;
}

.btn-call:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-favorite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 1.15rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-favorite:hover,
.btn-favorite.active {
  color: var(--danger);
  border-color: rgba(255, 71, 87, 0.4);
  background: var(--danger-glow);
}

.btn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 1.15rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-share:hover {
  color: var(--secondary);
  border-color: rgba(46, 168, 255, 0.4);
  background: var(--secondary-glow);
}

/* Seller Card */
.seller-card {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.seller-card h3 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Report Section */
.report-section {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.report-section a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.report-section a:hover {
  color: var(--danger);
}

/* ==========================================================
   12. FORMS
   ========================================================== */
input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: all var(--transition-base);
  line-height: 1.5;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: var(--bg-input-focus);
}

input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238899b8' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6 6.5-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.5rem;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  cursor: pointer;
}

input[type="file"] {
  padding: 0.5rem;
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  padding: 0.45rem 1rem;
  background: var(--gradient-primary);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  margin-right: 0.75rem;
  font-family: inherit;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

/* ==========================================================
   13. BUTTONS
   ========================================================== */
button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.3rem;
  background: var(--gradient-primary);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
}

button:hover,
.btn:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

button:active,
.btn:active {
  transform: translateY(0);
}

button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

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

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
}

.btn-danger {
  background: var(--gradient-danger);
  color: #fff;
}

.btn-danger:hover {
  box-shadow: 0 0 20px var(--danger-glow);
}

.btn-success {
  background: var(--gradient-success);
  color: var(--bg);
}

.btn-success:hover {
  box-shadow: 0 0 20px var(--success-glow);
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning), #ffbe76);
  color: var(--bg);
}

.btn-warning:hover {
  box-shadow: 0 0 20px var(--warning-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--border-active);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
  transform: none;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================
   14. AUTH PAGES
   ========================================================== */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--navbar-h) - 4rem);
  padding: 2rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.4s var(--ease-out);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================
   15. PANEL / DASHBOARD
   ========================================================== */
.panel-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  min-height: calc(100vh - var(--navbar-h) - 4rem);
}

.panel-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  height: fit-content;
  position: sticky;
  top: calc(var(--navbar-h) + 1rem);
}

.panel-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.panel-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.panel-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.panel-nav a.active {
  color: var(--primary);
  background: var(--primary-glow);
  font-weight: 600;
}

.panel-nav a i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.panel-main {
  min-width: 0;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  transition: all var(--transition-base);
}

.stat-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.stat-card .stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  font-weight: 500;
}

.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.2rem;
  flex-shrink: 0;
  background: var(--primary-glow);
  color: var(--primary);
  border: 1px solid rgba(0, 229, 255, 0.15);
}

/* ==========================================================
   16. DATA TABLES / LISTS
   ========================================================== */
.data-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.data-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.data-item:hover {
  border-color: var(--border-active);
}

.data-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-weight: 600;
  flex-wrap: wrap;
}

.data-item-body {
  padding: 0 1.25rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.data-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ==========================================================
   17. ADMIN PANELS
   ========================================================== */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  min-height: calc(100vh - var(--navbar-h) - 4rem);
}

.admin-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  height: fit-content;
  position: sticky;
  top: calc(var(--navbar-h) + 1rem);
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.admin-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.admin-nav a.active {
  color: var(--primary);
  background: var(--primary-glow);
  font-weight: 600;
}

.admin-main {
  min-width: 0;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

/* Admin Table */
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}

.admin-table thead th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.02);
}

.admin-table tbody tr {
  transition: background var(--transition-fast);
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.admin-table tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-pending {
  color: var(--warning);
  background: var(--warning-glow);
  border: 1px solid rgba(255, 165, 2, 0.3);
}

.status-approved {
  color: var(--success);
  background: var(--success-glow);
  border: 1px solid rgba(46, 213, 115, 0.3);
}

.status-rejected {
  color: var(--danger);
  background: var(--danger-glow);
  border: 1px solid rgba(255, 71, 87, 0.3);
}

.status-blocked {
  color: var(--danger);
  background: rgba(255, 71, 87, 0.15);
  border: 1px solid rgba(255, 71, 87, 0.25);
}

.status-hidden {
  color: var(--text-muted);
  background: rgba(136, 153, 184, 0.1);
  border: 1px solid rgba(136, 153, 184, 0.2);
}

/* ==========================================================
   18. PAGINATION
   ========================================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.pagination a:hover {
  color: var(--text);
  border-color: var(--border-active);
  background: rgba(255, 255, 255, 0.06);
}

.pagination .active {
  background: var(--gradient-primary);
  color: var(--bg);
  border-color: transparent;
  font-weight: 700;
}

.pagination .disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: not-allowed;
}

/* ==========================================================
   19. FOOTER
   ========================================================== */
.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links li a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-links li a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ==========================================================
   20. MODAL
   ========================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

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

.modal-box {
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: scaleIn 0.3s var(--ease-out);
}

.modal-overlay.active .modal-box {
  animation: scaleIn 0.3s var(--ease-out);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--border-active);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  transform: none;
}

.modal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-right: 2rem;
}

.modal-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* ==========================================================
   21. SKELETON LOADER
   ========================================================== */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: shine 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

.skeleton-text {
  height: 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: shine 1.5s ease-in-out infinite;
  margin-bottom: 0.5rem;
}

.skeleton-text:last-child {
  width: 70%;
}

.skeleton-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-card);
}

.skeleton-card .skeleton {
  border-radius: 0;
}

.skeleton-card .skeleton:first-child {
  height: 180px;
}

/* ==========================================================
   22. UTILITY CLASSES
   ========================================================== */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.ml-auto { margin-left: auto; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }

.w-full { width: 100%; }
.hidden { display: none; }

.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.inline-form input,
.inline-form select {
  width: auto;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==========================================================
   23. RESPONSIVE - TABLET (max-width: 1024px)
   ========================================================== */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

/* ==========================================================
   24. RESPONSIVE - BELOW 900px
   ========================================================== */
@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    position: static;
  }

  .panel-layout {
    grid-template-columns: 1fr;
  }

  .panel-sidebar {
    position: static;
    order: -1;
  }

  .panel-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    order: -1;
  }

  .admin-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

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

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

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

/* ==========================================================
   25. RESPONSIVE - MOBILE (max-width: 768px)
   ========================================================== */
@media (max-width: 768px) {
  :root {
    --navbar-h: 56px;
  }

  body {
    font-size: 15px;
  }

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

  /* Hide search on mobile, show toggle */
  .nav-search {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  /* Nav links collapse on mobile */
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border);
    order: 10;
  }

  .nav-links.open {
    display: flex;
    animation: slideDown 0.25s var(--ease-out);
  }

  .nav-link,
  .nav-dd-btn,
  .nav-logout {
    width: 100%;
    justify-content: flex-start;
    padding: 0.6rem 0.5rem;
  }

  /* Mega Menu - full width on mobile */
  .mega-menu {
    position: fixed;
    top: var(--navbar-h);
    left: 0;
    right: 0;
    transform: none;
    min-width: auto;
    width: 100%;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    max-height: 70vh;
    overflow-y: auto;
  }

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

  /* Hero adjustments */
  .hero {
    padding: 2rem 1.25rem;
    margin-bottom: 1.5rem;
  }

  .hero-search-form {
    flex-direction: column;
  }

  .hero-search-form input,
  .hero-search-form select,
  .hero-search-form button {
    width: 100%;
    min-width: auto;
  }

  /* Grid Cards */
  .grid-cards {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
  }

  /* Product */
  .product-actions {
    flex-direction: column;
  }

  .product-actions > * {
    width: 100%;
    justify-content: center;
  }

  .btn-favorite,
  .btn-share {
    width: 100%;
    height: auto;
    padding: 0.65rem;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Auth */
  .auth-card {
    padding: 1.75rem 1.25rem;
  }

  /* Modal */
  .modal-box {
    padding: 1.5rem;
    max-width: 95%;
  }

  /* Admin Table: scrollable */
  .admin-card {
    overflow-x: auto;
  }

  .admin-table {
    min-width: 600px;
  }

  /* Section headers */
  .section-header h2 {
    font-size: 1.15rem;
  }
}

/* ==========================================================
   26. RESPONSIVE - SMALL MOBILE (max-width: 480px)
   ========================================================== */
@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

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

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

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

  .hero h1 {
    font-size: 1.5rem;
  }

  .product-title {
    font-size: 1.3rem;
  }

  .product-price {
    font-size: 1.5rem;
  }

  .listing-card-price {
    font-size: 1.1rem;
  }

  .auth-card {
    padding: 1.5rem 1rem;
  }

  .pagination a,
  .pagination span {
    min-width: 34px;
    height: 34px;
    font-size: 0.8rem;
  }

  .data-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .data-item-actions {
    width: 100%;
  }
}

/* ==========================================================
   27. PRINT STYLES
   ========================================================== */
@media print {
  body {
    background: #fff;
    color: #000;
  }

  .navbar,
  .site-footer,
  .mobile-toggle,
  .modal-overlay {
    display: none !important;
  }

  .main-content {
    padding: 0;
  }

  .listing-card,
  .admin-card,
  .form-card,
  .stat-card,
  .seller-card {
    box-shadow: none;
    border: 1px solid #ccc;
    background: #fff;
  }
}

/* ==========================================================
   28. ADDITIONAL COMPONENTS (views-specific)
   ========================================================== */

/* Quick Categories Row */
.quick-categories {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1.5rem 0;
  scrollbar-width: thin;
}
.quick-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  min-width: 80px;
  padding: .8rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  font-size: .8rem;
  text-align: center;
  transition: var(--transition-base);
}
.quick-cat-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}
.quick-cat-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  font-size: 1.2rem;
}

/* Text glow */
.text-glow {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero search row */
.hero-search-row {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.hero-input-wrap {
  flex: 2;
  min-width: 200px;
  position: relative;
}
.hero-input-wrap i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.hero-input-wrap input {
  padding-left: 2.5rem;
  width: 100%;
}
.hero-search-row select {
  flex: 1;
  min-width: 160px;
}
.hero-search-row button {
  min-width: 120px;
}

/* Search page */
.search-page { }
.search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.search-header h1 { margin: 0; }

/* Filters bar */
.filters-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.filters-actions {
  display: flex;
  gap: .8rem;
  margin-top: 1rem;
  align-items: center;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: .4;
}
.empty-state h3 {
  color: var(--text);
  margin-bottom: .5rem;
}

/* Tab bar */
.tab-bar {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.tab-btn {
  padding: .5rem 1.2rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  font-size: .85rem;
  transition: var(--transition-fast);
}
.tab-btn:hover,
.tab-btn.active {
  background: var(--gradient-primary);
  color: var(--bg);
  border-color: transparent;
  font-weight: 600;
}

/* Admin edit details */
.admin-edit-details {
  margin-top: .8rem;
}
.admin-edit-details summary {
  cursor: pointer;
  display: inline-flex;
}
.admin-edit-form {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

/* Log viewer */
.log-viewer {
  margin-top: 1rem;
  max-height: 300px;
  overflow-y: auto;
}
.log-pre {
  font-family: 'Courier New', monospace;
  font-size: .78rem;
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.6;
  margin: 0;
}

/* Table responsive */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Auth components */
.auth-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--bg);
  margin: 0 auto 1rem;
}
.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.auth-footer a {
  color: var(--primary);
  text-decoration: none;
}
.auth-footer p {
  margin-top: .5rem;
  color: var(--text-muted);
}

/* btn-block */
.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Panel user info / avatar */
.panel-user-info {
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}
.panel-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0 auto .8rem;
  border: 2px solid var(--border);
}
.panel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  color: var(--text-muted);
  font-size: 2rem;
}
.panel-user-info h3 {
  margin: 0;
  font-size: 1rem;
}
.panel-user-info p {
  font-size: .8rem;
}

/* Stat link */
.stat-link {
  display: block;
  margin-top: .5rem;
  font-size: .8rem;
  color: var(--primary);
  text-decoration: none;
}
.stat-link:hover {
  text-decoration: underline;
}

/* Data item meta */
.data-item-meta {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: .3rem;
  font-size: .85rem;
}

/* Product sidebar */
.product-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Product badges */
.product-badges {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

/* Product currency */
.product-currency {
  font-size: .7em;
  color: var(--text-muted);
  font-weight: 400;
}

/* Product meta (fix for grid) */
.meta-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--text-muted);
  font-size: .9rem;
  padding: .3rem 0;
}
.meta-item i {
  width: 18px;
  text-align: center;
  color: var(--primary);
  font-size: .85rem;
}

/* Product description */
.product-description {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.product-description h3 {
  margin-bottom: .8rem;
  font-size: 1.1rem;
}

/* Seller avatar */
.seller-avatar {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 2px solid var(--border);
}
.seller-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Report section */
.report-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.report-section h4 {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

/* Static page */
.static-page {
  max-width: 800px;
  margin: 0 auto;
}
.page-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.page-content {
  line-height: 1.8;
  color: var(--text-muted);
}

/* Admin brand */
.admin-brand {
  font-weight: 700;
  font-size: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
  color: var(--primary);
}

/* Image preview container (JS-generated) */
.image-preview-container {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}
.image-preview-container img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* Section spacing */
.section {
  margin-bottom: 2rem;
}

/* Product main area */
.product-main {
  min-width: 0;
}

/* Flash warning */
.flash-warning {
  background: var(--warning-glow);
  border: 1px solid rgba(255, 165, 2, 0.4);
}

@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
  }
  .filters-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-search-row {
    flex-direction: column;
  }
  .quick-categories {
    gap: .6rem;
  }
}

@media (max-width: 480px) {
  .filters-grid {
    grid-template-columns: 1fr;
  }
  .product-title {
    font-size: 1.3rem;
  }
  .product-price {
    font-size: 1.5rem;
  }
  .quick-cat-item {
    min-width: 65px;
    font-size: .7rem;
  }
}

/* ==========================================================
   29. SOLD OVERLAY & MEDIATOR
   ========================================================== */

/* Sold overlay on product gallery */
.product-gallery {
  position: relative;
}
.sold-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: var(--radius);
  pointer-events: none;
}
.sold-stamp {
  font-size: 4rem;
  font-weight: 900;
  color: #ff4444;
  text-transform: uppercase;
  transform: rotate(-15deg);
  border: 6px solid #ff4444;
  padding: 0.5rem 2rem;
  letter-spacing: 0.2em;
  text-shadow: 0 0 30px rgba(255, 68, 68, 0.6);
  background: rgba(0, 0, 0, 0.3);
}

/* Sold notice below badges */
.sold-notice {
  background: rgba(255, 68, 68, 0.12);
  border: 1px solid rgba(255, 68, 68, 0.3);
  color: #ff6b6b;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  margin: 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}
.sold-notice i {
  margin-right: 0.5rem;
}

/* Badge sold */
.badge-sold {
  background: #ff4444 !important;
  color: #fff !important;
}

/* Status badge sold (admin) */
.status-badge.status-sold {
  background: rgba(255, 68, 68, 0.15);
  color: #ff6b6b;
}

/* Botón Vendido en acciones admin */
.btn-sold {
  background: linear-gradient(135deg, #ff4444, #cc0000) !important;
  color: #fff !important;
  border: none;
  font-weight: 600;
}
.btn-sold:hover {
  background: linear-gradient(135deg, #ff6666, #ee2222) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
}

/* Listing card sold overlay */
.listing-card-img {
  position: relative;
}
.listing-card-sold-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  border-radius: var(--radius) var(--radius) 0 0;
  pointer-events: none;
}
.listing-card-sold-overlay span {
  font-size: 1.6rem;
  font-weight: 900;
  color: #ff4444;
  text-transform: uppercase;
  transform: rotate(-12deg);
  border: 3px solid #ff4444;
  padding: 0.3rem 1rem;
  letter-spacing: 0.15em;
  text-shadow: 0 0 15px rgba(255, 68, 68, 0.5);
  background: rgba(0, 0, 0, 0.3);
}

/* Mediator badge */
.mediator-badge {
  background: rgba(0, 200, 255, 0.1);
  border: 1px solid rgba(0, 200, 255, 0.3);
  color: var(--cyan);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mediator-badge i {
  font-size: 1.1rem;
}

/* Responsive sold stamp */
@media (max-width: 600px) {
  .sold-stamp {
    font-size: 2.5rem;
    padding: 0.3rem 1.2rem;
    border-width: 4px;
  }
  .listing-card-sold-overlay span {
    font-size: 1.2rem;
  }
}

/* ==========================================================
   30. CONTABILIDAD / COMISIONES
   ========================================================== */

/* Commission amounts — monospace for alignment */
.commission-amount {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Commission badges */
.commission-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.commission-badge.pending {
  background: rgba(255, 165, 2, 0.15);
  border: 1px solid rgba(255, 165, 2, 0.3);
  color: var(--warning);
}
.commission-badge.paid {
  background: rgba(46, 213, 115, 0.15);
  border: 1px solid rgba(46, 213, 115, 0.3);
  color: var(--success);
}

/* Commission table */
.commission-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.commission-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.75rem 0.6rem;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.commission-table td {
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.commission-table tbody tr:hover {
  background: rgba(99, 149, 255, 0.05);
}
.commission-table .text-right {
  text-align: right;
}

/* Summary row (totals) */
.commission-table .summary-row td {
  border-top: 2px solid var(--border-active);
  border-bottom: none;
  background: rgba(0, 229, 255, 0.05);
  padding: 0.85rem 0.6rem;
  font-size: 0.92rem;
}

/* Filter tabs for period/status */
.commission-filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 80px;
}
.filter-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-input);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.filter-tab:hover {
  color: var(--text);
  border-color: var(--border-active);
  background: var(--bg-input-focus);
}
.filter-tab.active {
  color: var(--bg);
  background: var(--gradient-primary);
  border-color: transparent;
  font-weight: 600;
}

/* Export button */
.export-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--bg);
  background: var(--gradient-accent);
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.export-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

/* Responsive commissions */
@media (max-width: 768px) {
  .commission-table {
    font-size: 0.8rem;
  }
  .commission-table th,
  .commission-table td {
    padding: 0.5rem 0.35rem;
  }
  .filter-group {
    flex-direction: column;
    align-items: flex-start;
  }
  .filter-label {
    min-width: auto;
  }
  .commission-filters {
    gap: 0.7rem;
  }
}

/* ==========================================================
   31. REDUCED MOTION
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
