/* ==========================================================================
   VIAGLOBAL AGRO EXPORTS - 10 ENTERPRISE MEGA FEATURES (CSS MODULE)
   Enterprise B2B Suite: Live Chat, PDF Dossier, Multilingual, Shipping Radar, 
   Currency Converter, 3D OEM, Sample Kit, QR Vault, Palletization, Proforma RFQ
   ========================================================================== */

/* --- 1. Live Chat Trigger & Box --- */
.vg-chat-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  background: linear-gradient(135deg, #d4af37 0%, #a16207 100%);
  color: #030914;
  border: 2px solid #ffffff;
  border-radius: 50px;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.vg-chat-trigger:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(212, 175, 55, 0.6);
}
.vg-pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #10b981;
  border-radius: 50%;
  animation: vgPulseRing 2s infinite;
}
@keyframes vgPulseRing {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.vg-chat-box {
  display: none;
  position: fixed;
  bottom: 88px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 530px;
  max-height: calc(100vh - 120px);
  background: #071728;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  z-index: 99999;
  flex-direction: column;
  overflow: hidden;
}
.vg-chat-header {
  background: linear-gradient(135deg, #0b1e33 0%, #081423 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.vg-chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #030914;
}
.vg-msg-incoming {
  background: #0b1e33;
  color: #e2e8f0;
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 12px 14px;
  border-radius: 12px 12px 12px 2px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.vg-chat-footer {
  padding: 12px;
  background: #071728;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  gap: 8px;
}

/* --- 2. Print / PDF Export Styling --- */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .trade-ticker-bar, .main-header, .nav-wrapper, .vg-chat-trigger, .vg-chat-box, .master-footer, .btn, .tabs-navbar-wrapper, .crumb-bar, #noResultsState {
    display: none !important;
  }
  .tab-content-panel {
    display: block !important;
    page-break-inside: avoid;
    margin-bottom: 30px;
  }
  .rich-spec-table, .spec-table-box {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #333333 !important;
  }
  .rich-spec-table th, .spec-table-box th {
    background: #f0f0f0 !important;
    color: #000000 !important;
    border-bottom: 2px solid #000000 !important;
  }
  .rich-spec-table td, .spec-table-box td {
    color: #111111 !important;
    border-bottom: 1px solid #cccccc !important;
  }
  .print-official-header {
    display: block !important;
    text-align: center;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 15px;
    margin-bottom: 25px;
  }
}
.print-official-header { display: none; }

/* --- 3. Multilingual Global Selector --- */
.vg-lang-wrap {
  position: relative;
  display: inline-block;
}
.vg-lang-btn {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid #d4af37;
  color: #d4af37;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}
.vg-lang-btn:hover {
  background: #d4af37;
  color: #030914;
}
.vg-lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: #071728;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.7);
  z-index: 10000;
  min-width: 140px;
  overflow: hidden;
}
.vg-lang-item {
  padding: 8px 14px;
  font-size: 0.82rem;
  color: #e2e8f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease;
}
.vg-lang-item:hover {
  background: #0b1e33;
  color: #d4af37;
}

/* --- 4. Modals (Shipping Radar, Sample Kit, Proforma RFQ) --- */
.vg-modal-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(3, 9, 20, 0.88);
  backdrop-filter: blur(8px);
  z-index: 100000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.vg-modal-content {
  background: #071728;
  border: 1px solid #d4af37;
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0,0,0,0.85);
  animation: vgModalPop 0.3s ease-out;
  padding: 28px;
  position: relative;
}
@keyframes vgModalPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.vg-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vg-modal-close:hover {
  background: #d4af37;
  color: #030914;
}

/* --- 5. Shipping Transit Radar Cards --- */
.vg-route-card {
  background: #0b1e33;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.vg-route-time {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid #10b981;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* --- 6. Palletization & Stuffing Blueprint --- */
.vg-stuffing-box {
  background: #071728;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  padding: 24px;
  margin: 30px 0;
}
.vg-container-diagram {
  background: #030914;
  border: 2px dashed rgba(212, 175, 55, 0.4);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin: 15px 0;
}

/* --- 7. Statutory QR & License Vault --- */
.vg-vault-card {
  background: linear-gradient(135deg, #071728 0%, #0e2742 100%);
  border: 1px solid #d4af37;
  border-radius: 12px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
}

/* --- 8. One-Click PDF Button --- */
.vg-pdf-btn {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid #d4af37;
  color: #d4af37;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}
.vg-pdf-btn:hover {
  background: #d4af37;
  color: #030914;
}
