/* ==========================================================================
   BASTION AI - CLOTHES WORLD MLS COLOMBIA — RED MATRIZ DE CONFECCIÓN & ROPA MAYORISTA
   ========================================================================== */


:root, [data-theme="cyber-cobalt"] {
  --primary-red: #2563eb;
  --primary-red-hover: #1d4ed8;
  --primary-red-light: #eff6ff;
  --primary-red-dim: rgba(37, 99, 235, 0.1);
  --border-accent: rgba(37, 99, 235, 0.35);
  --shadow-glow-red: 0 4px 20px rgba(37, 99, 235, 0.28);
}

[data-theme="luxury-atelier"] {
  --bg-main: #0a0a0c;
  --bg-surface: #141419;
  --bg-surface-elevated: #1e1e24;
  --bg-glass: rgba(20, 20, 25, 0.94);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(212, 175, 55, 0.45);
  --primary-red: #d4af37;
  --primary-red-hover: #e2b857;
  --primary-red-light: rgba(212, 175, 55, 0.15);
  --primary-red-dim: rgba(212, 175, 55, 0.1);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --shadow-glow-red: 0 4px 20px rgba(212, 175, 55, 0.25);
}

[data-theme="streetwear-crimson"] {
  --primary-red: #e6192e;
  --primary-red-hover: #cc1124;
  --primary-red-light: #fff1f2;
  --primary-red-dim: rgba(230, 25, 46, 0.1);
  --border-accent: rgba(230, 25, 46, 0.35);
  --shadow-glow-red: 0 4px 20px rgba(230, 25, 46, 0.28);
}

:root {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.94);
  
  --border-subtle: rgba(15, 23, 42, 0.09);
  --border-accent: rgba(230, 25, 46, 0.35);
  
  /* ROJO TORINO OFICIAL (FERRARI / RACING CRIMSON) */
  --primary-red: #e6192e;
  --primary-red-hover: #cc1124;
  --primary-red-light: #fff1f2;
  --primary-red-dim: rgba(230, 25, 46, 0.1);
  
  --accent-blue: #0284c7;
  --accent-emerald: #10b981;
  --accent-purple: #7c3aed;
  --whatsapp-green: #25d366;
  --whatsapp-green-hover: #20ba59;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 25px -4px rgba(15, 23, 42, 0.07), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
  --shadow-glow-red: 0 4px 20px rgba(230, 25, 46, 0.28);
  --shadow-glow-wa: 0 4px 18px rgba(37, 211, 102, 0.3);
  
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-brand: 'Montserrat', sans-serif;
}

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

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

button, a, input, select, textarea, [role="button"], .product-card, .brand-chip-btn, .size-pill-btn {
  touch-action: manipulation;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: 90px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   DOT PATTERN BACKGROUND (MODO CLARO SHADCN STYLE)
   ========================================================================== */
.dot-pattern-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at 50% 30%, rgba(0,0,0,1) 35%, rgba(0,0,0,0.05) 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, rgba(0,0,0,1) 35%, rgba(0,0,0,0.05) 85%);
}

.app-wrapper {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   TOP BAR HUD & MULTI-ROLE SWITCHER
   ========================================================================== */
.top-demo-hud {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.hud-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hud-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hud-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-red);
  box-shadow: 0 0 12px rgba(230, 25, 46, 0.35);
  background: #ffffff;
}

.hud-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  font-family: var(--font-brand);
}

.hud-title span {
  color: var(--primary-red);
  font-weight: 900;
}

.role-switcher-tabs {
  display: flex;
  background: var(--bg-surface-elevated);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  gap: 4px;
}

/* ==========================================================================
   BARRA DE CLIENTE B2B PRIVADO (VANESSA / SNEAKER PARTNER)
   ========================================================================== */
.client-auth-hud {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 99;
  padding: 8px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.client-auth-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.role-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.role-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.04);
}

.role-tab-btn.active {
  background: linear-gradient(135deg, var(--primary-red) 0%, #b80d1e 100%);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(230, 25, 46, 0.35);
}

.hud-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.store-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-select {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.hud-select:focus {
  border-color: var(--primary-red);
}

.btn-reset-demo {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reset-demo:hover {
  color: var(--primary-red);
  border-color: var(--primary-red);
}

/* ==========================================================================
   MAIN CONTAINERS & STOREFRONT
   ========================================================================== */
.main-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* Store Header (White-Label) */
.store-header {
  background: linear-gradient(180deg, #ffffff 0%, rgba(248, 250, 252, 0.8) 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 30px 20px;
}

.store-header-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.store-info-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.store-avatar {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%);
  border: 2px solid var(--primary-red);
  box-shadow: 0 0 16px rgba(230, 25, 46, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 900;
  color: var(--primary-red);
  flex-shrink: 0;
  overflow: hidden;
}

.store-meta h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.badge-verified {
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  background: #10b981;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.store-meta p {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 4px;
  max-width: 750px;
}

.store-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-red);
  margin-top: 6px;
  background: var(--primary-red-light);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(230, 25, 46, 0.2);
}

.btn-wa-header {
  background: #25d366;
  border: none;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn-wa-header:hover {
  background: #20ba59;
  box-shadow: var(--shadow-glow-wa);
  transform: translateY(-2px);
}

/* ==========================================================================
   BRAND FILTER BAR (STREETWEAR DROPS)
   ========================================================================== */
.brand-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 18px;
  scrollbar-width: thin;
}

.brand-chip-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.brand-chip-btn:hover {
  color: var(--primary-red);
  border-color: rgba(230, 25, 46, 0.3);
  background: #fff;
}

.brand-chip-btn.active {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(230, 25, 46, 0.35);
}

/* ==========================================================================
   FILTER CARD & SIZING PILLS
   ========================================================================== */
.filter-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.filter-header-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-header-title h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.filter-header-title h2 span {
  color: var(--primary-red);
}

.active-results-badge {
  font-size: 12px;
  color: var(--primary-red);
  background: var(--primary-red-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(230, 25, 46, 0.2);
  font-weight: 700;
}

.filter-row-section {
  margin-bottom: 14px;
}

.filter-row-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.size-pills-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.size-pill-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.size-pill-btn:hover {
  color: var(--primary-red);
  border-color: rgba(230, 25, 46, 0.3);
}

.size-pill-btn.active {
  background: var(--primary-red);
  color: #ffffff;
  font-weight: 900;
  border-color: var(--primary-red);
  box-shadow: 0 0 10px rgba(230, 25, 46, 0.35);
}

.search-inputs-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

@media (max-width: 768px) {
  .search-inputs-grid {
    grid-template-columns: 1fr;
  }
}

.search-box-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.search-input-field {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 13px;
  padding: 10px 14px 10px 38px;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s ease;
}

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

.select-group-wrapper {
  display: flex;
  gap: 8px;
}

.custom-select {
  flex: 1;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
}

.custom-select:focus {
  border-color: var(--primary-red);
  background: #ffffff;
}

/* ==========================================================================
   PRODUCTS GRID & LUXURY CARDS
   ========================================================================== */
.products-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
  position: relative;
  cursor: pointer;
  content-visibility: auto;
  contain-intrinsic-size: 0 350px;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(230, 25, 46, 0.4);
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.12), var(--shadow-glow-red);
}

.product-image-box {
  position: relative;
  width: 100%;
  height: 240px;
  background: #f1f5f9;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.category-tag {
  font-size: 10px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sku-tag {
  font-size: 10px;
  font-weight: 700;
  font-family: monospace;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-red);
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(230, 25, 46, 0.2);
}

.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 6px;
}

.product-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-sizes-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.size-mini-badge {
  font-size: 10px;
  font-weight: 700;
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.size-mini-badge.highlight {
  background: var(--primary-red);
  color: #ffffff;
  border-color: var(--primary-red);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.price-box {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.price-val {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-primary);
}

.btn-card-wa {
  background: #25d366;
  border: none;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}

.btn-card-wa:hover {
  background: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   ADMIN PANELS (STORE & SUPPLIER)
   ========================================================================== */
.admin-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 20px;
  flex-wrap: wrap;
}

.admin-heading-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-primary);
  margin-top: 4px;
}

.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-card);
}

.stat-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-red-light);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.stat-number {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
}

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

.table-container-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.table-responsive-box {
  overflow-x: auto;
}

.mls-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.mls-data-table th {
  padding: 12px 14px;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-subtle);
}

.mls-data-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.td-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.td-product-thumb {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.td-product-name {
  font-weight: 700;
  color: var(--text-primary);
}

.td-product-sku {
  font-size: 11px;
  color: var(--text-muted);
}

.table-input-price {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  width: 110px;
  outline: none;
}

.table-input-price:focus {
  border-color: var(--primary-red);
  background: #fff;
}

.margin-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.margin-high {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.margin-normal {
  background: rgba(2, 132, 199, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(2, 132, 199, 0.3);
}

.table-sizes-list {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.table-size-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
}

.table-size-tag.active {
  background: var(--primary-red-light);
  color: var(--primary-red);
  border: 1px solid rgba(230, 25, 46, 0.3);
}

.table-size-tag.inactive {
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  opacity: 0.6;
}

/* Switch Toggle */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-round {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 20px;
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

input:checked + .slider-round {
  background-color: var(--primary-red);
}

input:checked + .slider-round:before {
  transform: translateX(16px);
}

.btn-action-sm {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-action-sm:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
  background: #fff;
}

/* ==========================================================================
   ROI CALCULATOR & DIRECTORY
   ========================================================================== */
.roi-calc-box {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card), var(--shadow-glow-red);
}

.roi-calc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.roi-range-slider {
  accent-color: var(--primary-red);
  cursor: pointer;
}

.directory-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.store-directory-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.store-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.store-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-red-light);
  border: 1px solid var(--primary-red);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  overflow: hidden;
  flex-shrink: 0;
}

.store-card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}

.store-card-location {
  font-size: 11px;
  color: var(--text-muted);
}

.store-card-body {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ==========================================================================
   MODAL DIALOGS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-backdrop.open .modal-dialog {
  transform: scale(1);
}

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

.modal-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

.btn-close-modal:hover {
  color: var(--text-primary);
}

.product-modal-hero {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.product-modal-img-box {
  flex: 1;
  min-width: 220px;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
}

.product-modal-info {
  flex: 1.2;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-modal-actions-box {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

/* Forms inside Modals */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary-red);
  background: #fff;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-red) 0%, #b80d1e 100%);
  border: none;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(230, 25, 46, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(230, 25, 46, 0.45);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
}

/* Colorway Chips */
.colorway-chips-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.colorway-badge-chip {
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.colorway-badge-chip:hover {
  color: var(--primary-red);
  border-color: rgba(230, 25, 46, 0.3);
}

.colorway-badge-chip.active {
  border-color: var(--primary-red);
  color: #ffffff;
  background: var(--primary-red);
  box-shadow: 0 0 12px rgba(230, 25, 46, 0.3);
}

.colorway-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* ==========================================================================
   FLOATING CART & CART DRAWER
   ========================================================================== */
.floating-cart-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: #ffffff;
  border: 2px solid var(--primary-red);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15), 0 0 20px rgba(230, 25, 46, 0.25);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
}

.floating-cart-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.floating-cart-bar:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.2), 0 0 25px rgba(230, 25, 46, 0.4);
}

.cart-pill-icon {
  background: var(--primary-red);
  color: #ffffff;
  font-weight: 900;
  font-size: 13px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-pill-details {
  display: flex;
  flex-direction: column;
}

.cart-pill-count {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
}

.cart-pill-total {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-red);
}

.cart-pill-btn-action {
  background: linear-gradient(135deg, var(--primary-red) 0%, #b80d1e 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.cart-items-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 250px;
  overflow-y: auto;
  margin: 16px 0;
  padding-right: 6px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface-elevated);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.cart-item-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

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

.cart-item-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-red);
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
}

.reservation-timer-box {
  background: var(--primary-red-light);
  border: 1px solid rgba(230, 25, 46, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 14px;
}

.dispatch-mode-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.dispatch-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.dispatch-radio-card:hover, .dispatch-radio-card.selected {
  border-color: var(--primary-red);
  background: var(--primary-red-light);
}

.dispatch-radio-card input[type="radio"] {
  accent-color: var(--primary-red);
  margin-top: 3px;
}

/* ==========================================================================
   TOASTS
   ========================================================================= */
.toast-container {
  position: fixed;
  top: 75px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: #ffffff;
  border: 1px solid var(--primary-red);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15), 0 0 20px rgba(230, 25, 46, 0.2);
  color: var(--text-primary);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toastSlideIn 0.3s ease forwards;
}

@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   BASTION AI OFFICIAL WATERMARK (MANDATORY RULE)
   ========================================================================== */
.bastion-watermark {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 9999;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: rgba(243, 232, 207, 0.85);
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid rgba(201, 154, 60, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
  user-select: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  text-decoration: none;
}
.bastion-watermark strong {
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #ffffff;
}
.bastion-watermark .sparkle {
  color: #e3c274;
  font-size: 12px;
}
.bastion-watermark:hover {
  color: #ffffff;
  border-color: rgba(227, 194, 116, 0.85);
  box-shadow: 0 0 16px rgba(201, 154, 60, 0.4);
  transform: translateY(-2px);
}
@media (max-width: 600px) {
  .bastion-watermark {
    bottom: 14px;
    left: 12px;
    font-size: 10px;
    padding: 5px 14px;
  }
}
@media print {
  .bastion-watermark { display: none !important; }
}

/* ==========================================================================
   CORNER TAGS & DIRECTORY FILTERING (BASTION AI SAAS)
   ========================================================================== */
.corner-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.corner-tag-partner {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.corner-tag-supplier {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.btn-filter-role {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-filter-role.active {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.btn-report-period {
  transition: all 0.2s ease;
}
.btn-report-period.active {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
}

/* ==========================================================================
   MOBILE & TOUCH ULTRA-PERFORMANCE OPTIMIZATIONS (BASTION AI)
   SNEAKER APP NATIVE FEEL - 60FPS FLUIDITY
   ========================================================================== */

@media (max-width: 768px) {
  /* Layout Containers */
  .main-wrapper {
    padding: 12px 10px;
  }

  /* HUD & Role Switchers */
  .top-demo-hud {
    padding: 8px 12px;
  }
  .hud-container {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .hud-brand {
    justify-content: space-between;
    width: 100%;
  }
  .role-switcher-tabs {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 3px;
  }
  .role-switcher-tabs::-webkit-scrollbar {
    display: none;
  }
  .role-tab-btn {
    font-size: 11px;
    padding: 6px 10px;
    flex-shrink: 0;
  }

  /* Client Auth HUD (Vanessa / Cali Shoes Private Header) */
  .client-auth-hud {
    padding: 8px 12px;
  }
  .client-auth-container {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .client-auth-container > div:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
  }
  .client-auth-btn {
    font-size: 11px;
    padding: 6px 10px;
  }

  /* Storefront Header */
  .store-header {
    padding: 14px 12px;
  }
  .store-header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .store-info-left {
    gap: 12px;
  }
  .store-avatar {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }
  #storefront-name {
    font-size: 18px;
    line-height: 1.25;
  }
  #storefront-tagline {
    font-size: 11px;
  }
  .store-header-cta {
    width: 100%;
  }
  .btn-wa-header {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    font-size: 13px;
  }

  /* Brand Filters - Momentum swipeable */
  .brand-filter-bar {
    gap: 6px;
    padding-bottom: 6px;
    margin-bottom: 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .brand-filter-bar::-webkit-scrollbar {
    display: none;
  }
  .brand-chip-btn {
    padding: 6px 12px;
    font-size: 11px;
  }

  /* Filter Card & Sizes */
  .filter-card {
    padding: 14px 12px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
  }
  .filter-header-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 12px;
  }
  .filter-header-title h2 {
    font-size: 15px;
  }
  .size-pills-row {
    gap: 4px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .size-pills-row::-webkit-scrollbar {
    display: none;
  }
  .size-pill-btn {
    font-size: 12px;
    padding: 6px 10px;
  }

  /* Search Inputs */
  .search-inputs-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
  }

  /* Admin Dashboard Headers */
  .admin-top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 16px;
  }
  .admin-heading-title {
    font-size: 18px;
  }
  .admin-top-bar > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .admin-top-bar > div:last-child button {
    width: 100%;
    justify-content: center;
  }

  /* Stats Grid */
  .stats-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
  }
  .stats-cards-grid .stat-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .stat-card {
    padding: 12px 10px;
    gap: 10px;
  }
  .stat-icon-badge {
    width: 36px;
    height: 36px;
    font-size: 18px;
    border-radius: 8px;
  }
  .stat-number {
    font-size: 16px;
  }
  .stat-label {
    font-size: 10px;
    line-height: 1.2;
  }

  /* Tables & Responsive Box */
  .table-container-card {
    padding: 14px 10px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
  }
  .table-responsive-box {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    border-radius: 8px;
  }
  .mls-data-table {
    min-width: 620px;
  }
  .mls-data-table th,
  .mls-data-table td {
    padding: 10px 8px;
    font-size: 12px;
  }

  /* Directory Grid */
  .directory-grid-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .store-directory-card {
    padding: 14px;
  }

  /* Modals on Mobile - Bottom sheet feel */
  .modal-backdrop {
    padding: 10px;
    align-items: flex-end;
  }
  .modal-dialog {
    max-height: 88vh;
    padding: 18px 14px;
    border-radius: 20px 20px 14px 14px;
    width: 100%;
    max-width: 100%;
    transform: translateY(20px);
  }
  .modal-backdrop.open .modal-dialog {
    transform: translateY(0);
  }
  .product-modal-hero {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
  }
  .product-modal-img-box {
    min-width: 0;
    width: 100%;
    height: 190px;
  }
  .product-modal-info {
    min-width: 0;
    width: 100%;
  }
  .product-modal-actions-box {
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
  }
  .product-modal-actions-box button,
  .product-modal-actions-box a {
    width: 100%;
    padding: 12px;
    font-size: 13px;
    min-height: 44px;
  }

  /* Floating Cart Bar - Positioned above watermark */
  .floating-cart-bar {
    bottom: 58px;
    right: 12px;
    padding: 6px 14px;
    gap: 8px;
    font-size: 12px;
    border-width: 1.5px;
  }
  .cart-pill-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  .cart-pill-count {
    font-size: 11px;
  }
  .cart-pill-total {
    font-size: 12px;
  }
  .cart-pill-btn-action {
    font-size: 11px;
    padding: 4px 8px;
  }
}

/* ==========================================================================
   2-COLUMN SNEAKER GRID SPECIFICALLY FOR SMARTPHONES (MAX 640PX)
   ========================================================================== */
@media (max-width: 640px) {
  .products-grid-layout {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .product-card {
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  }
  .product-card:hover {
    transform: none; /* Disable hover transform on mobile touch to avoid jitter */
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  }

  .product-image-box {
    height: 148px;
  }

  .product-badges {
    top: 6px;
    left: 6px;
    right: 6px;
    gap: 4px;
  }
  .category-tag {
    font-size: 8px;
    padding: 2px 5px;
  }
  .sku-tag {
    font-size: 8px;
    padding: 2px 4px;
  }
  .campaign-badge-pill {
    display: none;
  }

  .product-body {
    padding: 10px 8px;
  }

  .product-name {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 32px;
  }

  .product-desc {
    display: none; /* Hidden on compact 2-column mobile cards; shown in detail modal */
  }

  .product-card .product-sizes-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    max-height: 20px;
    overflow: hidden;
    margin-bottom: 6px;
  }

  .product-card .size-mini-badge {
    font-size: 9px;
    padding: 1px 4px;
    min-width: 18px;
    border-radius: 4px;
  }

  .product-card .product-body > div[style*="font-size: 11px"] {
    display: none; /* Hide 'Tallas en stock:' label to save vertical space */
  }

  .product-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid var(--border-subtle);
  }

  .price-box {
    width: 100%;
  }
  .price-label {
    font-size: 8px !important;
    letter-spacing: 0.2px;
  }
  .price-val {
    font-size: 14px !important;
    font-weight: 900;
  }
  .price-box > div {
    font-size: 9px !important;
  }

  .btn-card-wa {
    width: 100%;
    justify-content: center;
    padding: 7px 8px;
    font-size: 11px;
    border-radius: 8px;
  }
}

@media (max-width: 360px) {
  .stats-cards-grid {
    grid-template-columns: 1fr;
  }
  .products-grid-layout {
    gap: 6px !important;
  }
  .product-image-box {
    height: 130px;
  }
}

/* =========================================================================
   EMPLEADO DIGITAL 24/7 (SISTEMA IA DE ATENCIÓN, VENTAS Y DESPACHOS)
   ========================================================================= */
.floating-empleado-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9985;
  background: linear-gradient(135deg, #090d16 0%, #1e293b 100%);
  color: #ffffff;
  border: 1.5px solid rgba(230, 25, 46, 0.45);
  border-radius: 999px;
  padding: 8px 16px 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(230, 25, 46, 0.25);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-family: inherit;
}

.floating-empleado-btn:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: #e6192e;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 24px rgba(230, 25, 46, 0.45);
}

.bot-avatar-badge {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(230, 25, 46, 0.15);
  border: 1.5px solid #e6192e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.bot-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #090d16;
  box-shadow: 0 0 6px #22c55e;
}

.bot-label-pill {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.bot-title {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.bot-status {
  font-size: 10px;
  color: #4ade80;
  font-weight: 600;
}

/* Chat container inside modal */
.empleado-chat-wrapper {
  display: flex;
  flex-direction: column;
  height: 480px;
  max-height: 70vh;
}

.empleado-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
}

.chat-msg {
  display: flex;
  gap: 10px;
  max-width: 88%;
  animation: fadeInMsg 0.2s ease-out;
}

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

.chat-msg.bot {
  align-self: flex-start;
}

.chat-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0f172a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.chat-msg.user .chat-msg-avatar {
  background: #e6192e;
}

.chat-msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.45;
}

.chat-msg.bot .chat-msg-bubble {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-top-left-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.chat-msg.user .chat-msg-bubble {
  background: #0f172a;
  color: #ffffff;
  border-top-right-radius: 4px;
}

.empleado-quick-actions {
  padding: 10px 14px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
}

.quick-action-chip {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.quick-action-chip:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.empleado-chat-input-bar {
  padding: 12px 14px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 8px;
  align-items: center;
}

.copier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.copier-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  transition: all 0.2s;
}

.copier-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

@media (max-width: 600px) {
  .floating-empleado-btn {
    bottom: 14px;
    right: 12px;
    padding: 6px 12px 6px 8px;
    gap: 8px;
  }
  .bot-avatar-badge {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }
  .bot-title {
    font-size: 10px;
  }
  .bot-status {
    font-size: 9px;
  }
}


