/* lynk.international Brand Theme */
:root {
  --lynk-gold: #C6A43F;
  --lynk-gold-warm: #E5B83C;
  --lynk-green: #2D5A3B;
  --lynk-charcoal: #2E2E2E;
  --lynk-offwhite: #F8F5EE;
  --lynk-gold-10: rgba(198, 164, 63, 0.10);
  --lynk-gold-20: rgba(198, 164, 63, 0.20);
  --lynk-gold-30: rgba(198, 164, 63, 0.30);
  --lynk-green-10: rgba(45, 90, 59, 0.10);
  --lynk-green-20: rgba(45, 90, 59, 0.20);
}

body {
  background: var(--lynk-charcoal);
  color: var(--lynk-offwhite);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Sidebar */
.lynk-sidebar {
  background: #252525;
  border-right: 1px solid rgba(198, 164, 63, 0.15);
  width: 240px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: width 0.25s ease, min-width 0.25s ease;
  overflow: hidden;
}
.lynk-sidebar.collapsed { width: 60px; min-width: 60px; }
.lynk-sidebar.collapsed .lynk-nav-item { justify-content: center; padding: 10px 0; }
.lynk-sidebar.collapsed .nav-badge { display: none; }

.lynk-sidebar-logo {
  padding: 20px 16px;
  border-bottom: 1px solid rgba(198, 164, 63, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
}

.lynk-sidebar-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--lynk-gold), var(--lynk-gold-warm));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--lynk-charcoal);
  font-size: 14px;
}

.lynk-sidebar-logo .logo-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--lynk-offwhite);
}

.lynk-sidebar-logo .logo-text span {
  color: var(--lynk-green);
}

.lynk-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  margin: 2px 8px;
  border-radius: 8px;
  cursor: pointer;
  color: rgba(248, 245, 238, 0.6);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.lynk-nav-item:hover {
  background: var(--lynk-gold-10);
  color: var(--lynk-offwhite);
}

.lynk-nav-item.active {
  background: var(--lynk-gold-20);
  color: var(--lynk-gold);
}

.lynk-nav-item .nav-badge {
  margin-left: auto;
  background: var(--lynk-gold);
  color: var(--lynk-charcoal);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 10px;
}

/* Main Content */
.lynk-main {
  flex: 1;
  background: var(--lynk-charcoal);
  overflow-y: auto;
  max-height: 100vh;
}

.lynk-header {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(198, 164, 63, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #252525;
}

.lynk-header h1 {
  font-size: 20px;
  font-weight: 600;
  color: var(--lynk-offwhite);
}

.lynk-header .header-subtitle {
  font-size: 12.5px;
  color: rgba(248, 245, 238, 0.5);
  margin-top: 2px;
}

.lynk-content {
  padding: 20px 24px;
}

/* KPI Cards */
.lynk-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.lynk-kpi-card {
  background: #353535;
  border: 1px solid rgba(198, 164, 63, 0.1);
  border-radius: 12px;
  padding: 18px;
  transition: border-color 0.2s;
}

.lynk-kpi-card:hover {
  border-color: rgba(198, 164, 63, 0.25);
}

.lynk-kpi-card .kpi-label {
  font-size: 12px;
  color: rgba(248, 245, 238, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.lynk-kpi-card .kpi-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--lynk-gold);
}

.lynk-kpi-card .kpi-change {
  font-size: 12px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lynk-kpi-card .kpi-change.up {
  color: #4ade80;
}

.lynk-kpi-card .kpi-change.down {
  color: #f87171;
}

/* Section Cards */
.lynk-card {
  background: #353535;
  border: 1px solid rgba(198, 164, 63, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.lynk-card-header {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(198, 164, 63, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lynk-card-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--lynk-offwhite);
}

.lynk-card-body {
  padding: 16px 18px;
}

/* Tables */
.lynk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.lynk-table th {
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(248, 245, 238, 0.45);
  border-bottom: 1px solid rgba(198, 164, 63, 0.08);
}

.lynk-table td {
  padding: 12px 14px;
  color: rgba(248, 245, 238, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.lynk-table tbody tr:hover {
  background: rgba(198, 164, 63, 0.05);
}

/* Badges */
.lynk-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
}

.lynk-badge-gold {
  background: var(--lynk-gold-20);
  color: var(--lynk-gold);
}

.lynk-badge-green {
  background: var(--lynk-green-20);
  color: #6bc77a;
}

.lynk-badge-pending {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.lynk-badge-shipped {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
}

.lynk-badge-completed {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
}

.lynk-badge-cancelled {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

/* Buttons */
.lynk-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}

.lynk-btn-primary {
  background: linear-gradient(135deg, var(--lynk-gold), var(--lynk-gold-warm));
  color: var(--lynk-charcoal);
}

.lynk-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.lynk-btn-outline {
  background: transparent;
  border: 1px solid rgba(198, 164, 63, 0.3);
  color: var(--lynk-gold);
}

.lynk-btn-outline:hover {
  border-color: var(--lynk-gold);
  background: var(--lynk-gold-10);
}

.lynk-btn-green {
  background: var(--lynk-green);
  color: var(--lynk-offwhite);
}

.lynk-btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

/* Tier Progress */
.lynk-tier-card {
  background: linear-gradient(135deg, rgba(198, 164, 63, 0.08), rgba(45, 90, 59, 0.08));
  border: 1px solid rgba(198, 164, 63, 0.2);
  border-radius: 14px;
  padding: 20px;
}

.lynk-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.lynk-tier-bronze {
  background: rgba(184, 135, 80, 0.2);
  color: #d4a574;
}

.lynk-tier-silver {
  background: rgba(192, 192, 210, 0.2);
  color: #c0c0d2;
}

.lynk-tier-gold {
  background: var(--lynk-gold-20);
  color: var(--lynk-gold);
}

.lynk-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin: 12px 0;
}

.lynk-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--lynk-gold), var(--lynk-gold-warm));
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* Carbon Score */
.lynk-carbon-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lynk-carbon-ring .ring-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--lynk-gold);
}

.lynk-carbon-ring .ring-label {
  font-size: 11px;
  color: rgba(248, 245, 238, 0.5);
}

/* Chat/Messages */
.lynk-message {
  display: flex;
  gap: 10px;
  padding: 12px 0;
}

.lynk-message-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.lynk-message-bubble {
  background: #3a3a3a;
  padding: 10px 14px;
  border-radius: 12px;
  border-top-left-radius: 4px;
  max-width: 80%;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(248, 245, 238, 0.9);
}

.lynk-message.sent .lynk-message-bubble {
  background: var(--lynk-green);
  border-top-left-radius: 12px;
  border-top-right-radius: 4px;
  margin-left: auto;
}

.lynk-message-meta {
  font-size: 11px;
  color: rgba(248, 245, 238, 0.35);
  margin-top: 3px;
}

/* Product Cards */
.lynk-product-card {
  background: #353535;
  border: 1px solid rgba(198, 164, 63, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
}

.lynk-product-card:hover {
  border-color: rgba(198, 164, 63, 0.25);
  transform: translateY(-2px);
}

.lynk-product-img {
  width: 100%;
  height: 140px;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(248, 245, 238, 0.2);
  font-size: 32px;
}

.lynk-product-info {
  padding: 14px;
}

.lynk-product-info .product-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--lynk-offwhite);
  margin-bottom: 4px;
}

.lynk-product-info .product-sku {
  font-size: 11.5px;
  color: rgba(248, 245, 238, 0.4);
  margin-bottom: 8px;
}

.lynk-product-info .product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--lynk-gold);
}

/* Search Input */
.lynk-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #3a3a3a;
  border: 1px solid rgba(198, 164, 63, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
  width: 280px;
}

.lynk-search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--lynk-offwhite);
  font-size: 13px;
  width: 100%;
}

.lynk-search input::placeholder {
  color: rgba(248, 245, 238, 0.35);
}

/* Tabs */
.lynk-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(198, 164, 63, 0.1);
  margin-bottom: 20px;
}

.lynk-tab {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(248, 245, 238, 0.5);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  outline: none;
  font-family: inherit;
  white-space: nowrap;
}

.lynk-tab:hover {
  color: rgba(248, 245, 238, 0.8);
}

.lynk-tab.active {
  color: var(--lynk-gold);
  border-bottom-color: var(--lynk-gold);
}

/* Utility */
.lynk-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lynk-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.lynk-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.lynk-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.lynk-dot-green { background: #4ade80; }
.lynk-dot-gold { background: var(--lynk-gold); }
.lynk-dot-red { background: #f87171; }

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(198, 164, 63, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(198, 164, 63, 0.35);
}

/* Notification dot */
.lynk-notification-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #f87171;
  border-radius: 50%;
  border: 2px solid #252525;
}

/* Modal overlay */
.lynk-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.lynk-modal {
  background: #353535;
  border: 1px solid rgba(198, 164, 63, 0.2);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
}

.lynk-modal-header {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(198, 164, 63, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lynk-modal-body {
  padding: 20px;
}

/* Form elements */
.lynk-input {
  background: #2a2a2a;
  border: 1px solid rgba(198, 164, 63, 0.15);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--lynk-offwhite);
  font-size: 13px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
}

.lynk-input:focus {
  border-color: var(--lynk-gold);
}

.lynk-input::placeholder {
  color: rgba(248, 245, 238, 0.3);
}

.lynk-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(248, 245, 238, 0.6);
  margin-bottom: 6px;
  display: block;
}

.lynk-select {
  background: #2a2a2a;
  border: 1px solid rgba(198, 164, 63, 0.15);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--lynk-offwhite);
  font-size: 13px;
  width: 100%;
  outline: none;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.lynk-animate {
  animation: fadeIn 0.3s ease-out;
}

/* Sustainability indicators */
.lynk-eco-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lynk-eco-bar .eco-fill {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.lynk-eco-bar .eco-fill-inner {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.eco-fill-green { background: #4ade80; }
.eco-fill-gold { background: var(--lynk-gold); }
.eco-fill-amber { background: #fbbf24; }

/* ================================
   NEW CLASSES
   ================================ */

/* Language Toggle */
.lynk-lang-toggle { display: flex; background: #3a3a3a; border-radius: 6px; padding: 2px; gap: 2px; }
.lynk-lang-btn { padding: 4px 10px; border-radius: 4px; font-size: 11.5px; font-weight: 600; cursor: pointer; color: rgba(248,245,238,0.5); transition: all 0.15s; border: none; background: transparent; }
.lynk-lang-btn.active { background: var(--lynk-gold); color: var(--lynk-charcoal); }

/* Pipeline/Kanban */
.lynk-pipeline { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.lynk-pipeline-col { min-width: 240px; flex: 1; background: #2a2a2a; border-radius: 12px; padding: 12px; }
.lynk-pipeline-col-header { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(248,245,238,0.5); margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.lynk-pipeline-col-header .count { background: var(--lynk-gold-20); color: var(--lynk-gold); padding: 2px 8px; border-radius: 10px; font-size: 11px; }
.lynk-lead-card { background: #353535; border: 1px solid rgba(198,164,63,0.1); border-radius: 10px; padding: 12px; margin-bottom: 8px; cursor: pointer; transition: all 0.15s; }
.lynk-lead-card:hover { border-color: rgba(198,164,63,0.3); transform: translateY(-1px); }
.lynk-lead-card .lead-workshop { font-size: 13px; font-weight: 600; color: var(--lynk-offwhite); }
.lynk-lead-card .lead-product { font-size: 12px; color: rgba(248,245,238,0.5); margin-top: 3px; }
.lynk-lead-card .lead-value { font-size: 13px; font-weight: 700; color: var(--lynk-gold); margin-top: 6px; }

/* Chat Panel */
.lynk-chat-panel { display: flex; flex-direction: column; height: 500px; background: #2a2a2a; border-radius: 12px; border: 1px solid rgba(198,164,63,0.1); }
.lynk-chat-header { padding: 12px 16px; border-bottom: 1px solid rgba(198,164,63,0.08); display: flex; align-items: center; justify-content: space-between; }
.lynk-chat-messages { flex: 1; overflow-y: auto; padding: 16px; }
.lynk-chat-input { padding: 12px 16px; border-top: 1px solid rgba(198,164,63,0.08); display: flex; gap: 8px; align-items: center; }
.lynk-chat-input input { flex: 1; }
.lynk-chat-action-card { background: linear-gradient(135deg, rgba(198,164,63,0.08), rgba(45,90,59,0.08)); border: 1px solid rgba(198,164,63,0.2); border-radius: 10px; padding: 12px; margin: 8px 0; }

/* Wizard Steps */
.lynk-wizard-steps { display: flex; gap: 0; margin-bottom: 24px; }
.lynk-wizard-step { flex: 1; text-align: center; padding: 12px 8px; position: relative; }
.lynk-wizard-step .step-num { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; margin-bottom: 6px; background: #3a3a3a; color: rgba(248,245,238,0.4); border: 2px solid rgba(198,164,63,0.15); }
.lynk-wizard-step.active .step-num { background: var(--lynk-gold); color: var(--lynk-charcoal); border-color: var(--lynk-gold); }
.lynk-wizard-step.completed .step-num { background: var(--lynk-green); color: var(--lynk-offwhite); border-color: var(--lynk-green); }
.lynk-wizard-step .step-label { font-size: 11px; color: rgba(248,245,238,0.4); }
.lynk-wizard-step.active .step-label { color: var(--lynk-gold); }
.lynk-wizard-step.completed .step-label { color: var(--lynk-offwhite); }
.lynk-wizard-step::after { content: ''; position: absolute; top: 24px; right: -50%; width: 100%; height: 2px; background: rgba(198,164,63,0.15); z-index: 0; }
.lynk-wizard-step:last-child::after { display: none; }
.lynk-wizard-step.completed::after { background: var(--lynk-green); }

/* Upload Zone */
.lynk-upload-zone { border: 2px dashed rgba(198,164,63,0.3); border-radius: 12px; padding: 40px; text-align: center; cursor: pointer; transition: all 0.2s; background: rgba(198,164,63,0.03); }
.lynk-upload-zone:hover { border-color: var(--lynk-gold); background: rgba(198,164,63,0.06); }

/* AI Analysis Animation */
.lynk-ai-pulse { animation: aiPulse 2s ease-in-out infinite; }
@keyframes aiPulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

/* Product Image Placeholder */
.lynk-product-img-mock { width: 100%; height: 140px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }

/* Finance Stats */
.lynk-finance-stat { text-align: center; padding: 16px; }
.lynk-finance-stat .stat-value { font-size: 24px; font-weight: 700; }
.lynk-finance-stat .stat-label { font-size: 12px; color: rgba(248,245,238,0.5); margin-top: 4px; }

/* Delivery Timeline */
.lynk-timeline { position: relative; padding-left: 24px; }
.lynk-timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: rgba(198,164,63,0.15); }
.lynk-timeline-item { position: relative; padding: 8px 0 16px 16px; }
.lynk-timeline-item::before { content: ''; position: absolute; left: -20px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: #3a3a3a; border: 2px solid rgba(198,164,63,0.3); }
.lynk-timeline-item.completed::before { background: var(--lynk-green); border-color: var(--lynk-green); }
.lynk-timeline-item.current::before { background: var(--lynk-gold); border-color: var(--lynk-gold); box-shadow: 0 0 8px rgba(198,164,63,0.4); }

/* Scrollable container */
.lynk-scroll-x { overflow-x: auto; }
.lynk-scroll-x::-webkit-scrollbar { height: 4px; }
