/*
 * Farmly — agricultural marketplace theme
 * Dark + gold aesthetic ported from the Hugo site (farmlytar/farmly).
 */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;900&family=Bebas+Neue&display=swap");

:root {
  --gold: #D4A017;
  --gold-dark: #8B6914;
  --gold-light: #F5D67B;
  --dark: #1a1a1a;
  --dark-soft: #2a2a2a;
  --green-deep: #2E7D32;
  --green: #4CAF50;
  --green-light: #8BC34A;
  --cream: #FEFCF3;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-400: #999;
  --gray-600: #666;
  --white: #ffffff;
  --radius: 12px;
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.3);
}

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

html, body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--dark);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body {
  position: relative;
  background:
    linear-gradient(
      180deg,
      rgba(26, 26, 26, 0.94) 0%,
      rgba(26, 26, 26, 0.88) 40%,
      rgba(26, 26, 26, 0.94) 100%
    ),
    url("/images/wheat-golden.jpg") center top / cover no-repeat fixed,
    var(--dark);
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

img { max-width: 100%; display: block; }

/* ===== Brand logo (farmly + wheat M + arketplace) ===== */
.brand-logo {
  display: inline-flex;
  align-items: baseline;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.5px;
  user-select: none;
}
.brand-logo .b-farmly {
  font-weight: 300;
  color: #fff;
}
.brand-logo .b-m {
  font-weight: 900;
  display: inline-block;
  margin-left: 6px;
  margin-right: -1px;
  background: url("/images/wheat-closeup.jpg") center center / cover no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0.5px rgba(139, 105, 20, 0.4);
  filter: brightness(1.2) saturate(1.4);
}
.brand-logo .b-rest {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
}
.brand-logo--lg { font-size: 40px; }
.brand-logo--md { font-size: 28px; }

/* ===== Flash messages ===== */
.flash {
  max-width: 720px;
  margin: 1rem auto;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
}
.flash--notice {
  background: rgba(76, 175, 80, 0.12);
  color: #a8e0aa;
  border-color: rgba(76, 175, 80, 0.3);
}
.flash--alert {
  background: rgba(212, 90, 90, 0.12);
  color: #f0a3a3;
  border-color: rgba(212, 90, 90, 0.3);
}

/* ===================================================================
 * Auth flow (Devise)
 * =================================================================== */

.auth {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  overflow: hidden;
}

.auth__bg {
  position: absolute;
  inset: 0;
  background: url("/images/wheat-field.jpg") center center / cover no-repeat;
  filter: brightness(0.55) contrast(1.05) saturate(1.1);
  z-index: 0;
}

.auth__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.92) 0%,
    rgba(26, 26, 26, 0.78) 45%,
    rgba(26, 26, 26, 0.55) 100%
  );
  z-index: 1;
}

.auth__shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.auth__pitch { color: #fff; }
.auth__pitch .brand-logo { margin-bottom: 28px; }

.auth__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 160, 23, 0.15);
  border: 1px solid rgba(212, 160, 23, 0.3);
  border-radius: 100px;
  padding: 6px 18px;
  margin-bottom: 20px;
}
.auth__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
.auth__badge span {
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.auth__pitch h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1.2px;
  margin-bottom: 18px;
}
.auth__pitch h1 .accent { color: var(--gold); }
.auth__pitch p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 46ch;
  margin-bottom: 32px;
  line-height: 1.6;
}

.auth__stats {
  display: flex;
  gap: 36px;
  margin-top: 8px;
}
.auth__stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: var(--gold);
  letter-spacing: 1px;
  line-height: 1;
}
.auth__stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 6px;
}

.auth__card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.auth__card h1 {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.auth__lede {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  margin-bottom: 28px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.field input[type="email"],
.field input[type="password"],
.field input[type="text"] {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: rgba(255, 255, 255, 0.3); }
.field input:focus {
  outline: none;
  border-color: rgba(212, 160, 23, 0.5);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}
.field__hint { font-size: 12px; color: rgba(255, 255, 255, 0.4); }

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}
.checkbox input { accent-color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 22px;
  cursor: pointer;
  transition: transform 0.05s, background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--dark);
  width: 100%;
}
.btn--primary:hover {
  box-shadow: 0 6px 20px rgba(245, 214, 123, 0.35);
  color: var(--dark);
}
.btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
}
.btn--ghost:hover {
  background: rgba(212, 160, 23, 0.08);
  border-color: rgba(212, 160, 23, 0.4);
  color: var(--gold);
}

.auth__links {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  text-align: center;
}
.auth__links a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}
.auth__links a:hover { color: var(--gold); }

/* Role picker on signup */
.role-picker { border: none; padding: 0; margin: 8px 0 18px; }
.role-picker legend {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.role-picker__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.role-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 14px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.1s;
}
.role-card:hover {
  border-color: rgba(212, 160, 23, 0.4);
  background: rgba(212, 160, 23, 0.05);
}
.role-card input[type="radio"],
.role-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.role-picker__hint {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.5px;
  margin-left: 6px;
  text-transform: none;
}

/* Vetter application status banner */
.vetter-pending-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin: 12px 0 18px;
  border-radius: 12px;
  background: rgba(212, 160, 23, 0.1);
  border: 1px solid rgba(212, 160, 23, 0.35);
  color: #fff;
}
.vetter-pending-banner strong { display: block; font-size: 14px; margin-bottom: 2px; }
.vetter-pending-banner span { font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.vetter-pending-banner--rejected {
  background: rgba(217, 119, 119, 0.1);
  border-color: rgba(217, 119, 119, 0.35);
}
.role-card:has(input:checked) {
  border-color: var(--gold);
  background: rgba(212, 160, 23, 0.1);
  box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.25);
}
.role-card__title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.role-card__desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.35;
}
@media (max-width: 480px) {
  .role-picker__grid { grid-template-columns: 1fr; }
}

.error-summary {
  background: rgba(212, 90, 90, 0.1);
  border: 1px solid rgba(212, 90, 90, 0.3);
  color: #f0a3a3;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 13px;
}
.error-summary h2 {
  font-size: 13px;
  font-weight: 600;
  color: #f0a3a3;
  margin-bottom: 4px;
}
.error-summary ul { margin: 0; padding-left: 1.1rem; }

@media (max-width: 900px) {
  .auth__shell { grid-template-columns: 1fr; gap: 36px; }
  .auth__pitch h1 { font-size: 36px; }
  .auth__card { padding: 28px; }
}

/* ===================================================================
 * App shell (post-login)
 * =================================================================== */

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 160, 23, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}
.app-header__nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.app-header__user {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  letter-spacing: 0.3px;
}
.app-header form { margin: 0; }

/* ===================================================================
 * Build-your-profile wizard
 * =================================================================== */

.wizard {
  max-width: 880px;
  margin: 40px auto 80px;
  padding: 0 24px;
}

.wizard__head { margin-bottom: 28px; }
.wizard__eyebrow {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 3px;
  margin-bottom: 6px;
}
.wizard__title {
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}
.wizard__subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  margin-bottom: 22px;
  max-width: 64ch;
  line-height: 1.55;
}

.wizard__steps {
  display: flex;
  gap: 6px;
  margin: 18px 0 14px;
  flex-wrap: wrap;
}
.wizard__step {
  flex: 1;
  min-width: 120px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.2s;
}
.wizard__step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.wizard__step.is-active {
  border-color: rgba(212, 160, 23, 0.5);
  background: rgba(212, 160, 23, 0.08);
  color: #fff;
}
.wizard__step.is-active .wizard__step-num {
  background: var(--gold);
  color: var(--dark);
}
.wizard__step.is-done {
  border-color: rgba(76, 175, 80, 0.3);
  color: rgba(255, 255, 255, 0.75);
}
.wizard__step.is-done .wizard__step-num {
  background: var(--green);
  color: #fff;
}

.wizard__progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}
.wizard__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  border-radius: 4px;
  transition: width 0.3s;
}

.wizard__head-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}
.wizard__head-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 8px 14px;
}

.wizard__panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 36px;
  backdrop-filter: blur(12px);
}

.wizard__section {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 26px 0 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.wizard__section:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.wizard-form .field { margin-bottom: 16px; }
.wizard-form textarea,
.wizard-form input[type="email"],
.wizard-form input[type="password"],
.wizard-form input[type="text"],
.wizard-form input[type="url"],
.wizard-form input[type="tel"],
.wizard-form input[type="number"] {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  width: 100%;
  resize: vertical;
}
.wizard-form textarea:focus,
.wizard-form input:focus {
  outline: none;
  border-color: rgba(212, 160, 23, 0.5);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}
.wizard-form input[type="file"] {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  padding: 10px 0;
}
.wizard-form input[type="file"]::file-selector-button {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  cursor: pointer;
  margin-right: 10px;
}
.wizard-form input[type="file"]::file-selector-button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.field__hint--inline {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  text-transform: none;
  letter-spacing: 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.product-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 640px) {
  .product-groups { grid-template-columns: 1fr; }
}
.product-group {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  overflow: hidden;
}
.product-group[open] {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
}
.product-group__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 11px 14px;
  list-style: none;
  user-select: none;
}
.product-group__summary::-webkit-details-marker { display: none; }
.product-group__summary::marker { display: none; content: ""; }
.product-group__summary:hover { background: rgba(255, 255, 255, 0.04); }
.product-group__label {
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  flex: 1;
}
.product-group__count {
  font-size: 11px;
  font-weight: 600;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  background: rgba(212, 160, 23, 0.18);
  color: var(--gold);
}
.product-group__count:empty { display: none; }
.product-group__chevron {
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.product-group[open] .product-group__chevron { transform: rotate(180deg); }
.product-group .chip-grid {
  padding: 4px 14px 14px;
}
.trade-intent-other {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.trade-intent-other__label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  flex-shrink: 0;
}
.trade-intent-other input[type="text"] {
  flex: 1;
  font-size: 13px;
  padding: 8px 12px;
}

/* Multi-select dropdown */
.multiselect { position: relative; }
.multiselect__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.multiselect__trigger:hover { border-color: rgba(255, 255, 255, 0.22); }
.multiselect__trigger:focus {
  outline: none;
  border-color: rgba(212, 160, 23, 0.5);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}
.multiselect__display { flex: 1; min-width: 0; }
.multiselect__placeholder { color: rgba(255, 255, 255, 0.4); }
.multiselect__chevron {
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.multiselect__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  background: #1a1d1f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  padding: 8px;
  max-height: 320px;
  display: flex;
  flex-direction: column;
}
.multiselect__panel[hidden] { display: none; }
.multiselect__search {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  margin-bottom: 6px;
}
.multiselect__search:focus {
  outline: none;
  border-color: rgba(212, 160, 23, 0.5);
}
.multiselect__options {
  overflow-y: auto;
  flex: 1;
}
.multiselect__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  user-select: none;
}
.multiselect__option:hover { background: rgba(255, 255, 255, 0.05); }
.multiselect__option input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--gold);
  cursor: pointer;
}
.multiselect__option:has(input:checked) { color: var(--gold); }
.multiselect__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.multiselect__chips:empty { display: none; }
.multiselect__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(212, 160, 23, 0.16);
  border: 1px solid rgba(212, 160, 23, 0.35);
  color: var(--gold);
  font-size: 12px;
  padding: 3px 4px 3px 10px;
  border-radius: 100px;
}
.multiselect__chip-remove {
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 16px;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
  opacity: 0.7;
}
.multiselect__chip-remove:hover { opacity: 1; }

/* Certificate uploads */
.cert-upload { margin-top: 14px; }
.cert-upload__label {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 8px;
}
.cert-upload__list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cert-upload__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  padding: 8px 12px;
}
.cert-upload__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 13px;
  min-width: 0;
}
.cert-upload__name span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cert-upload__name:hover { color: var(--gold); }
.cert-upload__name svg { color: rgba(255, 255, 255, 0.55); flex-shrink: 0; }
.cert-upload__remove {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.65);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.cert-upload__remove:hover {
  border-color: rgba(220, 80, 80, 0.5);
  color: #ff7777;
}
.cert-upload__remove {
  text-decoration: none;
  display: inline-flex;
}
.is-hidden-form { display: none; }

/* Single-document upload (business license, proof of address) */
.doc-upload__label {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 8px;
}
.doc-upload__current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 8px;
}
.doc-upload__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 13px;
  min-width: 0;
}
.doc-upload__name span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.doc-upload__name:hover { color: var(--gold); }
.doc-upload__name svg { color: rgba(255, 255, 255, 0.55); flex-shrink: 0; }
.doc-upload__remove {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.65);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.doc-upload__remove:hover {
  border-color: rgba(220, 80, 80, 0.5);
  color: #ff7777;
}
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  cursor: pointer;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  transition: all 0.18s;
}
.chip:hover {
  border-color: rgba(212, 160, 23, 0.4);
  color: #fff;
}
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip:has(input:checked) {
  background: rgba(212, 160, 23, 0.18);
  border-color: var(--gold);
  color: var(--gold);
}

.wizard__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.btn--auto { width: auto; }
.wizard__actions .btn--ghost { width: auto; }

/* Profile edit landing */
.profile-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.profile-summary__row { display: flex; flex-direction: column; gap: 4px; }
.profile-summary__row span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.profile-summary__row strong { color: #fff; font-weight: 500; font-size: 15px; }

.profile-steps { display: flex; flex-direction: column; gap: 10px; }
.profile-steps__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}
.profile-steps__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.profile-steps__num.is-done { background: var(--green); color: #fff; }
.profile-steps__body { flex: 1; min-width: 0; }
.profile-steps__title { color: #fff; font-weight: 500; font-size: 15px; }
.profile-steps__status { color: rgba(255, 255, 255, 0.5); font-size: 12px; }
.profile-steps__item .btn--ghost { width: auto; padding: 6px 14px; font-size: 13px; }

.dashboard {
  max-width: 1280px;
  margin: 28px auto 80px;
  padding: 0 24px;
}
.dashboard__hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  padding: 56px 48px;
  background:
    linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(26, 26, 26, 0.55) 100%),
    url("/images/hs-farm3.jpg") center center / cover no-repeat;
  border: 1px solid rgba(212, 160, 23, 0.18);
}
.dashboard__hero h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
  color: #fff;
}
.dashboard__hero h1 .accent { color: var(--gold); }
.dashboard__hero p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 56ch;
  line-height: 1.6;
}

/* ===================================================================
 * Public profile (how others see you)
 * =================================================================== */

.public-profile {
  max-width: 960px;
  margin: 32px auto 80px;
  padding: 0 24px;
}

.public-profile__preview-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: rgba(212, 160, 23, 0.1);
  border: 1px solid rgba(212, 160, 23, 0.3);
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
.public-profile__preview-link {
  color: var(--gold);
  font-weight: 600;
  font-size: 13px;
}

.public-profile__hero {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(12px);
}

.public-profile__avatar {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  letter-spacing: 1px;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(212, 160, 23, 0.3);
}

.public-profile__hero-body { flex: 1; min-width: 0; }

.public-profile__role-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.public-profile__role-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(212, 160, 23, 0.15);
  color: var(--gold);
  border: 1px solid rgba(212, 160, 23, 0.3);
  padding: 4px 12px;
  border-radius: 100px;
}

.public-profile__verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(76, 175, 80, 0.12);
  color: #6dcf72;
  border: 1px solid rgba(76, 175, 80, 0.35);
  padding: 4px 12px;
  border-radius: 100px;
}

.public-profile__name {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
  line-height: 1.15;
}

.public-profile__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}
.public-profile__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.public-profile__website {
  color: var(--gold);
  text-decoration: none;
}
.public-profile__website:hover { color: var(--gold-light); }

.public-profile__cta {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.public-profile__cta .btn { width: auto; }

.public-profile__section {
  margin-top: 28px;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}
.public-profile__section h2 {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.public-profile__lede {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.public-profile__chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.public-profile__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 14px;
  border-radius: 100px;
}
.public-profile__chip--soft {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
}
.public-profile__chip--gold {
  background: rgba(212, 160, 23, 0.12);
  border-color: rgba(212, 160, 23, 0.3);
  color: var(--gold);
}

.public-profile__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}
.public-profile__fact { display: flex; flex-direction: column; gap: 6px; }
.public-profile__fact--wide { grid-column: 1 / -1; }
.public-profile__fact-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.public-profile__fact-value {
  font-size: 15px;
  color: #fff;
}

.public-profile__empty {
  text-align: center;
  padding: 48px 32px;
}
.public-profile__empty p {
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 16px;
}
.public-profile__empty .btn { display: inline-flex; }

@media (max-width: 700px) {
  .public-profile__hero { flex-direction: column; gap: 18px; }
  .public-profile__avatar { width: 72px; height: 72px; font-size: 38px; border-radius: 18px; }
  .public-profile__name { font-size: 26px; }
  .public-profile__grid { grid-template-columns: 1fr; }
}

.profile-strength-card {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  background: rgba(212, 160, 23, 0.06);
  border: 1px solid rgba(212, 160, 23, 0.25);
  border-radius: 16px;
}
.profile-strength-card__body { flex: 1; }
.profile-strength-card__eyebrow {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.profile-strength-card__eyebrow strong { color: var(--gold-light); }
.profile-strength-card h2 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.profile-strength-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 14px;
  max-width: 60ch;
}
.profile-strength-card__progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}
.profile-strength-card__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  transition: width 0.3s;
}
@media (max-width: 700px) {
  .profile-strength-card { flex-direction: column; align-items: stretch; }
}

/* ===================================================================
 * Dashboard (supplier + buyer)
 * =================================================================== */

.btn--sm { padding: 7px 14px; font-size: 12px; border-radius: 8px; }
.btn--gold-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(212, 160, 23, 0.15);
  color: var(--gold);
  border: 1px solid rgba(212, 160, 23, 0.4);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn--gold-pill:hover { background: var(--gold); color: var(--dark); }

/* View toggle (both-role users) */
.view-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 3px;
}
.view-toggle__btn {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  padding: 6px 16px;
  border-radius: 100px;
  transition: background 0.15s, color 0.15s;
}
.view-toggle__btn:hover { color: #fff; }
.view-toggle__btn.is-active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--dark);
  box-shadow: 0 4px 14px rgba(212, 160, 23, 0.3);
}

/* Hero with KPI strip */
.dash-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 2.2fr);
  gap: 24px;
  align-items: stretch;
  padding: 24px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(26,26,26,0.92) 0%, rgba(26,26,26,0.72) 100%),
    url("/images/hs-farm3.jpg") center center / cover no-repeat;
  border: 1px solid rgba(212, 160, 23, 0.18);
  margin-bottom: 24px;
}
.dash-hero__copy { display: flex; flex-direction: column; justify-content: center; }
.dash-hero__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.dash-hero__copy h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: #fff;
  margin-bottom: 6px;
}
.dash-hero__copy h1 .accent { color: var(--gold); }
.dash-hero__lede {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  max-width: 40ch;
}
.dash-hero__kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.kpi-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  backdrop-filter: blur(8px);
}
.kpi-card__label {
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}
.kpi-card__value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 1px;
  color: #fff;
  line-height: 1;
}
.kpi-card__delta {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}
.kpi-card--gold { border-color: rgba(212, 160, 23, 0.35); background: rgba(212, 160, 23, 0.08); }
.kpi-card--gold .kpi-card__value { color: var(--gold-light); }
.kpi-card--gold .kpi-card__delta { color: var(--gold); }
.kpi-card--green { border-color: rgba(76, 175, 80, 0.3); background: rgba(76, 175, 80, 0.07); }
.kpi-card--green .kpi-card__delta { color: #6dcf72; }

/* Section */
.dash-section { margin-top: 28px; }
.dash-section__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  padding: 0 4px;
}
.dash-section__num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--gold);
}
.dash-section__head h2 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.3px;
}
.dash-section__hint {
  margin-left: auto;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* Grid layouts */
.dash-grid { display: grid; gap: 14px; margin-bottom: 14px; }
.dash-grid--2-1 { grid-template-columns: 2fr 1fr; }
.dash-grid--1-1 { grid-template-columns: 1fr 1fr; }
.dash-grid--1-2 { grid-template-columns: 1fr 2fr; }

/* Card */
.dash-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
}
.dash-card--full { width: 100%; margin-bottom: 14px; }
.dash-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.dash-card__head h3 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.2px;
}
.dash-card__sub {
  margin-left: auto;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.dash-card__head .dash-pill { margin-left: auto; }
.dash-card__head button { margin-left: auto; }
.dash-card__lede {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  line-height: 1.5;
}
.dash-card__lede strong { color: var(--gold-light); font-weight: 600; }
.dash-card__hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}
.dash-card__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 12px -18px;
}
.dash-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.dash-card__subhead {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.dash-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.dash-pill--gold {
  background: rgba(212, 160, 23, 0.13);
  color: var(--gold);
  border-color: rgba(212, 160, 23, 0.3);
}

/* Inquiry/RFQ list */
.dash-list { list-style: none; display: flex; flex-direction: column; }
.dash-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.dash-list__item:last-child { border-bottom: none; padding-bottom: 0; }
.dash-list__main { flex: 1; min-width: 0; }
.dash-list__title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.dash-list__meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}
.dash-list__meta strong { color: var(--gold-light); font-weight: 600; }
.dash-list__aside {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.dash-list__time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

/* Trust badge (mini, inline) */
.dash-trust {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.dash-trust--gold     { background: rgba(212, 160, 23, 0.15); color: var(--gold);   border-color: rgba(212, 160, 23, 0.4); }
.dash-trust--verified { background: rgba(76, 175, 80, 0.12);  color: #6dcf72;       border-color: rgba(76, 175, 80, 0.35); }
.dash-trust--silver   { background: rgba(180, 195, 215, 0.1); color: #c5d3e6;       border-color: rgba(180, 195, 215, 0.25); }

/* Funnel */
.dash-funnel { display: flex; flex-direction: column; gap: 10px; }
.dash-funnel__row { display: grid; grid-template-columns: 90px 1fr 32px; gap: 10px; align-items: center; }
.dash-funnel__label { font-size: 12px; color: rgba(255, 255, 255, 0.65); }
.dash-funnel__bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
}
.dash-funnel__fill { display: block; height: 100%; border-radius: 100px; transition: width 0.3s; }
.dash-funnel__val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.5px;
  color: #fff;
  text-align: right;
}

/* Table */
.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.dash-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.dash-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  vertical-align: middle;
}
.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr:hover td { background: rgba(212, 160, 23, 0.04); }
.dash-table__id {
  font-family: 'Outfit', monospace;
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.3px;
}
.dash-table__num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.dash-table__muted { color: rgba(255, 255, 255, 0.55); font-size: 12px; }
.dash-table__strong { font-weight: 600; color: #fff; }
.dash-table--compact th, .dash-table--compact td { padding: 7px 8px; font-size: 12px; }

/* Status pills (used in tables) */
.dash-status {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}
.dash-status--open,
.dash-status--sent,
.dash-status--pending,
.dash-status--awaiting,
.dash-status--low-stock          { background: rgba(212, 160, 23, 0.13); color: var(--gold); border-color: rgba(212, 160, 23, 0.3); }
.dash-status--negotiating,
.dash-status--in-progress,
.dash-status--confirmed,
.dash-status--net-30,
.dash-status--partial            { background: rgba(123, 168, 224, 0.12); color: #9ec1ed; border-color: rgba(123, 168, 224, 0.3); }
.dash-status--won,
.dash-status--shipped,
.dash-status--delivered,
.dash-status--paid,
.dash-status--accepted,
.dash-status--active             { background: rgba(76, 175, 80, 0.12);  color: #6dcf72; border-color: rgba(76, 175, 80, 0.35); }
.dash-status--lost,
.dash-status--out-of-stock       { background: rgba(217, 119, 119, 0.12); color: #e09a9a; border-color: rgba(217, 119, 119, 0.3); }

/* Plan meters */
.dash-meters { display: flex; flex-direction: column; gap: 12px; }
.dash-meter__row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 5px;
}
.dash-meter__label { color: rgba(255, 255, 255, 0.7); }
.dash-meter__val { color: #fff; font-variant-numeric: tabular-nums; font-weight: 600; }
.dash-meter__bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
}
.dash-meter__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  border-radius: 100px;
}

/* Doclist (trust documents) */
.dash-doclist { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.dash-doclist__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}
.dash-doclist__name { color: #fff; }
.dash-doclist__status { font-size: 11px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); display: inline-flex; align-items: center; gap: 5px; }
.dash-doclist__item--verified { border-color: rgba(76, 175, 80, 0.25); background: rgba(76, 175, 80, 0.05); }
.dash-doclist__item--verified .dash-doclist__status { color: #6dcf72; }
.dash-doclist__item--missing  { border-color: rgba(212, 160, 23, 0.3); background: rgba(212, 160, 23, 0.05); }
.dash-doclist__item--missing  .dash-doclist__status { color: var(--gold); cursor: pointer; }
.dash-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(76, 175, 80, 0.2);
  color: #6dcf72;
  font-size: 10px;
}

/* Filter chip bar */
.dash-filterbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  margin-bottom: 14px;
}
.dash-filterbar__label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  margin-right: 4px;
}
.dash-filterbar__chip {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(212, 160, 23, 0.08);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(212, 160, 23, 0.2);
  cursor: pointer;
  transition: background 0.15s;
}
.dash-filterbar__chip:hover { background: rgba(212, 160, 23, 0.18); }

/* Recommended product cards */
.dash-recommend {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.dash-recommend__card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.15s, transform 0.1s;
}
.dash-recommend__card:hover {
  border-color: rgba(212, 160, 23, 0.4);
  transform: translateY(-2px);
}
.dash-recommend__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.dash-recommend__rating { font-size: 12px; color: var(--gold-light); font-weight: 600; }
.dash-recommend__product { font-size: 14px; font-weight: 600; color: #fff; line-height: 1.3; }
.dash-recommend__supplier { font-size: 12px; color: rgba(255, 255, 255, 0.65); }
.dash-recommend__region { font-size: 11px; color: rgba(255, 255, 255, 0.4); margin-bottom: 8px; }
.dash-recommend__bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.dash-recommend__price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.5px;
  color: var(--gold-light);
}

/* Favorites list */
.dash-favs { list-style: none; display: flex; flex-direction: column; }
.dash-favs__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.dash-favs__item:last-child { border-bottom: none; }
.dash-favs__product { font-size: 13px; color: #fff; font-weight: 500; }
.dash-favs__supplier { font-size: 11px; color: rgba(255, 255, 255, 0.5); }
.dash-favs__price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

/* Reviews */
.dash-reviews { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.dash-review {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}
.dash-review__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.dash-review__from { font-size: 12px; font-weight: 600; color: #fff; }
.dash-review__stars { font-size: 12px; color: var(--gold); letter-spacing: 1px; }
.dash-review__body {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  font-style: italic;
}
.dash-review__date {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

/* Trend arrows */
.dash-trend { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 12px; }
.dash-trend--up   { color: #6dcf72; }
.dash-trend--down { color: #e09a9a; }

/* Market report card */
.dash-card--report {
  background:
    linear-gradient(135deg, rgba(212, 160, 23, 0.12) 0%, rgba(212, 160, 23, 0.04) 100%);
  border-color: rgba(212, 160, 23, 0.3);
}
.dash-report__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--gold-light);
  margin-bottom: 6px;
}
.dash-report__summary {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 1100px) {
  .dash-hero { grid-template-columns: 1fr; }
  .dash-hero__kpis { grid-template-columns: repeat(4, 1fr); }
  .dash-grid--2-1, .dash-grid--1-2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .dash-hero__kpis { grid-template-columns: repeat(2, 1fr); }
  .dash-grid--1-1 { grid-template-columns: 1fr; }
  .dash-table { font-size: 12px; }
  .dash-table th, .dash-table td { padding: 7px 6px; }
  .dash-section__hint { display: none; }
  .app-header { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  .app-header__nav { gap: 10px; flex-wrap: wrap; }
}
