:root {
  --amazon-orange: #ff9900;
  --amazon-blue: #232f3e;
  --amazon-dark-blue: #131a22;
  --amazon-light-blue: #37475a;
  --amazon-yellow: #febd69;
  --white: #ffffff;
  --light-gray: #f3f3f3;
  --border-gray: #ddd;
  --text-dark: #0f1111;
  --text-light: #565959;
  --success-green: #067d62;
  --shadow: 0 2px 5px 0 rgba(213,217,217,.5);
  --shadow-hover: 0 4px 8px 0 rgba(213,217,217,.8);
  --warning-orange: #ff6b35;
  --gradient-primary: linear-gradient(135deg, var(--amazon-blue) 0%, var(--amazon-dark-blue) 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', Arial, sans-serif;
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.4;
}

/* ── Header ── */
.amazon-header {
  background-color: var(--amazon-dark-blue);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}
.header-main {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  max-width: 1500px;
  margin: 0 auto;
  gap: 16px;
}
.logo {
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 2px;
  white-space: nowrap;
}
.logo:hover { border-color: var(--white); }

.search-section { flex: 1; max-width: 600px; }
.search-bar-container {
  display: flex;
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.search-bar-container:focus-within { box-shadow: 0 0 0 3px rgba(255,153,0,.3); }
.search-input {
  flex: 1;
  border: none;
  padding: 9px 12px;
  font-size: 15px;
  outline: none;
}
.search-btn {
  background: var(--amazon-yellow);
  border: none;
  padding: 9px 16px;
  cursor: pointer;
  transition: background .15s;
}
.search-btn:hover { background: #f3a847; }

.header-nav { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-item {
  color: var(--white);
  text-decoration: none;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 13px;
  background: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.nav-item:hover { border-color: var(--white); color: var(--white); text-decoration: none; }

.secondary-nav {
  background: var(--amazon-blue);
  padding: 7px 16px;
  font-size: 13px;
}
.secondary-nav-container {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-link {
  color: var(--white);
  text-decoration: none;
  padding: 3px 6px;
  border-radius: 2px;
  transition: color .15s;
}
.nav-link:hover { color: var(--amazon-orange); text-decoration: none; }

/* ── Session bar ── */
.session-bar {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 13px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 4px;
}
.session-bar.show { display: inline-flex; }
.session-usage-pill {
  background: rgba(255,153,0,.2);
  color: var(--amazon-yellow);
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}
.session-logout-btn {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  padding: 0;
}
.session-logout-btn:hover { color: var(--amazon-orange); }

/* ── Carousel ── */
.banner-carousel {
  width: 100%;
  height: 320px;
  position: relative;
  overflow: hidden;
  background: var(--gradient-primary);
}
/* ── Stats bar ── */
.stats-bar {
  background: linear-gradient(135deg,#f8f9fa,#e9ecef);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-gray);
}
.stats-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: 16px;
}
.stat-item {
  text-align: center;
  padding: 10px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,.08);
  transition: transform .2s;
}
.stat-item:hover { transform: translateY(-2px); }
.stat-number { font-size: 22px; font-weight: 700; color: var(--amazon-orange); display: block; }
.stat-label  { font-size: 13px; color: var(--text-light); margin-top: 3px; }

/* ── Recent section ── */
.recent-section {
  background: linear-gradient(135deg,#f8f9fa,#fff);
  padding: 36px 0;
  border-bottom: 1px solid var(--border-gray);
}
.recent-container { max-width: 1500px; margin: 0 auto; padding: 0 16px; }
.recent-header { text-align: center; margin-bottom: 28px; }
.recent-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--amazon-blue);
  margin-bottom: 10px;
  display: inline-block;
  position: relative;
}
.recent-title::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 50%;
  transform: translateX(-50%);
  width: 70px; height: 3px;
  background: linear-gradient(90deg,var(--amazon-orange),var(--amazon-yellow));
  border-radius: 2px;
}
.recent-subtitle { font-size: 15px; color: var(--text-light); max-width: 560px; margin: 0 auto; line-height: 1.6; }
.recent-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.recent-card {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp .5s ease-out forwards;
}
.recent-card:nth-child(1){animation-delay:.08s}
.recent-card:nth-child(2){animation-delay:.16s}
.recent-card:nth-child(3){animation-delay:.24s}
.recent-card:nth-child(4){animation-delay:.32s}
.recent-card:nth-child(5){animation-delay:.40s}
@keyframes fadeInUp { to { opacity:1; transform:translateY(0); } }
.recent-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }

.recent-card-header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.recent-card-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg,var(--amazon-orange),var(--amazon-yellow));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 18px; flex-shrink: 0;
}
.recent-card-id {
  font-size: 11px; font-weight: 600; color: var(--amazon-orange);
  background: rgba(255,153,0,.1);
  padding: 3px 7px; border-radius: 4px; display: inline-block; margin-bottom: 3px;
}
.recent-card-date { font-size: 11px; color: var(--text-light); }
.recent-card-title {
  font-size: 14px; font-weight: 600; color: var(--amazon-blue);
  margin-bottom: 10px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.recent-card-location { font-size: 13px; color: var(--success-green); margin-bottom: 10px; font-weight: 500; display: flex; align-items: center; gap: 5px; }
.recent-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.recent-tag {
  background: linear-gradient(135deg,#e7f3ff,#d1ecf1);
  color: var(--amazon-blue);
  padding: 3px 7px; border-radius: 10px;
  font-size: 11px; font-weight: 500;
  border: 1px solid rgba(35,47,62,.1);
}
.recent-card-action {
  background: linear-gradient(135deg,var(--amazon-yellow),#f3a847);
  color: var(--text-dark);
  border: 1px solid #a88734;
  padding: 9px 14px;
  border-radius: 6px; font-size: 13px; font-weight: 500;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px;
  width: 100%; justify-content: center;
  transition: background .2s, transform .2s;
}
.recent-card-action:hover { background: linear-gradient(135deg,#f3a847,#e88900); transform: translateY(-1px); color: var(--text-dark); text-decoration: none; }

.recent-view-all { text-align: center; }
.view-all-btn {
  background: linear-gradient(135deg,var(--amazon-blue),var(--amazon-dark-blue));
  color: var(--white);
  padding: 13px 26px; border: none; border-radius: 8px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 7px;
  transition: all .2s;
}
.view-all-btn:hover { background: linear-gradient(135deg,var(--amazon-dark-blue),#0c1419); transform: translateY(-2px); color: var(--white); text-decoration: none; }

/* ── Main layout ── */
.main-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 20px 16px;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 20px;
  overflow: hidden;
}
.main-container > * { min-width: 0; }

.products-area {
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

/* ── Sidebar ── */
.filter-section {
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  margin-bottom: 14px;
  background: var(--white);
  box-shadow: 0 2px 4px rgba(0,0,0,.05);
  overflow: hidden;
}
.filter-header {
  background: linear-gradient(135deg,var(--light-gray),#e8e9ea);
  padding: 11px 14px;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid var(--border-gray);
}
.filter-content { padding: 14px; }
.filter-content label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; }
.filter-content select {
  width: 100%; padding: 8px 10px;
  border: 1px solid var(--border-gray);
  border-radius: 4px; font-size: 14px;
  margin-bottom: 14px;
  transition: border-color .2s;
}
.filter-content select:focus { outline: none; border-color: var(--amazon-orange); }

.clear-filters-btn {
  background: linear-gradient(135deg,var(--amazon-orange),#e88900);
  color: var(--white); border: none;
  padding: 9px 14px; border-radius: 6px;
  cursor: pointer; width: 100%; font-size: 13px; font-weight: 500;
  transition: all .2s;
}
.clear-filters-btn:hover { background: linear-gradient(135deg,#e88900,#d17800); transform: translateY(-1px); }

.quick-filters {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 16px; padding: 12px;
  background: linear-gradient(135deg,#f8f9fa,#e9ecef);
  border-radius: 8px;
}
.filter-pill {
  background: var(--white); border: 1px solid var(--border-gray);
  border-radius: 18px; padding: 5px 12px;
  font-size: 12px; cursor: pointer;
  transition: all .2s; display: inline-flex; align-items: center; gap: 5px;
  font-family: inherit;
}
.filter-pill:hover { background: var(--amazon-orange); color: var(--white); }
.filter-pill.active { background: var(--amazon-blue); color: var(--white); border-color: var(--amazon-blue); }

/* ── Providers sidebar ── */
.providers-sidebar {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: 10px;
  padding: 18px;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.providers-title { font-size: 16px; font-weight: 700; margin-bottom: 14px; color: var(--amazon-blue); display: flex; align-items: center; gap: 7px; }
.provider-item {
  border: 1px solid var(--border-gray); border-radius: 8px;
  padding: 14px; margin-bottom: 10px;
  transition: all .2s; background: var(--white);
}
.provider-item:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.09); border-color: var(--amazon-orange); }
.provider-name { font-weight: 700; color: var(--amazon-blue); margin-bottom: 5px; font-size: 14px; }
.provider-services { font-size: 13px; color: var(--text-light); margin-bottom: 7px; line-height: 1.4; }
.provider-location { font-size: 12px; color: var(--success-green); margin-bottom: 8px; display: flex; align-items: center; gap: 4px; }
.provider-cta {
  background: linear-gradient(135deg,var(--success-green),#055a47);
  color: var(--white); padding: 7px 12px; border-radius: 5px;
  text-decoration: none; font-size: 12px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 5px; transition: all .2s;
}
.provider-cta:hover { background: linear-gradient(135deg,#055a47,#044136); color: var(--white); text-decoration: none; transform: translateY(-1px); }
.provider-message {
  background: linear-gradient(135deg,#e7f3ff,#d1ecf1);
  border: 1px solid #b3d9ff; border-radius: 6px;
  padding: 10px; margin-bottom: 14px;
  display: none; align-items: center; gap: 7px; font-size: 13px;
}

/* ── Products area ── */
.results-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; margin-bottom: 18px;
  background: linear-gradient(135deg,#f8f9fa,transparent);
  border-radius: 8px;
}
.results-count { font-size: 15px; color: var(--text-light); font-weight: 500; }
.results-actions { display: flex; gap: 10px; align-items: center; }
.view-toggle { display: flex; background: var(--white); border: 1px solid var(--border-gray); border-radius: 4px; overflow: hidden; }
.view-btn { padding: 7px 11px; border: none; background: transparent; cursor: pointer; font-size: 13px; transition: all .2s; }
.view-btn.active { background: var(--amazon-orange); color: var(--white); }
.view-btn:hover:not(.active) { background: var(--light-gray); }
.sort-dropdown {
  padding: 7px 10px; border: 1px solid var(--border-gray);
  border-radius: 4px; background: var(--white); cursor: pointer; font-size: 13px;
}
.sort-dropdown:focus { outline: none; border-color: var(--amazon-orange); }

/* ── Product cards (grid) ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
  gap: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.product-grid.list-view { grid-template-columns: 1fr; }

#rfqGrid.compact-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.product-card.list-view {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 18px;
}
.product-card.list-view .product-image {
  width: 64px; min-width: 64px; height: 64px;
  margin-bottom: 0; font-size: 28px;
  flex-shrink: 0;
}
.product-card.list-view .product-body {
  flex: 1; min-width: 0;
}

.product-card {
  border: 1px solid var(--border-gray);
  border-radius: 10px; padding: 18px;
  background: var(--white);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  cursor: pointer; position: relative; overflow: hidden;
  min-width: 0; width: 100%; box-sizing: border-box;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.09); border-color: rgba(255,153,0,.3); }
.product-card.selected { border-color: var(--amazon-orange); box-shadow: 0 0 0 3px rgba(255,153,0,.2); }

.product-image {
  background: linear-gradient(135deg,var(--light-gray),#e8e9ea);
  height: 100px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px; font-size: 40px; color: var(--text-light);
}
.product-title { font-size: 16px; font-weight: 600; margin-bottom: 10px; color: var(--amazon-blue); line-height: 1.4; transition: color .2s; word-break: break-word; min-width: 0; }
.product-card:hover .product-title { color: var(--amazon-orange); }
.product-description {
  font-size: 13px; color: var(--text-dark); margin-bottom: 10px;
  line-height: 1.5; background: linear-gradient(135deg,#f8f9fa,#e9ecef);
  padding: 10px; border-radius: 7px; border-left: 3px solid var(--amazon-orange);
  word-break: break-word;
}
.product-subtitle { font-size: 12px; color: var(--text-light); margin-bottom: 8px; font-style: italic; }
.product-location { font-size: 13px; color: var(--success-green); margin-bottom: 10px; font-weight: 500; display: flex; align-items: center; gap: 5px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.tag {
  background: linear-gradient(135deg,#e7f3ff,#d1ecf1);
  color: var(--amazon-blue); padding: 3px 9px;
  border-radius: 14px; font-size: 11px; font-weight: 500;
  transition: all .2s; border: 1px solid rgba(35,47,62,.1);
}
.tag:hover { background: linear-gradient(135deg,var(--amazon-orange),var(--amazon-yellow)); color: var(--white); }
.product-actions { display: flex; gap: 7px; flex-wrap: wrap; }

.btn-primary {
  background: linear-gradient(135deg,var(--amazon-yellow),#f3a847);
  color: var(--text-dark); border: 1px solid #a88734;
  padding: 9px 14px; border-radius: 6px; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .2s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px;
}
.btn-primary:hover { background: linear-gradient(135deg,#f3a847,#e88900); transform: translateY(-1px); color: var(--text-dark); text-decoration: none; }
.btn-primary:disabled { opacity: .7; cursor: wait; transform: none; }
.btn-secondary {
  background: var(--white); color: var(--text-dark);
  border: 1px solid var(--border-gray); padding: 9px 14px;
  border-radius: 6px; font-size: 13px; cursor: pointer;
  transition: all .2s; display: inline-flex; align-items: center; gap: 5px;
}
.btn-secondary:hover { background: var(--light-gray); transform: translateY(-1px); }

/* ── Contact info revealed ── */
.contact-info {
  background: linear-gradient(135deg,#e7f3ff,#d1ecf1);
  border: 1px solid #b3d9ff; border-radius: 8px;
  padding: 14px; margin-top: 12px; display: none; position: relative;
}
.contact-info::before { content:''; position:absolute; top:0; left:0; width:100%; height:2px; background:linear-gradient(90deg,var(--amazon-orange),var(--amazon-yellow)); }
.contact-info.show { display: block; animation: slideDown .35s ease-out; }
@keyframes slideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }

.contact-message {
  background: rgba(255,255,255,.9); border: 1px solid #b3d9ff;
  border-radius: 6px; padding: 10px; margin-bottom: 10px;
  font-size: 13px; color: var(--amazon-blue); font-weight: 500;
  display: flex; align-items: center; gap: 7px;
}
.contact-message i { color: var(--amazon-orange); font-size: 15px; }
.contact-number {
  font-size: 17px; font-weight: 700; color: var(--amazon-blue);
  margin-bottom: 10px; display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.95); padding: 13px; border-radius: 7px;
  border: 1px solid #b3d9ff; word-break: break-word;
}
.contact-actions { display: flex; gap: 7px; flex-wrap: wrap; }

.whatsapp-btn {
  background: linear-gradient(135deg,#25d366,#20ba5a);
  color: #fff; padding: 9px 14px; border-radius: 6px;
  text-decoration: none; font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 7px; transition: all .2s;
}
.whatsapp-btn:hover { background: linear-gradient(135deg,#20ba5a,#1aa050); color:#fff; text-decoration:none; transform:translateY(-1px); }
.copy-btn {
  background: linear-gradient(135deg,var(--text-light),var(--text-dark));
  color: #fff; padding: 9px 14px; border: none; border-radius: 6px;
  font-size: 13px; cursor: pointer; transition: all .2s;
  display: inline-flex; align-items: center; gap: 5px;
}
.copy-btn:hover { background: linear-gradient(135deg,var(--text-dark),#000); transform:translateY(-1px); }

/* ── Alerts ── */
.verification-alert {
  padding: 10px 14px; border-radius: 6px; margin-bottom: 10px;
  display: none; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500;
}
.verification-alert.success { background:linear-gradient(135deg,#d4edda,#c3e6cb); border:1px solid #c3e6cb; color:#155724; display:flex; }
.verification-alert.error   { background:linear-gradient(135deg,#f8d7da,#f5c6cb); border:1px solid #f5c6cb; color:#721c24; display:flex; }
.verification-alert.info    { background:linear-gradient(135deg,#d1ecf1,#bee5eb); border:1px solid #bee5eb; color:#0c5460; display:flex; }

/* ── Loading skeleton ── */
.loading-skeleton {
  background: linear-gradient(90deg,#f0f0f0 25%,#e0e0e0 50%,#f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}
@keyframes loading { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.loading-card { border:1px solid var(--border-gray); border-radius:10px; padding:18px; margin-bottom:18px; }
.loading-title { height:18px; margin-bottom:10px; }
.loading-description { height:55px; margin-bottom:10px; }
.loading-tags { display:flex; gap:7px; }
.loading-tag { height:22px; width:55px; border-radius:10px; }

/* ── Modals ── */
.login-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(19,26,34,.65);
  z-index: 5000; display: none;
  align-items: center; justify-content: center; padding: 16px;
}
.login-modal-overlay.show { display: flex; }
.login-modal {
  background: var(--white); border-radius: 12px; padding: 26px;
  max-width: 370px; width: 100%; position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
  max-height: 92vh; overflow-y: auto;
}
.login-modal h3 { color: var(--amazon-blue); font-size: 19px; margin-bottom: 5px; display: flex; align-items: center; gap: 7px; }
.login-modal-close {
  position: absolute; top: 11px; right: 13px;
  background: none; border: none; font-size: 21px; cursor: pointer; color: var(--text-light);
}
.login-modal-close:hover { color: var(--amazon-orange); }
.login-modal input, .login-modal select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border-gray);
  border-radius: 6px; margin-bottom: 9px; font-size: 14px; transition: border-color .2s;
  font-family: inherit;
}
.login-modal input:focus, .login-modal select:focus { outline: none; border-color: var(--amazon-orange); box-shadow: 0 0 0 3px rgba(255,153,0,.15); }
.login-modal label.field-label { font-size: 12px; font-weight: 600; color: var(--text-light); display: block; margin-bottom: 3px; }
.login-modal label.field-label .req { color: #e53935; }
.login-modal .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.login-modal-error {
  background: linear-gradient(135deg,#f8d7da,#f5c6cb);
  border: 1px solid #f5c6cb; color: #721c24;
  padding: 9px 11px; border-radius: 6px; font-size: 13px; margin-bottom: 10px;
}
.login-modal-success {
  background: linear-gradient(135deg,#d4edda,#c3e6cb); border: 1px solid #c3e6cb; color: #155724;
  padding: 12px; border-radius: 6px; margin-bottom: 10px; font-size: 13px;
}
.password-link {
  color: var(--amazon-blue); text-decoration: none;
  font-size: 13px; padding: 9px 14px;
  border: 1px solid var(--amazon-blue); border-radius: 6px;
  transition: all .2s; display: inline-flex; align-items: center; gap: 5px;
  width: 100%; justify-content: center; margin-top: 8px; box-sizing: border-box;
}
.password-link:hover { background: var(--amazon-blue); color: var(--white); text-decoration: none; }

/* ── CRM modal ── */
.crm-modal {
  background: var(--white); border-radius: 12px; padding: 22px;
  max-width: 940px; width: 100%;
  max-height: 85vh; overflow-y: auto; position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
}
.crm-modal h3 { color: var(--amazon-blue); font-size: 19px; margin-bottom: 3px; display: flex; align-items: center; gap: 7px; }
.crm-modal-subtitle { color: var(--text-light); font-size: 12px; margin-bottom: 14px; }
.crm-table-wrapper { overflow-x: auto; }
.crm-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.crm-table th { text-align: left; background: var(--light-gray); padding: 9px 7px; white-space: nowrap; color: var(--amazon-blue); border-bottom: 2px solid var(--border-gray); }
.crm-table td { padding: 9px 7px; border-bottom: 1px solid var(--border-gray); vertical-align: top; }
.crm-table tr:hover td { background: #fafafa; }
.crm-title-cell { max-width: 210px; font-weight: 600; color: var(--amazon-blue); }
.crm-status-select { padding: 5px 7px; border-radius: 5px; border: 1px solid var(--border-gray); font-size: 11px; font-weight: 600; cursor: pointer; }
.crm-status-select.status-nuevo          { background:#d1ecf1; color:#0c5460; }
.crm-status-select.status-contactado     { background:#fff3cd; color:#856404; }
.crm-status-select.status-en-negociacion { background:#cce5ff; color:#004085; }
.crm-status-select.status-ganado         { background:#d4edda; color:#155724; }
.crm-status-select.status-perdido        { background:#f8d7da; color:#721c24; }
.crm-notes-input { width:170px; min-width:140px; padding:5px 7px; border:1px solid var(--border-gray); border-radius:5px; font-size:11px; resize:vertical; min-height:32px; font-family: inherit; }
.crm-save-note-btn { background:var(--amazon-orange); color:#fff; border:none; padding:4px 9px; border-radius:4px; font-size:11px; cursor:pointer; margin-top:3px; display:inline-flex; align-items:center; gap:3px; }
.crm-save-note-btn:hover { background:#e88900; }
.crm-empty { text-align:center; padding:36px 18px; color:var(--text-light); }
.crm-empty i { font-size:36px; margin-bottom:10px; display:block; }

/* ── Badge origen web ── */
.badge-web {
  display:inline-flex; align-items:center; gap:4px;
  background:#e7f3ff; color:#0C447C;
  border:1px solid #85B7EB;
  font-size:10px; font-weight:600; padding:2px 7px;
  border-radius:10px; margin-left:6px; vertical-align:middle;
}

/* ── Toast ── */
.toast-container { position:fixed; top:16px; right:16px; z-index:10000; display:flex; flex-direction:column; gap:8px; }
.toast {
  background: linear-gradient(135deg,var(--success-green),#055a47);
  color: #fff; padding: 11px 18px; border-radius: 6px; font-size: 13px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15); display: flex; align-items: center; gap: 7px;
  min-width: 280px; animation: slideInRight .25s ease-out;
}
.toast.error   { background: linear-gradient(135deg,#dc3545,#c82333); }
.toast.warning { background: linear-gradient(135deg,#ffc107,#e0a800); color: var(--text-dark); }
.toast.info    { background: linear-gradient(135deg,#17a2b8,#138496); }
@keyframes slideInRight { from{opacity:0;transform:translateX(100%)} to{opacity:1;transform:translateX(0)} }

/* ── FAB ── */
.fab-group { position:fixed; bottom:18px; right:18px; z-index:1000; display:flex; flex-direction:column; align-items:flex-end; gap:10px; }
.fab {
  width: 52px; height: 52px;
  background: linear-gradient(135deg,var(--amazon-orange),#e88900);
  color: #fff; border: none; border-radius: 50%; font-size: 20px;
  cursor: pointer; box-shadow: 0 4px 16px rgba(255,153,0,.4);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.fab:hover { transform: scale(1.1); box-shadow: 0 6px 22px rgba(255,153,0,.6); }
.fab.fab-dark { background: linear-gradient(135deg,#232f3e,#131a22); box-shadow: 0 4px 16px rgba(35,47,62,.5); }

/* ── Footer ── */
.amazon-footer {
  background: var(--gradient-primary);
  color: var(--white); margin-top: 50px; padding: 36px 0 18px;
}
.footer-content { max-width: 1500px; margin: 0 auto; padding: 0 16px; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; flex-wrap: wrap; }
.footer-link { color: var(--white); text-decoration: none; font-size: 13px; transition: color .2s; padding: 6px 10px; }
.footer-link:hover { color: var(--amazon-orange); text-decoration: none; }
.footer-copyright { font-size: 11px; color: #ccc; opacity: .8; }

/* ── Empty / error states ── */
.empty-state { text-align:center; padding:40px; color:var(--text-light); }
.empty-state > i { font-size:40px; margin-bottom:12px; display:block; }

/* ════════════ COMPACT LIST VIEW ════════════ */
.compact-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.compact-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
  border-bottom: 1px solid #f0f0f0;
  transition: background .15s;
  position: relative;
  cursor: pointer;
}
.compact-row:last-child { border-bottom: none; }
.compact-row:hover { background: #fafcff; }
.compact-row.selected { background: #fff8ee; border-left: 3px solid var(--amazon-orange); }
.compact-num {
  width: 44px; min-width: 44px;
  text-align: center; font-size: 13px; font-weight: 600;
  color: var(--text-light); padding: 14px 0;
  border-right: 1px solid #f0f0f0; flex-shrink: 0;
}
.compact-dot { width: 32px; min-width: 32px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.compact-dot-inner { width: 9px; height: 9px; border-radius: 50%; background: var(--amazon-orange); box-shadow: 0 0 0 2px rgba(255,153,0,.25); }
.compact-info { flex: 1 1 0%; min-width: 0; max-width: 100%; overflow: hidden; padding: 12px 10px 12px 6px; }
.compact-title {
  font-size: 13.5px; font-weight: 600; color: var(--amazon-blue);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%; line-height: 1.35; transition: color .15s;
}
.compact-row:hover .compact-title { color: var(--amazon-orange); }
.compact-meta { display: flex; align-items: center; gap: 10px; margin-top: 3px; }
.compact-loc { font-size: 11.5px; color: var(--success-green); font-weight: 500; display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.compact-category { font-size: 11px; color: var(--text-light); display: flex; align-items: center; gap: 3px; }
.compact-tags { display: flex; align-items: center; gap: 5px; padding: 0 10px; flex-shrink: 0; max-width: 220px; overflow: hidden; }
.compact-tag {
  background: linear-gradient(135deg,#e7f3ff,#d1ecf1); color: var(--amazon-blue);
  padding: 3px 9px; border-radius: 12px; font-size: 11px; font-weight: 500;
  border: 1px solid rgba(35,47,62,.1); white-space: nowrap; flex-shrink: 0;
}
.compact-actions { display: flex; align-items: center; gap: 6px; padding: 10px 14px 10px 6px; flex-shrink: 0; flex-grow: 0; }
.compact-btn-contact {
  background: linear-gradient(135deg,var(--amazon-orange),#e88900); color: #fff; border: none;
  padding: 7px 14px; border-radius: 6px; font-size: 12.5px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; transition: all .15s;
  box-shadow: 0 2px 6px rgba(255,153,0,.3);
}
.compact-btn-contact:hover { background: linear-gradient(135deg,#e88900,#d17800); transform: translateY(-1px); box-shadow: 0 3px 10px rgba(255,153,0,.4); }
.compact-btn-share {
  background: var(--white); color: var(--text-light); border: 1px solid var(--border-gray);
  width: 32px; height: 32px; border-radius: 6px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; transition: all .15s; flex-shrink: 0;
}
.compact-btn-share:hover { background: var(--light-gray); color: var(--amazon-blue); border-color: var(--amazon-blue); }
.compact-contact-expand {
  display: none;
  background: linear-gradient(135deg,#e7f3ff,#d1ecf1);
  border-top: 1px solid #b3d9ff; border-bottom: 1px solid #b3d9ff;
  padding: 14px 16px 14px 76px; position: relative;
}
.compact-contact-expand::before {
  content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
  background: linear-gradient(180deg,var(--amazon-orange),var(--amazon-yellow));
}
.compact-contact-expand.show { display: block; animation: slideDown .25s ease-out; }
.compact-alert {
  padding: 0; border-radius: 5px; font-size: 12px;
  display: none; align-items: center; gap: 5px;
  white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis;
}
.compact-alert.success { background:#d4edda; color:#155724; border:1px solid #c3e6cb; display:flex; padding: 4px 9px; }
.compact-alert.error   { background:#f8d7da; color:#721c24; border:1px solid #f5c6cb; display:flex; padding: 4px 9px; }
.compact-alert.info    { background:#d1ecf1; color:#0c5460; border:1px solid #bee5eb; display:flex; padding: 4px 9px; }

/* ── Responsive ── */
@media(max-width:1024px){
  .main-container{grid-template-columns:1fr; gap:14px;}
  .providers-sidebar{position:static; max-height:none;}
  .secondary-nav{display:none;}
  .compact-tags { display: none; }
}
@media(max-width:768px){
  /* Header compacto: logo + accesos en una fila, buscador debajo */
  .header-main{flex-wrap:wrap; gap:8px 6px; padding:8px 12px;}
  .logo{font-size:20px; padding:4px 6px; flex:1;}
  .header-nav{gap:4px;}
  .nav-item{padding:6px 8px;}
  #navPerfil{display:none !important;}
  .session-bar{padding:4px 8px; gap:6px;}
  #sessionName{display:none;}
  .search-section{width:100%; order:3; max-width:none; flex-basis:100%;}
  .search-input{padding:8px 12px;}
  /* Carrusel: sin flechas (se desliza con el dedo) y sin encimar los puntos */
  .banner-carousel{height:220px;}
  .product-grid{grid-template-columns:1fr;}
  .stats-container{grid-template-columns:1fr 1fr;}
  .recent-cards{grid-template-columns:1fr;}
  .results-header{flex-wrap:wrap; gap:10px; padding:12px;}
  .crm-modal{padding:14px; max-height:90vh;}
  .crm-notes-input{width:120px; min-width:100px;}
  .compact-dot { display: none; }
  .compact-title { font-size: 12.5px; }
  .compact-num { width: 36px; min-width: 36px; font-size: 11px; }
  .compact-contact-expand { padding: 12px 12px 12px 48px; }
  .compact-alert { max-width: 110px; font-size: 11px; }
  .toast { min-width: 0; }
}
@media(max-width:480px){
  .banner-carousel{height:210px;}
  .session-usage-pill .usage-pill-bar{display:none;}
  .product-actions{flex-direction:column;}
  .btn-primary,.btn-secondary{width:100%; justify-content:center;}
  .contact-actions{flex-direction:column;}
  .whatsapp-btn,.copy-btn{width:100%; justify-content:center;}
  .compact-num { width: 28px; min-width: 28px; font-size: 10px; }
  .compact-btn-contact { padding: 6px 10px; font-size: 12px; }
  .compact-btn-contact span { display: none; }
  .compact-alert { display: none !important; }
  .compact-contact-expand { padding: 12px; }
}
@media(prefers-reduced-motion:reduce){ *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;} }

/* ── Insignias de RFQ ── */
.rfq-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.rfq-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 10px; letter-spacing: .01em; }
.badge-urgente { background: #fdecea; color: #c62828; border: 1px solid #f5c2bd; }
.badge-nuevo { background: #e3f4ee; color: var(--success-green); border: 1px solid #b9e2d3; }
.badge-cierra { background: #fff3d6; color: #8a5a00; border: 1px solid #f0d79a; }
.badge-cierra-pronto { background: #ffe1cc; color: #a3410b; border: 1px solid #f5bd94; }
.badge-mini { padding: 1px 5px; font-size: 10px; vertical-align: middle; }
.rfq-details { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--text-light); margin-bottom: 8px; }
.rfq-details i { color: var(--amazon-orange); margin-right: 3px; }
.recent-card .rfq-badges { margin-bottom: 6px; }
.contact-company { background: rgba(255,255,255,.95); border: 1px solid #b3d9ff; border-radius: 6px; padding: 9px 11px; margin: 8px 0; font-size: 13px; color: var(--amazon-blue); }
.contact-company i { color: var(--amazon-orange); margin-right: 4px; }

/* ── Mi cuenta: guardar y vistos ── */
.badge-visto { background: #e3f4ee; color: var(--success-green); border: 1px solid #b9e2d3; }
.btn-secondary.is-saved, .compact-btn-share.is-saved { color: #c47a00; border-color: #f0c47a; background: #fff6e3; }
.go-account { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--amazon-blue); text-decoration: none; }
.go-account:hover { color: var(--amazon-orange); }
.session-account { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }

/* Uso disponible en porcentaje (barra de sesión) */
.usage-pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.usage-pill-bar { display: inline-block; width: 46px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; }
.usage-pill-bar span { display: block; height: 100%; background: var(--amazon-orange); border-radius: 3px; }
.usage-pill.low { color: #ffb4a2; }
.usage-pill.low .usage-pill-bar span { background: #ff6b35; }

/* ── Continuar con Google ── */
.or-sep { display: flex; align-items: center; gap: 10px; color: var(--text-light); font-size: 12.5px; margin: 14px 0 10px; }
.or-sep::before, .or-sep::after { content: ''; flex: 1; height: 1px; background: var(--border-gray); }
.google-btn { display: flex; justify-content: center; min-height: 44px; }
.google-info { background: #eef4ff; border: 1px solid #c9dafc; color: #0c2f66; border-radius: 8px; padding: 9px 11px; font-size: 13px; line-height: 1.45; margin: 4px 0 8px; }
.google-info a { color: #0b57d0; font-weight: 600; }

/* ── Compartir: hoja de opciones ── */
.share-overlay { position: fixed; inset: 0; background: rgba(19,26,34,0); display: flex; align-items: flex-end; justify-content: center; z-index: 3000; transition: background .2s; }
.share-overlay.show { background: rgba(19,26,34,.55); }
.share-sheet { background: #fff; width: 100%; max-width: 460px; border-radius: 18px 18px 0 0; padding: 16px 18px 22px; transform: translateY(100%); transition: transform .22s ease-out; max-height: 92vh; overflow-y: auto; }
.share-overlay.show .share-sheet { transform: none; }
@media (min-width: 640px) { .share-overlay { align-items: center; } .share-sheet { border-radius: 18px; } }
.share-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 17px; color: var(--text-dark); }
.share-close { background: none; border: none; font-size: 28px; line-height: 1; color: var(--text-light); cursor: pointer; padding: 0 4px; }
.share-preview { display: flex; gap: 10px; align-items: center; border: 1px solid var(--border-gray); border-radius: 12px; padding: 8px; margin-bottom: 14px; }
.share-preview img { width: 112px; aspect-ratio: 1200 / 627; object-fit: cover; border-radius: 8px; background: #232f3e; flex: none; }
.share-preview-t { font-size: 13.5px; font-weight: 600; color: var(--text-dark); line-height: 1.3; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.share-preview-t span { font-weight: 400; color: var(--text-light); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-primary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.share-more-lbl { font-size: 12px; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: .04em; margin: 16px 0 8px; }
.share-more { display: flex; gap: 6px; flex-wrap: wrap; justify-content: space-between; }
.share-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; padding: 6px 2px; border-radius: 12px; font: inherit; color: var(--text-dark); min-width: 64px; }
.share-opt:hover { background: #f5f6f7; }
.share-ico { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--c); color: #fff; font-size: 21px; }
.share-lbl { font-size: 12px; font-weight: 600; text-align: center; }
.share-opt.big { border: 1px solid var(--border-gray); padding: 12px 4px; }
.share-opt.big .share-ico { width: 54px; height: 54px; font-size: 26px; }
.share-opt.big .share-lbl { font-size: 13px; }
.share-help { margin-top: 14px; background: #fff8ec; border: 1px solid #ffe0a6; border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--text-dark); }
.share-help ol { margin: 6px 0 6px 18px; padding: 0; }
.share-help p { margin: 0; color: var(--text-light); font-size: 12.5px; }
/* Los íconos de marcas de Font Awesome usan la clase "fab", igual que los botones flotantes del sitio */
i.fab { width: auto; height: auto; background: none; box-shadow: none; border-radius: 0; display: inline-block; color: inherit; font-size: inherit; transition: none; cursor: inherit; }
i.fab:hover { transform: none; box-shadow: none; }

/* ── RFQ seleccionado (página propia /rfq/9-…) ── */
.featured-rfq { margin-bottom: 22px; border: 2px solid var(--amazon-orange); border-radius: 14px; padding: 14px; background: #fffaf2; }
.featured-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-weight: 700; color: var(--amazon-blue); flex-wrap: wrap; }
.featured-head i { color: var(--amazon-orange); margin-right: 6px; }
.featured-head.gone { color: var(--text-dark); font-weight: 600; }
.featured-close { background: #fff; border: 1px solid var(--border-gray); border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--amazon-blue); }
.featured-close i { color: inherit; margin: 0 0 0 4px; }
.featured-close:hover { border-color: var(--amazon-orange); }
.featured-sub { margin: 0 0 10px; color: var(--text-light); font-size: 14px; }
.featured-body.product-grid { margin: 0; }
.product-link { color: inherit; text-decoration: none; }
.product-link:hover { text-decoration: underline; }
/* Texto del RFQ que viene del servidor (Google / sin JavaScript); el sitio lo reemplaza al cargar */
.rfq-ssr { border: 2px solid var(--amazon-orange); border-radius: 14px; padding: 18px; margin-bottom: 22px; background: #fffaf2; }
.rfq-ssr h1 { font-size: 22px; margin: 4px 0 10px; color: var(--amazon-blue); }
.rfq-ssr p { margin: 4px 0; color: var(--text-dark); }
.rfq-ssr-kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--amazon-orange) !important; }
.featured-rfq, .rfq-ssr { scroll-margin-top: 110px; }

/* ── Asistente de búsqueda (chat) ── */
.fab.fab-chat { background: linear-gradient(135deg, #0a66c2, #134a8e); box-shadow: 0 4px 16px rgba(10,102,194,.45); }
.fab.fab-chat.active { background: linear-gradient(135deg, #37475a, #232f3e); }
.chat-panel { position: fixed; right: 18px; bottom: 90px; width: 390px; max-width: calc(100vw - 24px); height: min(620px, calc(100vh - 120px)); background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.28); display: flex; flex-direction: column; overflow: hidden; z-index: 2500; opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none; transition: opacity .18s, transform .18s; }
.chat-panel.show { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 600px) { .chat-panel { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 100dvh; border-radius: 0; } }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: linear-gradient(135deg, #232f3e, #131a22); color: #fff; }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: #ff9900; color: #131a22; display: flex; align-items: center; justify-content: center; font-size: 17px; flex: none; }
.chat-head-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-head-t b { font-size: 15px; }
.chat-head-t span { font-size: 12px; color: #c9d1da; }
.chat-clear, .chat-close { background: none; border: none; color: #fff; cursor: pointer; font-size: 16px; padding: 4px 6px; opacity: .85; }
.chat-close { font-size: 26px; line-height: 1; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px 12px; background: #f3f4f6; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { display: flex; flex-direction: column; max-width: 92%; }
.chat-msg.user { align-self: flex-end; align-items: flex-end; }
.chat-msg.bot { align-self: flex-start; }
.chat-bubble { padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.chat-bubble p { margin: 0 0 6px; } .chat-bubble p:last-child { margin: 0; }
.chat-bubble a { color: #0c447c; font-weight: 600; }
.chat-msg.user .chat-bubble { background: #ff9900; color: #131a22; border-bottom-right-radius: 4px; }
.chat-msg.bot .chat-bubble { background: #fff; color: var(--text-dark); border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.chat-cards { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.chat-card { display: block; background: #fff; border: 1px solid var(--border-gray); border-radius: 12px; padding: 9px 11px; text-decoration: none; color: var(--text-dark); transition: border-color .15s; }
.chat-card:hover { border-color: var(--amazon-orange); }
.chat-card-t { font-weight: 700; font-size: 13.5px; line-height: 1.3; }
.chat-card-m { font-size: 12px; color: var(--text-light); margin-top: 3px; }
.chat-card-m i { color: var(--amazon-orange); }
.chat-card-b { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.cb { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 6px; }
.cb-urg { background: #fdecea; color: #c62828; } .cb-due { background: #fff3d6; color: #8a5a00; }
.chat-card-go { display: inline-block; margin-top: 5px; font-size: 12px; font-weight: 700; color: #0c447c; }
.chat-acts, .chat-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.chat-act { background: #fff; border: 1px solid #0a66c2; color: #0a66c2; border-radius: 16px; padding: 5px 11px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.chat-act:hover { background: #eef4ff; }
.chat-chip { background: #fff; border: 1px solid var(--border-gray); color: var(--amazon-blue); border-radius: 16px; padding: 6px 11px; font: inherit; font-size: 12.5px; cursor: pointer; text-align: left; }
.chat-chip:hover { border-color: var(--amazon-orange); }
.chat-thinking { background: #fff; border-radius: 14px; padding: 8px 12px; box-shadow: 0 1px 2px rgba(0,0,0,.06); min-width: 250px; }
.chat-step { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #9aa3ad; padding: 4px 0; opacity: .45; transition: opacity .2s; }
.chat-step.on { opacity: 1; color: var(--text-dark); }
.chat-step.done { color: var(--text-light); }
.chat-step-ic { width: 20px; text-align: center; font-size: 16px; }
.chat-step-t { flex: 1; }
.chat-step-st { width: 16px; text-align: center; color: #9aa3ad; }
.chat-step.done .chat-step-st { color: #067d62; }
.chat-foot { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border-gray); background: #fff; }
.chat-input { flex: 1; min-width: 0; border: 1px solid var(--border-gray); border-radius: 22px; padding: 10px 14px; font: inherit; font-size: 14.5px; }
.chat-input:focus { outline: 2px solid var(--amazon-orange); border-color: var(--amazon-orange); }
.chat-send { width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--amazon-orange); color: #131a22; cursor: pointer; font-size: 16px; flex: none; }
.nav-link.nav-asistente { font-weight: 700; color: #febd69; }
.nav-link.nav-asistente::before { content: '\f086'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-right: 6px; }

/* ── RFQs AI (v2): destellos animados, botón flotante, tarjetas desplegables ── */
@keyframes aiTwinkle { 0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 0 rgba(255,255,255,0)); } 50% { opacity: .55; transform: scale(.86) rotate(-8deg); filter: drop-shadow(0 0 6px rgba(255,255,255,.9)); } }
.ai-sparkle { display: inline-block; animation: aiTwinkle 2.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .ai-sparkle { animation: none; } }
.nav-link.nav-asistente { font-weight: 700; background: linear-gradient(90deg, #febd69, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-link.nav-asistente::before { content: none; }
.nav-link.nav-asistente i { color: #febd69; margin-right: 6px; -webkit-text-fill-color: #febd69; }

.fab.fab-chat { position: relative; background: linear-gradient(135deg, #2563eb 0%, #7c3aed 60%, #c026d3 100%); box-shadow: 0 6px 20px rgba(124,58,237,.45); font-size: 21px; }
.fab.fab-chat::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(124,58,237,.45); animation: aiPulse 2.4s ease-out infinite; pointer-events: none; }
@keyframes aiPulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fab.fab-chat::after { animation: none; display: none; } }
.fab.fab-chat.active { background: linear-gradient(135deg, #37475a, #232f3e); }
.fab.fab-chat.active::after { display: none; }
.fab-chat-label { position: absolute; right: 62px; top: 50%; transform: translateY(-50%); white-space: nowrap; background: #131a22; color: #fff; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.fab.fab-chat:hover .fab-chat-label { opacity: 1; }
@media (hover: none) { .fab-chat-label { display: none; } }

.chat-avatar { background: linear-gradient(135deg, #2563eb, #7c3aed 60%, #c026d3); color: #fff; }
.chat-expand { color: #fff; opacity: .85; padding: 4px 6px; font-size: 15px; }
.chat-msg.bot { flex-direction: row; align-items: flex-start; gap: 8px; max-width: 100%; }
.chat-msg-c { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.chat-ai-av { width: 28px; height: 28px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; background: linear-gradient(135deg, #2563eb, #7c3aed 60%, #c026d3); margin-top: 2px; }
.chat-ai-av.thinking i { animation: aiTwinkle 1s ease-in-out infinite; }
.chat-card { cursor: default; }
.chat-card.open { border-color: #7c3aed; box-shadow: 0 2px 10px rgba(124,58,237,.12); }
.chat-card-acts { display: flex; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
.cd-link { background: none; border: none; padding: 0; font: inherit; font-size: 12.5px; font-weight: 700; color: #0c447c; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.cd-link:hover { text-decoration: underline; }
.chat-card-d { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border-gray); }
.cd-row { display: grid; grid-template-columns: 16px 92px minmax(0, 1fr); gap: 6px; font-size: 12.5px; padding: 2px 0; color: var(--text-light); }
.cd-row i { color: #7c3aed; text-align: center; margin-top: 2px; }
.cd-row b { color: var(--text-dark); font-weight: 600; overflow-wrap: anywhere; }
.cd-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.cd-tags span { background: #f1f3f5; color: #37475a; font-size: 11.5px; border-radius: 6px; padding: 2px 7px; }
.cd-btn { display: inline-flex; align-items: center; gap: 6px; border: none; border-radius: 8px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none; margin-top: 6px; }
.cd-primary { background: var(--amazon-orange); color: #131a22; }
.cd-primary:disabled { opacity: .7; cursor: wait; }
.cd-wa { background: #25d366; color: #fff; }
.cd-contact-ok { background: #eefaf3; border: 1px solid #b7e4c7; border-radius: 8px; padding: 8px 10px; font-size: 13px; margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.cd-contact-ok a { color: #0c447c; font-weight: 700; word-break: break-word; }
.cd-note { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.cd-note a { color: #0c447c; font-weight: 600; }
.cd-bad { color: #c62828; }
.chat-foot { flex-direction: column; gap: 4px; }
.chat-inbox { display: flex; align-items: flex-end; gap: 8px; border: 1px solid var(--border-gray); border-radius: 18px; padding: 6px 6px 6px 14px; background: #fff; }
.chat-inbox:focus-within { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
.chat-input { border: none !important; outline: none !important; box-shadow: none !important; padding: 7px 0 !important; resize: none; max-height: 160px; line-height: 1.4; background: transparent; }
.chat-send { width: 36px; height: 36px; background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; font-size: 15px; }
.chat-disclaimer { text-align: center; font-size: 11.5px; color: var(--text-light); }

/* Botón flotante de carga rápida (solo administradores) */
.fab.fab-carga { position: relative; background: linear-gradient(135deg, #f59e0b, #ea580c); box-shadow: 0 4px 16px rgba(234,88,12,.45); color: #fff; text-decoration: none; font-size: 20px; }
.fab.fab-carga:hover { box-shadow: 0 6px 22px rgba(234,88,12,.6); }
.fab.fab-carga:hover .fab-chat-label { opacity: 1; }

/* Botón flotante «Admin»: solo administradores y solo en celular */
.fab.fab-admin { display: none; }
@media (max-width: 768px) {
  .fab.fab-admin { display: flex; flex-direction: column; gap: 1px; background: linear-gradient(135deg, #37475a, #131a22); box-shadow: 0 4px 16px rgba(19,26,34,.45); color: #ff9900; text-decoration: none; font-size: 17px; border: 2px solid #ff9900; }
  .fab-admin-txt { font-size: 9px; font-weight: 800; letter-spacing: .03em; color: #fff; line-height: 1; }
}

/* Celular: sin zoom automático del iPhone al tocar un campo (necesita letra de 16 px o más) */
@media (max-width: 768px) {
  input, select, textarea { font-size: 16px !important; }
}
