/* ============================================================
   SHIV SHAKTI ENTERPRISES — EXTENSIONS CSS
   Additional components: Product Registration, Warranty,
   Support Tickets, Vendor Panel
   Extends style.css — DO NOT override base variables
   ============================================================ */

/* ── CUSTOMER DASH SIDEBAR ADDITIONS ─────────────────────── */
.dash-nav-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 14px 20px 4px;
}

/* ── STATUS BADGES (extended) ─────────────────────────────── */
.badge-active     { background: #D4EDDA; color: #155724; border: 1px solid #C3E6CB; }
.badge-expiring   { background: #FFF3CD; color: #856404; border: 1px solid #FFEEBA; }
.badge-expired    { background: #F8D7DA; color: #721C24; border: 1px solid #F5C6CB; }
.badge-open       { background: #D1ECF1; color: #0C5460; border: 1px solid #BEE5EB; }
.badge-progress   { background: #FFF3CD; color: #856404; border: 1px solid #FFEEBA; }
.badge-resolved   { background: #D4EDDA; color: #155724; border: 1px solid #C3E6CB; }
.badge-closed     { background: var(--surface); color: var(--text-muted); border: 1px solid var(--border); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.73rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  white-space: nowrap;
}

/* ── WARRANTY PROGRESS BAR ────────────────────────────────── */
.warranty-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition);
}
.warranty-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.warranty-progress-track {
  height: 8px;
  background: var(--surface);
  border-radius: 99px;
  overflow: hidden;
  margin: 12px 0 6px;
}
.warranty-progress-bar {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s ease;
}
.warranty-progress-bar.active   { background: linear-gradient(90deg, #28a745, #20c997); }
.warranty-progress-bar.expiring { background: linear-gradient(90deg, #ffc107, #fd7e14); }
.warranty-progress-bar.expired  { background: linear-gradient(90deg, #dc3545, #c82333); }

.warranty-dates {
  display: flex;
  justify-content: space-between;
  font-size: 0.73rem;
  color: var(--text-muted);
}

/* ── PRODUCT REGISTRATION ─────────────────────────────────── */
.reg-step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
}

.reg-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
}

.reg-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: calc(50% + 16px);
  right: calc(-50% + 16px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.reg-step.done:not(:last-child)::after { background: var(--primary); }

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  z-index: 1;
  transition: all var(--transition);
}

.reg-step.active .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(181,21,27,0.15);
}

.reg-step.done .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.step-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
}
.reg-step.active .step-label { color: var(--primary); font-weight: 600; }

/* Searchable select wrapper */
.select-search-wrap {
  position: relative;
}
.select-search-wrap input {
  cursor: pointer;
}
.select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #fff;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}
.select-dropdown.open { display: block; }
.select-option {
  padding: 9px 14px;
  font-size: 0.86rem;
  cursor: pointer;
  color: var(--text-body);
  transition: background var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.select-option:hover, .select-option.selected {
  background: rgba(181,21,27,0.06);
  color: var(--primary);
}

/* Dynamic attributes row */
.attr-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}
.attr-remove-btn {
  width: 36px;
  height: 42px;
  border: 1px solid var(--border-dark);
  background: #fff;
  border-radius: var(--radius-sm);
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.attr-remove-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Multi-product table */
.product-reg-table {
  width: 100%;
  border-collapse: collapse;
}
.product-reg-table thead th {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 11px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  white-space: nowrap;
}
.product-reg-table thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.product-reg-table thead th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }

.product-reg-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.product-reg-table tbody tr:hover { background: var(--surface); }
.product-reg-table tbody td {
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text-body);
  vertical-align: middle;
}
.product-reg-table tbody td input,
.product-reg-table tbody td select {
  min-width: 120px;
  padding: 7px 10px;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.83rem;
  color: var(--text-dark);
  background: #fff;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
.product-reg-table tbody td input:focus,
.product-reg-table tbody td select:focus {
  border-color: var(--primary);
}

.row-remove-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  background: #fff;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all var(--transition);
  flex-shrink: 0;
}
.row-remove-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── SUPPORT / TICKETS ────────────────────────────────────── */
.ticket-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.ticket-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  color: inherit;
}

.ticket-id {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 2px;
}

.ticket-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(181,21,27,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
}

/* Chat / Conversation Thread */
.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius-md);
  max-height: 440px;
  overflow-y: auto;
}

.chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.chat-msg.outgoing { flex-direction: row-reverse; }

.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}
.chat-msg.incoming .chat-avatar { background: var(--primary); color: #fff; }
.chat-msg.outgoing .chat-avatar { background: var(--gold); color: #fff; }

.chat-bubble {
  max-width: 72%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.87rem;
  line-height: 1.6;
}
.chat-msg.incoming .chat-bubble {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
}
.chat-msg.outgoing .chat-bubble {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md) 0 var(--radius-md) var(--radius-md);
}
.chat-time {
  font-size: 0.68rem;
  color: var(--text-light);
  margin-top: 3px;
  display: block;
}
.chat-msg.outgoing .chat-time { text-align: right; color: rgba(255,255,255,0.6); }

.chat-reply-box {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-top: 12px;
}
.chat-reply-box textarea {
  flex: 1;
  border: none;
  resize: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-dark);
  outline: none;
  min-height: 60px;
  background: transparent;
  line-height: 1.6;
}
.chat-reply-box textarea::placeholder { color: var(--text-light); }

/* Uploaded image preview */
.upload-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.upload-preview-item {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  position: relative;
}
.upload-preview-item img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.upload-preview-item .remove-img {
  position: absolute;
  top: 2px; right: 2px;
  width: 18px; height: 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  cursor: pointer;
}

.file-drop-zone {
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--surface);
}
.file-drop-zone:hover,
.file-drop-zone.dragover {
  border-color: var(--primary);
  background: rgba(181,21,27,0.03);
}
.file-drop-zone i { font-size: 2rem; color: var(--text-light); display: block; margin-bottom: 6px; }
.file-drop-zone span { font-size: 0.84rem; color: var(--text-muted); }
.file-drop-zone strong { color: var(--primary); }

/* ── QR REDIRECT / LOADER ─────────────────────────────────── */
.redirect-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6b 60%, var(--primary-dark) 100%);
  padding: 24px;
  text-align: center;
}

.redirect-logo {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 24px;
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.2);
}

.redirect-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 24px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.redirect-msg {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin-top: 12px;
}
.redirect-sub {
  color: rgba(255,255,255,0.5);
  font-size: 0.83rem;
  margin-top: 6px;
}

/* ── VIDEO PAGES (extended) ───────────────────────────────── */
.video-search-bar {
  position: relative;
  max-width: 420px;
}
.video-search-bar input {
  width: 100%;
  padding: 10px 44px 10px 16px;
  border: 1.5px solid var(--border-dark);
  border-radius: 99px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  background: #fff;
  transition: border-color var(--transition);
}
.video-search-bar input:focus { border-color: var(--primary); }
.video-search-bar i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.view-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 99px;
}

/* ── VENDOR PANEL ─────────────────────────────────────────── */
.vendor-layout {
  min-height: 100vh;
  display: flex;
  background: #F0F2F5;
}

/* Vendor Sidebar */
.vendor-sidebar {
  width: 260px;
  background: var(--navy);
  min-height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 50;
  transition: transform 0.35s ease;
}

@media (max-width: 991px) {
  .vendor-sidebar {
    position: fixed;
    top: 0; left: 0;
    height: 100%;
    transform: translateX(-100%);
    z-index: 9999;
  }
  .vendor-sidebar.open { transform: translateX(0); }
  .vendor-layout { flex-direction: column; }
  .vendor-main   { width: 100% !important; }
}

.vendor-sidebar-logo {
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.vendor-logo-emblem {
  width: 38px;
  height: 38px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.vendor-logo-text .brand {
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: #fff;
  font-weight: 600;
  display: block;
  line-height: 1.2;
}
.vendor-logo-text .tag {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vendor-nav { flex: 1; padding: 12px 0; overflow-y: auto; }

.vendor-nav-section {
  padding: 12px 22px 4px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.vendor-nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 22px;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.vendor-nav-link i {
  width: 18px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.vendor-nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
}
.vendor-nav-link.active {
  color: #fff;
  background: rgba(181,21,27,0.25);
  border-color: var(--primary);
}
.vendor-nav-link .nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
}

.vendor-sidebar-footer {
  padding: 16px 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.vendor-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vendor-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.vendor-user-name { font-size: 0.83rem; color: #fff; font-weight: 500; display: block; line-height: 1.2; }
.vendor-user-role { font-size: 0.7rem; color: rgba(255,255,255,0.45); }

/* Vendor main content area */
.vendor-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vendor-topbar {
  background: #fff;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 40;
  gap: 16px;
}

.vendor-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.vendor-page-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.vendor-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vendor-sidebar-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-body);
  font-size: 1.1rem;
  transition: all var(--transition);
}
.vendor-sidebar-toggle:hover { background: var(--surface); }
@media (max-width: 991px) { .vendor-sidebar-toggle { display: flex; } }

.vendor-content { padding: 24px 28px; flex: 1; }
@media (max-width: 767px) { .vendor-content { padding: 16px; } }

/* Vendor Stat Cards */
.vendor-stat-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--transition);
}
.vendor-stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.vendor-stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vendor-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.vendor-stat-trend {
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}
.vendor-stat-trend.up   { color: #28a745; }
.vendor-stat-trend.down { color: var(--primary); }

.vendor-stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
}
.vendor-stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* Vendor Data Table */
.vendor-table-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.vendor-table-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.vendor-table-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.vendor-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.vendor-table thead th {
  background: var(--surface);
  padding: 11px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.vendor-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.vendor-table tbody tr:last-child { border-bottom: none; }
.vendor-table tbody tr:hover { background: rgba(250,247,244,0.7); }
.vendor-table tbody td {
  padding: 12px 16px;
  color: var(--text-body);
  vertical-align: middle;
}

/* Chart placeholder */
.chart-container {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.chart-placeholder {
  height: 220px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 16px 12px 0;
  gap: 8px;
  overflow: hidden;
  position: relative;
}

.chart-placeholder::before {
  content: 'Chart — Live data will render here';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.78rem;
  color: var(--text-light);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.chart-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--primary) 0%, rgba(181,21,27,0.4) 100%);
  min-width: 12px;
  transition: height 0.6s ease;
  opacity: 0.7;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  padding: 6px 12px 0;
  gap: 8px;
}
.chart-labels span {
  flex: 1;
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Vendor Login Page */
.vendor-login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, #16213e 60%, #0f3460 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.vendor-login-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 960px;
  width: 100%;
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.4);
}
@media (max-width: 767px) {
  .vendor-login-split { grid-template-columns: 1fr; }
  .vendor-login-brand { display: none; }
}

.vendor-login-brand {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--navy) 100%);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.vendor-login-brand::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.vendor-login-brand::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.vendor-login-form-area { padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 767px) { .vendor-login-form-area { padding: 32px 24px; } }

/* Analytics metric cards */
.metric-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.metric-card .metric-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 4px;
}
.metric-card .metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.metric-card .metric-change {
  font-size: 0.73rem;
  font-weight: 600;
  margin-top: 4px;
}
.metric-change.up { color: #28a745; }
.metric-change.down { color: var(--primary); }

/* Linked product row */
.linked-product-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.linked-product-row:last-child { border-bottom: none; }
.linked-product-row:hover { background: var(--surface); }
.linked-product-row img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--surface);
}

/* Inquiry row */
.inquiry-row {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background var(--transition);
}
.inquiry-row:last-child { border-bottom: none; }
.inquiry-row:hover { background: var(--surface); }
.inquiry-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* Expiry alert list item */
.expiry-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  border: 1px solid;
  transition: all var(--transition);
}
.expiry-item.expiring {
  background: #FFFBF0;
  border-color: #FFEEBA;
}
.expiry-item.expired {
  background: #FFF5F5;
  border-color: #F5C6CB;
}
.expiry-item:hover { transform: translateX(4px); }

.expiry-days-badge {
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.expiry-item.expiring .expiry-days-badge { background: #FFC107; color: #fff; }
.expiry-item.expired  .expiry-days-badge { background: var(--primary); color: #fff; }
