/* ============================================================
   WEIDE MACHINERY — BUYER PORTAL  v3
   Professional B2B dashboard design
   Navy #0B2E5F  ·  Amber #F0A500  ·  Charcoal #1C2331
   ============================================================ */

/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --b-navy:      #0B2E5F;
  --b-navy-mid:  #1A4A8A;
  --b-navy-lt:   #E8EFF8;
  --b-amber:     #F0A500;
  --b-amber-lt:  #FFF3CD;
  --b-charcoal:  #1C2331;
  --b-bg:        #F0F4F9;
  --b-card:      #FFFFFF;
  --b-border:    #DDE4EE;
  --b-muted:     #6B7280;
  --b-radius:    10px;
  --b-radius-lg: 14px;
  --b-shadow:    0 1px 8px rgba(11,46,95,.07);
  --b-shadow-md: 0 4px 20px rgba(11,46,95,.10);
  --b-sidebar-w: 248px;
}

/* ─── AUTH PAGES ─────────────────────────────────────────────── */
.buyer-auth-page {
  background: linear-gradient(135deg, #0B2E5F 0%, #1A4A8A 50%, #0f3d78 100%);
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.buyer-auth-wrap { width: 100%; max-width: 500px; }
.buyer-auth-box {
  background: #fff;
  border-radius: var(--b-radius-lg);
  padding: 48px 44px;
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
}
.buyer-auth-logo {
  display: block; font-size: 18px; font-weight: 800;
  color: var(--b-navy); text-decoration: none;
  margin-bottom: 28px; text-align: center; letter-spacing: -.3px;
}
.buyer-auth-logo span { color: var(--b-amber); }
.buyer-auth-logo:hover { text-decoration: none; }
.buyer-auth-box h1 {
  font-size: 24px; font-weight: 800; color: var(--b-navy);
  text-align: center; margin-bottom: 6px;
}
.buyer-auth-sub {
  text-align: center; font-size: 14px;
  color: var(--b-muted); margin-bottom: 28px;
}
.buyer-auth-box .form-group {
  display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px;
}
.buyer-auth-box label { font-size: 13px; font-weight: 600; color: #374151; }
.buyer-auth-box input {
  padding: 11px 14px; border: 1.5px solid var(--b-border);
  border-radius: 8px; font-size: 14px; font-family: inherit;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.buyer-auth-box input:focus {
  border-color: var(--b-navy-mid);
  box-shadow: 0 0 0 3px rgba(26,74,138,.12);
}
.buyer-auth-switch {
  text-align: center; font-size: 13px;
  color: var(--b-muted); margin-top: 20px;
}
.buyer-auth-switch a { color: var(--b-navy-mid); font-weight: 600; }
.btn-block { width: 100%; justify-content: center; margin-top: 8px; }

/* ─── PORTAL SHELL ───────────────────────────────────────────── */
.buyer-portal { background: var(--b-bg); }
.buyer-layout {
  display: flex; flex: 1;
  min-height: calc(100vh - 68px - 80px);
  align-items: stretch;
}

/* ─── SIDEBAR ────────────────────────────────────────────────── */
.buyer-sidebar {
  width: var(--b-sidebar-w);
  background: var(--b-navy);
  flex-shrink: 0;
  display: flex; flex-direction: column;
  position: sticky; top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;
}

/* Avatar block */
.buyer-sidebar-user {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.buyer-avatar-ring {
  position: relative; width: 56px; height: 56px;
  margin: 0 auto 12px;
}
.buyer-avatar-ring::before {
  content: '';
  position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(var(--b-amber) 0%, rgba(255,255,255,.15) 60%);
}
.buyer-avatar-lg {
  position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--b-navy-mid);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
  border: 2px solid var(--b-navy);
}
.buyer-sidebar-name {
  font-size: 14px; font-weight: 700; color: #fff;
  text-align: center; margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.buyer-sidebar-label {
  font-size: 11px; color: rgba(255,255,255,.45);
  text-align: center; text-transform: uppercase; letter-spacing: .5px;
}
.buyer-sidebar-email {
  font-size: 11px; color: rgba(255,255,255,.35);
  text-align: center; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Nav links */
.buyer-sidebar nav { padding: 12px 0; flex: 1; }
.buyer-sidebar-section-label {
  font-size: 9px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(255,255,255,.3);
  padding: 10px 20px 4px;
}
.buyer-sidebar nav ul { list-style: none; padding: 0; margin: 0; }
.buyer-sidebar nav ul li a {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 20px;
  font-size: 13.5px; font-weight: 500;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all .15s ease;
}
.buyer-sidebar nav ul li a:hover {
  background: rgba(255,255,255,.07);
  color: #fff; text-decoration: none;
}
.buyer-sidebar nav ul li a.active {
  background: rgba(255,255,255,.1);
  color: #fff; border-left-color: var(--b-amber);
  font-weight: 600;
}
.buyer-sidebar nav ul li a .nav-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
  transition: background .15s;
}
.buyer-sidebar nav ul li a:hover .nav-icon,
.buyer-sidebar nav ul li a.active .nav-icon {
  background: rgba(240,165,0,.2);
}
.nav-badge {
  margin-left: auto;
  background: #dc2626; color: #fff;
  font-size: 9px; font-weight: 800;
  padding: 1px 6px; border-radius: 10px;
}
.buyer-nav-sep {
  height: 1px; background: rgba(255,255,255,.07);
  margin: 6px 16px;
}
.buyer-sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.buyer-sidebar-footer a {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,.4);
  text-decoration: none; padding: 6px 0;
  transition: color .15s;
}
.buyer-sidebar-footer a:hover { color: rgba(255,255,255,.7); text-decoration: none; }

/* ─── TOP NAV buyer pill ─────────────────────────────────────── */
.buyer-nav-right {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.buyer-nav-user {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.85);
  text-decoration: none; padding: 5px 10px;
  border-radius: 6px; transition: background .15s;
}
.buyer-nav-user:hover { background: rgba(255,255,255,.12); text-decoration: none; color: #fff; }
.buyer-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--b-amber); color: var(--b-charcoal);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
}
.btn-sm-nav { padding: 6px 14px; font-size: 13px; }

/* ─── MAIN CONTENT ───────────────────────────────────────────── */
.buyer-main {
  flex: 1; min-width: 0;
  padding: 28px 32px;
  overflow-y: auto;
}

/* ─── DASHBOARD HERO BANNER ──────────────────────────────────── */
.dash-hero {
  background: linear-gradient(120deg, var(--b-navy) 0%, var(--b-navy-mid) 100%);
  border-radius: var(--b-radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 16px;
  position: relative; overflow: hidden;
}
.dash-hero::after {
  content: '';
  position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,.04); pointer-events: none;
}
.dash-hero-left h1 {
  font-size: 22px; font-weight: 800; color: #fff;
  margin-bottom: 4px; line-height: 1.2;
}
.dash-hero-left p { font-size: 14px; color: rgba(255,255,255,.65); }
.dash-hero-date {
  font-size: 12px; color: rgba(255,255,255,.45);
  margin-top: 10px; display: flex; align-items: center; gap: 6px;
}
.dash-hero-date::before { content: '📅'; font-size: 12px; }
.dash-hero-right { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── STAT CARDS ─────────────────────────────────────────────── */
.buyer-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.bstat {
  background: var(--b-card);
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius);
  padding: 20px;
  display: flex; flex-direction: column;
  gap: 14px;
  box-shadow: var(--b-shadow);
  transition: box-shadow .15s, transform .15s;
  text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
}
.bstat:hover {
  box-shadow: var(--b-shadow-md); transform: translateY(-2px); text-decoration: none;
}
.bstat-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.bstat-top { display: flex; align-items: center; justify-content: space-between; }
.bstat-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.bstat-icon-blue   { background: #EFF6FF; }
.bstat-icon-amber  { background: #FFFBEB; }
.bstat-icon-green  { background: #F0FDF4; }
.bstat-icon-purple { background: #F5F3FF; }
.bstat-icon-navy   { background: var(--b-navy-lt); }
.bstat-change {
  font-size: 11px; font-weight: 600; padding: 2px 7px;
  border-radius: 8px; white-space: nowrap;
}
.bstat-change-up   { background: #DCFCE7; color: #166534; }
.bstat-change-warn { background: #FEF9C3; color: #854D0E; }
.bstat-change-neu  { background: #F3F4F6; color: #6B7280; }
.bstat-num {
  font-size: 30px; font-weight: 800; color: var(--b-navy);
  line-height: 1; margin-bottom: 2px;
}
.bstat-label { font-size: 12px; font-weight: 600; color: var(--b-muted); }

/* CTA stat card */
.bstat-cta {
  background: var(--b-amber);
  border-color: var(--b-amber);
  cursor: pointer;
}
.bstat-cta:hover { background: #e09400; border-color: #e09400; box-shadow: 0 4px 16px rgba(240,165,0,.3); }
.bstat-cta .bstat-num,
.bstat-cta .bstat-label { color: var(--b-charcoal); }
.bstat-cta .bstat-icon { background: rgba(0,0,0,.1); }

/* ─── QUICK ACTIONS BAR ──────────────────────────────────────── */
.dash-quick-actions {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px;
}
.qa-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  background: var(--b-card);
  border: 1px solid var(--b-border);
  color: var(--b-navy); text-decoration: none;
  box-shadow: var(--b-shadow);
  transition: all .15s;
}
.qa-btn:hover {
  background: var(--b-navy); color: #fff;
  border-color: var(--b-navy); text-decoration: none;
  transform: translateY(-1px); box-shadow: var(--b-shadow-md);
}
.qa-btn .qa-icon {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--b-navy-lt);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
  transition: background .15s;
}
.qa-btn:hover .qa-icon { background: rgba(255,255,255,.15); }

/* ─── SECTION LAYOUT ─────────────────────────────────────────── */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}
.buyer-section { margin-bottom: 24px; }
.buyer-section-head {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 14px;
}
.buyer-section-head h2 {
  font-size: 15px; font-weight: 700; color: var(--b-navy);
  display: flex; align-items: center; gap: 8px;
}
.buyer-section-head h2::before {
  content: ''; width: 3px; height: 16px;
  background: var(--b-amber); border-radius: 2px; flex-shrink: 0;
}
.buyer-section-head a { font-size: 12px; color: var(--b-navy-mid); font-weight: 500; }
.buyer-section-head a:hover { text-decoration: underline; }

/* ─── QUOTE TIMELINE TABLE ───────────────────────────────────── */
.buyer-table-wrap {
  background: var(--b-card);
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius);
  overflow: hidden;
  box-shadow: var(--b-shadow);
}
.buyer-table {
  width: 100%; border-collapse: collapse;
}
.buyer-table thead tr { background: #F8FAFC; }
.buyer-table th {
  padding: 10px 14px;
  border-bottom: 2px solid var(--b-border);
  text-align: left; font-size: 10.5px;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--b-muted);
  white-space: nowrap;
}
.buyer-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #F5F7FA;
  font-size: 13px; color: #1E2430;
  vertical-align: middle;
}
.buyer-table tbody tr:last-child td { border-bottom: none; }
.buyer-table tbody tr:hover { background: #FAFBFD; }
.buyer-table .td-cat { font-weight: 600; color: var(--b-navy); }

/* ─── STATUS BADGES ──────────────────────────────────────────── */
.buyer-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .3px;
}
.buyer-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.buyer-status-pending { background: #FEF9C3; color: #854D0E; }
.buyer-status-pending::before { background: #F59E0B; }
.buyer-status-replied { background: #DBEAFE; color: #1E40AF; }
.buyer-status-replied::before { background: #3B82F6; }
.buyer-status-closed  { background: #D1FAE5; color: #065F46; }
.buyer-status-closed::before  { background: #10B981; }

/* ─── SAVED PRODUCTS MINI GRID ───────────────────────────────── */
.dash-saved-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.dash-saved-card {
  background: var(--b-card);
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius);
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow .15s, transform .15s;
  display: flex; flex-direction: column;
}
.dash-saved-card:hover { box-shadow: var(--b-shadow-md); transform: translateY(-2px); text-decoration: none; }
.dash-saved-img {
  width: 100%; height: 80px; object-fit: cover;
  background: var(--b-navy-lt);
}
.dash-saved-placeholder {
  width: 100%; height: 80px;
  background: linear-gradient(135deg, var(--b-navy-lt), #d4e3f7);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.dash-saved-body { padding: 8px 10px; }
.dash-saved-name {
  font-size: 11.5px; font-weight: 600; color: var(--b-navy);
  line-height: 1.3; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* ─── RIGHT COLUMN CARDS ─────────────────────────────────────── */
.dash-side-card {
  background: var(--b-card);
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius);
  overflow: hidden;
  box-shadow: var(--b-shadow);
  margin-bottom: 20px;
}
.dash-side-card-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--b-border);
  font-size: 13px; font-weight: 700; color: var(--b-navy);
  display: flex; align-items: center; gap: 8px;
}
.dash-side-card-body { padding: 16px 18px; }

/* Account completion bar */
.completion-wrap { margin-bottom: 14px; }
.completion-label {
  display: flex; justify-content: space-between;
  font-size: 12px; font-weight: 600; color: var(--b-navy);
  margin-bottom: 6px;
}
.completion-bar-bg {
  height: 6px; background: var(--b-navy-lt);
  border-radius: 3px; overflow: hidden;
}
.completion-bar-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--b-navy-mid), var(--b-amber));
  transition: width .5s ease;
}
.completion-items { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.completion-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--b-muted);
}
.ci-check {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
}
.ci-check.done  { background: #D1FAE5; color: #065F46; }
.ci-check.todo  { background: #F3F4F6; color: #9CA3AF; border: 1px solid #E5E7EB; }

/* Support info card */
.support-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--b-border);
  font-size: 13px;
}
.support-item:last-child { border-bottom: none; padding-bottom: 0; }
.support-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--b-navy-lt); color: var(--b-navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.support-label { font-size: 11px; color: var(--b-muted); }
.support-value { font-weight: 600; color: var(--b-navy); font-size: 13px; }

/* ─── EMPTY / ONBOARDING STATE ───────────────────────────────── */
.buyer-onboarding {
  background: var(--b-card);
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius-lg);
  padding: 48px 32px;
  text-align: center; box-shadow: var(--b-shadow);
}
.buyer-onboarding .ob-icon { font-size: 44px; margin-bottom: 16px; opacity: .7; }
.buyer-onboarding h2 { font-size: 20px; font-weight: 800; color: var(--b-navy); margin-bottom: 8px; }
.buyer-onboarding p  { font-size: 14px; color: var(--b-muted); max-width: 420px; margin: 0 auto 24px; line-height: 1.7; }
.ob-steps {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 28px;
}
.ob-step {
  background: var(--b-navy-lt); border-radius: 8px;
  padding: 12px 16px; text-align: center; min-width: 120px;
}
.ob-step-num {
  font-size: 22px; font-weight: 800; color: var(--b-amber);
  display: block; line-height: 1; margin-bottom: 4px;
}
.ob-step-text { font-size: 12px; font-weight: 600; color: var(--b-navy); }

/* ─── OTHER BUYER PAGES ──────────────────────────────────────── */
.buyer-page-header {
  display: flex; align-items: baseline;
  justify-content: space-between; flex-wrap: wrap;
  gap: 10px; margin-bottom: 24px;
}
.buyer-page-header h1 { font-size: 22px; font-weight: 800; color: var(--b-navy); }
.buyer-page-header p  { font-size: 14px; color: var(--b-muted); margin-top: 2px; }

.buyer-back { display: inline-block; font-size: 13px; color: var(--b-navy-mid); margin-bottom: 16px; }
.buyer-link { font-size: 13px; color: var(--b-navy-mid); margin-right: 10px; }
.buyer-link:hover { text-decoration: underline; }

/* detail table */
.buyer-detail-table { width: 100%; max-width: 640px; border-collapse: collapse; background: var(--b-card); border: 1px solid var(--b-border); border-radius: var(--b-radius); overflow: hidden; box-shadow: var(--b-shadow); }
.buyer-detail-table th { width: 170px; padding: 12px 16px; background: #F8FAFC; border-bottom: 1px solid var(--b-border); font-size: 13px; font-weight: 600; color: var(--b-navy); vertical-align: top; text-align: left; }
.buyer-detail-table td { padding: 12px 16px; border-bottom: 1px solid #F5F7FA; font-size: 13px; color: #1E2430; white-space: normal; word-break: break-word; }
.buyer-detail-table tbody tr:last-child th, .buyer-detail-table tbody tr:last-child td { border-bottom: none; }
.buyer-reply { background: #F0FDF4; color: #166534; }

/* compare */
.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; background: var(--b-card); border: 1px solid var(--b-border); border-radius: var(--b-radius); overflow: hidden; }
.compare-table th { padding: 12px 14px; background: #F8FAFC; border-bottom: 2px solid var(--b-border); font-size: 13px; font-weight: 600; color: var(--b-navy); text-align: left; min-width: 180px; }
.compare-table th:first-child { min-width: 120px; }
.compare-table td { padding: 11px 14px; border-bottom: 1px solid #F5F7FA; border-right: 1px solid #F5F7FA; font-size: 13px; color: #374151; vertical-align: top; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-label { font-weight: 600; color: var(--b-navy); background: #F8FAFC; white-space: nowrap; }

/* profile tabs */
.buyer-tabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 2px solid var(--b-border); }
.buyer-tab { padding: 10px 18px; font-size: 14px; font-weight: 500; color: #374151; border-bottom: 2px solid transparent; margin-bottom: -2px; text-decoration: none; transition: color .15s, border-color .15s; }
.buyer-tab:hover { color: var(--b-navy-mid); text-decoration: none; }
.buyer-tab.active { color: var(--b-navy-mid); border-bottom-color: var(--b-navy-mid); font-weight: 600; }
.buyer-tab-danger { color: #DC2626; }
.buyer-tab-danger:hover { color: #991B1B; }

/* buyer form */
.buyer-form { max-width: 640px; display: flex; flex-direction: column; gap: 16px; }
.buyer-form .form-group { display: flex; flex-direction: column; gap: 5px; }
.buyer-form label { font-size: 13px; font-weight: 600; color: #374151; }
.buyer-form input, .buyer-form textarea { padding: 10px 13px; border: 1.5px solid var(--b-border); border-radius: 8px; font-size: 14px; font-family: inherit; outline: none; transition: border-color .15s, box-shadow .15s; }
.buyer-form input:focus, .buyer-form textarea:focus { border-color: var(--b-navy-mid); box-shadow: 0 0 0 3px rgba(26,74,138,.1); }
.buyer-form input:disabled { background: #F9FAFB; color: #9AA3AF; cursor: not-allowed; }
.buyer-checkbox { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #374151; cursor: pointer; }
.buyer-checkbox input { width: 16px; height: 16px; accent-color: var(--b-navy-mid); }

/* delete section */
.buyer-delete-section { background: var(--b-card); border: 1px solid #FECACA; border-radius: var(--b-radius); padding: 24px; max-width: 520px; }
.buyer-delete-section h2 { color: #DC2626; font-size: 16px; margin-bottom: 10px; }
.buyer-delete-section p  { color: #555; font-size: 14px; margin-bottom: 16px; }

/* saved cards */
.saved-card-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.buyer-remove { margin-left: auto; color: #DC2626; font-size: 16px; cursor: pointer; text-decoration: none; line-height: 1; padding: 2px 4px; }
.buyer-remove:hover { color: #991B1B; text-decoration: none; }

/* save buttons on product page */
.save-btn { border-color: var(--b-border); color: var(--b-muted); }
.save-btn:hover { border-color: var(--b-navy-mid); color: var(--b-navy-mid); background: var(--b-navy-lt); }
.saved-btn { border-color: var(--b-navy-mid); color: var(--b-navy-mid); background: var(--b-navy-lt); }

/* empty states */
.buyer-empty-start { background: var(--b-card); border: 1px dashed var(--b-border); border-radius: var(--b-radius-lg); padding: 48px 32px; text-align: center; }
.buyer-empty-start h2 { font-size: 18px; color: var(--b-navy); margin-bottom: 8px; }
.buyer-empty-start p  { font-size: 14px; color: var(--b-muted); max-width: 460px; margin: 0 auto; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-saved-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .buyer-layout { flex-direction: column; }
  .buyer-sidebar { width: 100%; height: auto; position: static; border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .buyer-sidebar-user { padding: 14px 16px; flex-direction: row; text-align: left; }
  .buyer-avatar-ring { width: 40px; height: 40px; margin: 0; }
  .buyer-avatar-lg   { width: 40px; height: 40px; font-size: 15px; }
  .buyer-sidebar-name,.buyer-sidebar-label,.buyer-sidebar-email { text-align: left; }
  .buyer-sidebar nav ul { display: flex; flex-wrap: wrap; padding: 6px 10px; gap: 2px; }
  .buyer-sidebar nav ul li a { border-left: none; border-bottom: 2px solid transparent; padding: 7px 10px; border-radius: 6px; font-size: 12px; }
  .buyer-sidebar nav ul li a .nav-icon { width: 24px; height: 24px; font-size: 12px; }
  .buyer-sidebar nav ul li a:hover, .buyer-sidebar nav ul li a.active { border-left-color: transparent; border-bottom-color: var(--b-amber); }
  .buyer-main { padding: 16px; }
  .dash-hero { padding: 20px; }
  .dash-hero-left h1 { font-size: 18px; }
  .buyer-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-saved-grid { grid-template-columns: repeat(2, 1fr); }
  .buyer-auth-box { padding: 28px 22px; }
  .dash-quick-actions { gap: 8px; }
  .qa-btn { padding: 8px 12px; font-size: 12px; }
  .buyer-sidebar-footer { display: none; }
}
@media (max-width: 480px) {
  .buyer-stats { grid-template-columns: 1fr 1fr; }
  .form-row { flex-direction: column; }
  .dash-saved-grid { grid-template-columns: 1fr 1fr; }
}
