/* ====================================================================
 * Aviveil Smart Vendor Match & Partner Portal Design System
 * Theme: Quiet, confident Dark Mode with CSS Tokens
 * Strictly NO icons, NO emojis — 100% typography & geometric hierarchy
 * ==================================================================== */

.vm-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: transparent;
  color: var(--tx);
  padding: 0 0 60px 0;
  display: flex;
  flex-direction: column;
}

/* Header & Mode Switcher */
.vm-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ln);
  margin-bottom: 24px;
}

.vm-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vm-title {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--tx);
}

.vm-subtitle {
  font-size: 13px;
  color: var(--mu);
  margin: 0;
  line-height: 1.5;
}

.vm-mode-switch {
  display: inline-flex;
  align-items: center;
  background: var(--p);
  border: 1px solid var(--ln);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.vm-mode-btn {
  background: transparent;
  border: none;
  color: var(--mu);
  font-size: 13px;
  font-weight: 400;
  padding: 6px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 150ms ease;
  font-family: inherit;
}

.vm-mode-btn.active {
  background: var(--p2);
  color: var(--tx);
  font-weight: 500;
}

.vm-mode-btn:hover:not(.active) {
  color: var(--tx);
}

/* Multi-Step Wizard Layout */
.vm-wizard {
  background: var(--p);
  border: 1px solid var(--ln);
  border-radius: 12px;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

/* Step Progress Bar */
.vm-wizard-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vm-wizard-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--mu);
  font-weight: 400;
}

.vm-wizard-progress-track {
  width: 100%;
  height: 2px;
  background: var(--p2);
  border-radius: 1px;
  overflow: hidden;
}

.vm-wizard-progress-fill {
  height: 100%;
  background: var(--a);
  border-radius: 1px;
  transition: width 200ms ease;
}

/* Step Content Card */
.vm-step-pane {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vm-step-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--tx);
}

.vm-step-desc {
  margin: 0;
  font-size: 13px;
  color: var(--mu);
  line-height: 1.5;
}

/* Form Fields & Controls */
.vm-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.vm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vm-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--mu);
}

.vm-input {
  background: var(--p2);
  border: 1px solid var(--ln);
  border-radius: 8px;
  color: var(--tx);
  padding: 0 12px;
  height: 36px;
  font-size: 14px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  box-sizing: border-box;
  width: 100%;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}

.vm-input::placeholder {
  color: var(--mu);
}

.vm-input:focus {
  border-color: var(--a);
  box-shadow: 0 0 0 2px rgba(201, 182, 228, 0.25);
  background: var(--p2);
}

/* Location Pills */
.vm-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vm-pill {
  background: var(--p2);
  border: 1px solid var(--ln);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  color: var(--mu);
  cursor: pointer;
  transition: all 150ms ease;
  user-select: none;
  font-family: inherit;
}

.vm-pill:hover {
  border-color: var(--ln);
  color: var(--tx);
}

.vm-pill.selected {
  background: var(--p2);
  color: var(--tx);
  border-color: var(--a);
  font-weight: 500;
}

/* Trade-off Sliders */
.vm-tradeoff-box {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ln);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vm-tradeoff-labels {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.vm-tradeoff-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.vm-tradeoff-side.right {
  text-align: right;
  align-items: flex-end;
}

.vm-tradeoff-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--tx);
}

.vm-tradeoff-hint {
  font-size: 12px;
  color: var(--mu);
}

.vm-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--p2);
  outline: none;
  cursor: pointer;
}

.vm-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--a);
  cursor: pointer;
  border: 2px solid var(--p);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* 100-Point Allocation Matrix */
.vm-points-counter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--p2);
  border: 1px solid var(--ln);
}

.vm-points-counter-bar.valid {
  border-color: var(--g);
}

.vm-points-counter-bar.invalid {
  border-color: var(--r);
}

.vm-points-value {
  font-size: 20px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
}

.vm-points-value.valid {
  color: var(--g);
}

.vm-points-value.invalid {
  color: var(--r);
}

.vm-presets-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vm-preset-btn {
  background: var(--p2);
  border: 1px solid var(--ln);
  border-radius: 6px;
  color: var(--mu);
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 150ms ease;
  font-family: inherit;
}

.vm-preset-btn:hover {
  color: var(--tx);
  border-color: var(--a);
}

.vm-category-matrix {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.vm-category-row {
  display: grid;
  grid-template-columns: 180px 1fr 64px;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ln);
}

.vm-category-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--tx);
}

.vm-category-pts-input {
  width: 52px;
  text-align: right;
  padding: 4px 8px;
  height: 30px;
  background: var(--p2);
  border: 1px solid var(--ln);
  color: var(--tx);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  outline: none;
  font-family: inherit;
}

.vm-category-pts-input:focus {
  border-color: var(--a);
}

/* Wizard Action Buttons */
.vm-wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--ln);
}

.vm-btn {
  height: 34px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 150ms ease;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  text-decoration: none;
  box-sizing: border-box;
}

.vm-btn-secondary {
  background: var(--p2);
  border-color: var(--ln);
  color: var(--tx);
}

.vm-btn-secondary:hover {
  border-color: var(--a);
}

.vm-btn-primary {
  background: var(--a);
  color: #241d2e;
  border: none;
  font-weight: 500;
}

.vm-btn-primary:hover {
  opacity: 0.92;
}

.vm-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.vm-btn-text {
  background: transparent;
  border: none;
  color: var(--mu);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color 150ms ease;
}

.vm-btn-text:hover {
  color: var(--a);
}

/* Smart Bundle Results Comparison Grid */
.vm-bundles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.vm-bundle-card {
  background: var(--p);
  border: 1px solid var(--ln);
  border-radius: 12px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: border-color 150ms ease;
  cursor: pointer;
}

.vm-bundle-card:hover {
  border-color: var(--mu);
}

.vm-bundle-card.recommended {
  border-color: var(--a);
}

.vm-bundle-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--p2);
  color: var(--mu);
  border: 1px solid var(--ln);
  white-space: nowrap;
  flex-shrink: 0;
}

.vm-bundle-card.recommended .vm-bundle-badge {
  border-color: var(--a);
  color: var(--a);
}

.vm-bundle-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vm-bundle-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--tx);
}

.vm-bundle-subtitle {
  font-size: 12px;
  color: var(--mu);
  margin: 0;
  line-height: 1.4;
}

.vm-bundle-cost-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--p2);
  border: 1px solid var(--ln);
}

.vm-bundle-cost-label {
  font-size: 11px;
  font-weight: 400;
  color: var(--mu);
}

.vm-bundle-cost-val {
  font-size: 26px;
  font-weight: 300;
  color: var(--tx);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.vm-bundle-variance {
  font-size: 12px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.vm-bundle-variance.under {
  color: var(--g);
}

.vm-bundle-variance.over {
  color: var(--r);
}

/* Category Package Items in Bundle */
.vm-bundle-pkg-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.vm-bundle-pkg-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--ln);
  cursor: pointer;
  transition: background 150ms ease;
}

.vm-bundle-pkg-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.vm-bundle-pkg-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.vm-bundle-pkg-cat {
  font-size: 11px;
  font-weight: 400;
  color: var(--mu);
}

.vm-bundle-pkg-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--tx);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vm-bundle-pkg-vendor {
  font-size: 12px;
  color: var(--mu);
}

.vm-bundle-pkg-cost-wrap {
  text-align: right;
  flex-shrink: 0;
  margin-left: 12px;
}

.vm-bundle-pkg-cost {
  font-size: 13px;
  font-weight: 400;
  color: var(--tx);
  font-variant-numeric: tabular-nums;
}

.vm-bundle-pkg-tier {
  font-size: 10px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 999px;
  display: inline-block;
  margin-top: 2px;
}

/* Tier Badges */
.tier-badge-Luxury {
  background: rgba(201, 182, 228, 0.12);
  color: var(--a);
  border: 1px solid rgba(201, 182, 228, 0.3);
}

.tier-badge-Premium {
  background: rgba(169, 211, 224, 0.12);
  color: var(--b);
  border: 1px solid rgba(169, 211, 224, 0.3);
}

.tier-badge-Standard {
  background: var(--p2);
  color: var(--mu);
  border: 1px solid var(--ln);
}

/* Slide-over Drawer for Deep Progressive Disclosure */
.vm-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.vm-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.vm-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 480px;
  max-width: 90vw;
  background: var(--p);
  border-left: 1px solid var(--ln);
  color: var(--tx);
  z-index: 10001;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.vm-drawer-overlay.open .vm-drawer {
  transform: translateX(0);
}

.vm-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--ln);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.vm-drawer-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vm-drawer-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--ln);
  background: var(--p);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Detail Section in Drawer */
.vm-detail-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vm-detail-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--mu);
}

.vm-bullets-list {
  margin: 0;
  padding: 0 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vm-bullets-list li {
  font-size: 13px;
  color: var(--tx);
  line-height: 1.5;
}

.vm-perk-card {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--p2);
  border: 1px solid var(--ln);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vm-perk-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--g);
}

.vm-perk-desc {
  font-size: 12px;
  color: var(--mu);
  line-height: 1.4;
}

/* Partner Portal Directory View */
.vm-portal-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.vm-search-box {
  flex: 1;
  min-width: 240px;
  position: relative;
}

.vm-partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.vm-partner-card {
  background: #121212;
  border: 1px solid #262626;
  border-radius: 8px;
  padding: 22px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.15s ease;
}

.vm-partner-card:hover {
  border-color: #404040;
}

.vm-partner-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.vm-partner-name {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
}

.vm-partner-pkg-name {
  font-size: 13px;
  font-weight: 500;
  color: #D4D4D4;
}

.vm-partner-price-tag {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vm-partner-price-val {
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}

.vm-partner-model-label {
  font-size: 11px;
  color: #A3A3A3;
}

/* Global Vendor Hub & Strict Read-Only Lock Styles */
.vm-lock-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--ln);
  display: inline-flex;
  align-items: center;
  user-select: none;
}

.vm-lock-pill.locked {
  background: var(--p2);
  color: var(--r);
  border-color: rgba(234, 181, 192, 0.3);
}

.vm-lock-pill.readonly {
  background: var(--p2);
  color: var(--mu);
  border-color: var(--ln);
}

.vm-lock-pill.master {
  background: var(--p2);
  color: var(--tx);
  border-color: var(--a);
}

.vm-lock-pill.editable {
  background: var(--p2);
  color: var(--g);
  border-color: rgba(181, 220, 195, 0.3);
}

.vm-lock-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--p2);
  color: var(--mu);
  border: 1px solid var(--ln);
  margin-top: 2px;
}

.vm-readonly-banner {
  background: var(--p);
  border: 1px solid var(--ln);
  border-radius: 8px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.vm-readonly-banner.compact {
  padding: 10px 14px;
}

.vm-readonly-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.vm-readonly-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--tx);
}

.vm-readonly-desc,
.vm-readonly-text {
  font-size: 12.5px;
  color: var(--mu);
  line-height: 1.45;
}

.vm-link-inline {
  background: none;
  border: none;
  padding: 0;
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
}

/* KPI Strip for Global Vendor Hub & Client Portal */
.vm-kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.vm-kpi-box {
  background: #121212;
  border: 1px solid #262626;
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vm-kpi-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888888;
}

.vm-kpi-value {
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}

/* Master Vendor Cover & Portfolio Showcase */
.vm-vendor-cover {
  position: relative;
  height: 140px;
  margin: -22px -22px 4px -22px;
  border-radius: 8px 8px 0 0;
  background-color: #161616;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid #262626;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 14px;
}

.vm-vendor-loc-pill {
  background: rgba(10, 10, 10, 0.85);
  color: #E5E5E5;
  border: 1px solid #262626;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 10.5px;
  font-weight: 600;
}

.vm-portfolio-strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #1E1E1E;
}

.vm-portfolio-thumb-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.vm-portfolio-thumb {
  height: 68px;
  border-radius: 6px;
  background-color: #181818;
  background-size: cover;
  background-position: center;
  border: 1px solid #262626;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
}

.vm-portfolio-thumb-title {
  width: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 600;
  padding: 12px 6px 4px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vm-portfolio-showcase-card {
  background: #161616;
  border: 1px solid #262626;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.vm-portfolio-showcase-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.vm-portfolio-showcase-desc {
  font-size: 11.5px;
  color: #A3A3A3;
  line-height: 1.4;
}

.vm-portfolio-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.vm-portfolio-photo {
  height: 78px;
  border-radius: 4px;
  background-color: #1E1E1E;
  background-size: cover;
  background-position: center;
  border: 1px solid #2A2A2A;
}

.vm-mini-pkg-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 4px;
  background: #161616;
  border: 1px solid #222222;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.vm-mini-pkg-row:hover {
  border-color: #404040;
}

.vm-mini-pkg-name {
  font-size: 12px;
  font-weight: 600;
  color: #E5E5E5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vm-mini-pkg-price {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.vm-selected-proj-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.vm-selected-proj-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ln);
  background: transparent;
}

.vm-selected-proj-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.vm-selected-proj-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* Client Portal Styles */
.cp-action-banner {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cp-action-banner-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #EF4444;
}

.cp-action-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cp-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 14px;
  background: #121212;
  border: 1px solid #262626;
  border-radius: 6px;
}

.cp-action-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cp-action-tag {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(239, 68, 68, 0.14);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.cp-action-task-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #FFFFFF;
}

.cp-action-meta {
  font-size: 11.5px;
  color: #A3A3A3;
}

.cp-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cp-task-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cp-task-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 6px;
  background: #161616;
  border: 1px solid #262626;
}

.cp-task-card.urgent {
  border-color: rgba(239, 68, 68, 0.45);
}

.cp-task-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cp-task-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.cp-cat-pill {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 6px;
  border-radius: 3px;
  background: #222222;
  color: #D4D4D4;
}

.cp-status-pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 6px;
  border-radius: 3px;
}

.cp-status-COMPLETED {
  background: rgba(16, 185, 129, 0.14);
  color: #10B981;
}

.cp-status-IN_PROGRESS {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.cp-status-PENDING {
  background: #1E1E1E;
  color: #A3A3A3;
}

.cp-task-title {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
}

.cp-task-title.done {
  text-decoration: line-through;
  color: #737373;
}

.cp-task-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #A3A3A3;
}

.cp-vendor-link {
  background: #1E1E1E;
  border: 1px solid #333333;
  color: #FFFFFF;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.cp-vendor-link:hover {
  border-color: #FFFFFF;
}

.cp-task-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Client Portal Hero & Stat Badges */
.cp-container {
  max-width: 1380px;
  margin: 0 auto;
}

.cp-hero-card {
  background: #121212;
  border: 1px solid #262626;
  border-radius: 10px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cp-stat-pill {
  background: #161616;
  border: 1px solid #262626;
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 110px;
}

.cp-stat-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888888;
}

.cp-stat-val {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}

.cp-stat-val.urgent {
  color: #EF4444;
}

.cp-stat-val.ok {
  color: #10B981;
}

.cp-action-req-badge {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(239, 68, 68, 0.14);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.cp-cat-badge {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 6px;
  border-radius: 3px;
  background: #222222;
  color: #A3A3A3;
}

.cp-linked-vendor-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 4px;
  background: #181818;
  border: 1px solid #282828;
  cursor: pointer;
  margin-top: 4px;
  transition: border-color 0.15s ease;
}

.cp-linked-vendor-bar:hover {
  border-color: #404040;
}

.vm-kpi-val {
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}

.vm-partner-bio {
  font-size: 12px;
  color: #888888;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vm-vendor-cat-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(10, 10, 10, 0.85);
  color: #D4D4D4;
  border: 1px solid #262626;
}

.vm-vendor-cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.3) 0%, rgba(10, 10, 10, 0.85) 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 7px 7px 0 0;
}

/* ====================================================================
 * Ultra-Premium Vendor Showcase Card (Reference Design)
 * Full-bleed media, frosted pills, carousel indicator, "Chỉ từ" pricing,
 * hairline dividers, 3-specifications strip, smart suggestion banners.
 * Strict Dark Mode: #0A0A0A, #111215, #161616, #262626
 * Strictly NO icons, NO emojis.
 * ==================================================================== */

.vm-premium-card {
  background: #111215;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
  box-sizing: border-box;
  transition: border-color 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.vm-premium-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

.vm-premium-card.is-project-selected {
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 12px 28px rgba(0, 0, 0, 0.4);
}

.vm-card-media {
  position: relative;
  width: 100%;
  height: 240px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  overflow: hidden;
  border-radius: 21px 21px 0 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #18191d;
}

.vm-media-top-bar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}

.vm-frosted-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(18, 18, 22, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F5F5F7;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 6px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

.vm-card-tier-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #E5E5E7;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  pointer-events: auto;
}

.tier-badge-Luxury {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(0, 0, 0, 0.75);
}

.tier-badge-Premium {
  color: #E4E4E7;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.65);
}

.tier-badge-Standard {
  color: #A1A1AA;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.55);
}

.vm-card-carousel {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 2;
  pointer-events: none;
}

.vm-carousel-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: all 0.2s ease;
}

.vm-carousel-dot.active {
  width: 16px;
  height: 5px;
  border-radius: 3px;
  background: #FFFFFF;
}

.vm-media-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, rgba(17, 18, 21, 0) 0%, rgba(17, 18, 21, 0.95) 100%);
  pointer-events: none;
}

.vm-card-content {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.vm-card-row-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.vm-card-heading {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: -0.2px;
  line-height: 1.35;
  cursor: pointer;
  transition: color 0.15s ease;
}

.vm-card-heading:hover {
  color: #D4D4D8;
}

.vm-card-price-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  flex-shrink: 0;
}

.vm-card-price-prefix {
  font-size: 10.5px;
  color: #8E8E93;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  line-height: 1.2;
}

.vm-card-price-num {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.3px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  margin-top: 2px;
}

.vm-card-row-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: -4px;
}

.vm-card-location {
  font-size: 12px;
  color: #8E8E93;
  display: flex;
  align-items: center;
  gap: 4px;
}

.vm-card-model-tag {
  font-size: 11px;
  color: #A1A1AA;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.vm-card-smart-suggest {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  line-height: 1.45;
}

.vm-card-smart-suggest.budget_fit {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E4E4E7;
}

.vm-card-smart-suggest.over_budget {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.22);
  color: #FCA5A5;
}

.vm-card-smart-suggest.negotiated {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.vm-suggest-bullet {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
  background: currentColor;
}

.vm-card-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  width: 100%;
  margin: 2px 0;
}

.vm-card-specs-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.vm-card-spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 2px 4px;
  min-width: 0;
}

.vm-card-spec-item:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.vm-spec-label {
  font-size: 10px;
  color: #71717A;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  line-height: 1.2;
}

.vm-spec-val {
  font-size: 11.5px;
  color: #E4E4E7;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.2;
}

.vm-card-pkgs-peek {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.vm-mini-pkg-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.vm-mini-pkg-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.vm-mini-pkg-row.selected {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.07);
}

.vm-mini-pkg-name {
  font-size: 12px;
  font-weight: 500;
  color: #F4F4F5;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vm-mini-pkg-price {
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}

.vm-custom-tag {
  font-size: 9.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.vm-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.vm-link-btn {
  background: transparent;
  border: none;
  padding: 0;
  color: #A1A1AA;
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.vm-link-btn:hover {
  color: #FFFFFF;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .vm-wizard {
    padding: 20px 18px;
  }
  .vm-category-row {
    grid-template-columns: 1fr auto;
    row-gap: 8px;
  }
  .vm-category-row .vm-slider {
    grid-column: 1 / -1;
  }
  .vm-bundles-grid {
    grid-template-columns: 1fr;
  }
  .vm-partners-grid {
    grid-template-columns: 1fr;
  }
  .vm-drawer {
    width: 100vw;
    max-width: 100vw;
  }
  .vm-gallery-modal {
    width: 100%;
    max-width: calc(100vw - 24px);
    margin: 12px;
  }
  .cp-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .vm-btn {
    min-height: 44px;
    touch-action: manipulation;
  }
}

/* ====================================================================
 * STRICT RULE B2: EXACT REFERENCE VENDOR CARD SPECIFICATIONS
 * Aspect Ratio 3:4, container-query cqw scaling, full-bleed photo,
 * frosted tier pill top-left, 4-dots carousel pill centered above title,
 * title row, subtitle, 1px divider, 3 equal stat columns with vertical dividers.
 * ZERO buttons, ZERO edit controls on card.
 * ==================================================================== */

.vm-partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .vm-partners-grid {
    grid-template-columns: 1fr;
  }
}

.vm-card-wrapper {
  container-type: inline-size;
  width: 100%;
  box-sizing: border-box;
}

.vm-vendor-card {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: clamp(22px, 4.7cqw, 36px);
  overflow: hidden;
  box-shadow: 0 24px 50px -26px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  box-sizing: border-box;
  background-color: #111215;
}

.vm-vendor-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 32px 64px -22px rgba(0, 0, 0, 0.95);
}

.vm-vendor-card:focus-visible {
  outline: 2px solid #c9b6e4;
  outline-offset: 3px;
}

/* Layer 1: Photo & Moody Scene */
.vm-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.vm-card-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.vm-card-scene-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Layer 2: Shade & Upward-fading Blur */
.vm-card-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, transparent 36%, rgba(14, 16, 18, 0.72) 70%, rgba(10, 12, 14, 0.96) 100%);
  pointer-events: none;
}

.vm-card-blur-layer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58%;
  z-index: 2;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  mask-image: linear-gradient(to bottom, transparent 0%, black 40%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 40%);
  pointer-events: none;
}

/* Top-Left Pill: Tier */
.vm-card-tier-pill {
  position: absolute;
  top: 4.6cqw;
  left: 4.6cqw;
  z-index: 4;
  background: rgba(48, 56, 60, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-weight: 500;
  font-size: clamp(11px, 3.1cqw, 14px);
  padding: 0.55em 1.25em;
  border-radius: 9999px;
  line-height: 1.2;
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Info Overlay at Bottom */
.vm-card-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 0 4.6cqw 4cqw 4.6cqw;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Dots pill */
.vm-card-dots-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(10px, 3cqw, 18px);
}

.vm-card-dots-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 11px;
  border-radius: 9999px;
}

.vm-card-dots-pill .vm-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
}

.vm-card-dots-pill .vm-dot.active {
  background: #ffffff;
  width: 18px;
}

/* Title row */
.vm-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  width: 100%;
}

.vm-card-name {
  margin: 0;
  color: #ffffff;
  font-weight: 500;
  font-size: clamp(17px, 5.4cqw, 26px);
  letter-spacing: -0.02em;
  max-width: 66%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.vm-card-price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  line-height: 1.1;
}

.vm-card-price-num {
  color: #ffffff;
  font-weight: 500;
  font-size: clamp(17px, 5.4cqw, 26px);
  letter-spacing: -0.02em;
}

.vm-card-price-unit {
  color: rgba(255, 255, 255, 0.55);
  font-size: clamp(10px, 2.7cqw, 12px);
  margin-top: 2px;
}

/* Subtitle */
.vm-card-subtitle {
  color: rgba(255, 255, 255, 0.55);
  font-size: clamp(12px, 3.9cqw, 16px);
  margin-top: clamp(4px, 1.2cqw, 8px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* 1px Divider */
.vm-card-hr {
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
  margin: clamp(8px, 2.4cqw, 14px) 0;
  width: 100%;
}

/* Stats Row */
.vm-card-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  width: 100%;
  align-items: center;
}

.vm-stat-col {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: clamp(11px, 3.5cqw, 14px);
  line-height: 1;
}

.vm-stat-col-1 {
  justify-content: flex-start;
  text-align: left;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  padding-right: 4px;
}

.vm-stat-col-2 {
  justify-content: center;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0 4px;
}

.vm-stat-col-3 {
  justify-content: flex-end;
  text-align: right;
  padding-left: 4px;
}

.vm-stat-icon {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.75);
}

.vm-stat-icon svg {
  width: 1.45em;
  height: 1.45em;
  stroke-width: 1.5;
}

.vm-stat-label {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
}

.vm-stat-val {
  color: #ffffff;
  font-weight: 600;
}

/* ====================================================================
 * VENDORS LIST PAGE: UNDERLINE TABS & CONTROLS
 * ==================================================================== */
.vm-category-underline-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--ln);
  overflow-x: auto;
  padding: 0 0 16px 0;
  margin: 18px 0 26px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.vm-category-underline-tabs::-webkit-scrollbar {
  display: none;
}

.vm-tab-link {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #9ca3af;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  outline: none !important;
  box-shadow: none !important;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.vm-tab-link:hover:not(.active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.vm-tab-link:focus,
.vm-tab-link:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.vm-tab-link.active {
  background: #262930;
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 600;
  outline: none !important;
  box-shadow: none !important;
}

.vm-tab-count {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 400;
  transition: color 0.15s ease;
}

.vm-tab-link.active .vm-tab-count {
  color: #e5e7eb;
  font-weight: 500;
}

.vm-tab-link:hover:not(.active) .vm-tab-count {
  color: #d1d5db;
}

.vm-filter-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0 0 32px 0;
}

.vm-tier-dropdown {
  background: var(--p);
  border: 1px solid var(--ln);
  border-radius: 10px;
  color: #ffffff;
  padding: 12px 18px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.vm-tier-dropdown:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: var(--p2);
}

.vm-readonly-note {
  font-size: 12.5px;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--ln);
  border-radius: 8px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
}

/* ====================================================================
 * VENDOR DETAIL PAGE
 * ==================================================================== */
.vm-detail-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vm-detail-back-bar {
  margin-bottom: 4px;
}

.vm-back-link {
  background: transparent;
  border: none;
  color: #8f93a0;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.vm-back-link:hover {
  color: #e6e4ea;
}

.vm-detail-hero {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  background-color: #1a1c22;
}

.vm-detail-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 12, 14, 0.85) 0%, transparent 60%);
  pointer-events: none;
}

.vm-detail-hero-tier {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(48, 56, 60, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-weight: 500;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.vm-hero-cover-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(20, 22, 26, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid #33363f;
  color: #e6e4ea;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.vm-detail-header-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vm-detail-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.vm-detail-name {
  margin: 0;
  font-size: 30px;
  font-weight: 300;
  color: #e6e4ea;
  letter-spacing: -0.02em;
}

.vm-detail-sub {
  font-size: 14px;
  color: #8f93a0;
  margin-top: 4px;
}

.vm-detail-bio {
  margin: 0;
  font-size: 14px;
  color: #8f93a0;
  line-height: 1.6;
  max-width: 800px;
}

.vm-detail-editor-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.vm-section-title {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: #e6e4ea;
}

/* Packages 2-column cards */
.vm-packages-grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.vm-detail-pkg-card {
  background: #1e2025;
  border: 1px solid #33363f;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vm-detail-pkg-name {
  font-size: 13px;
  font-weight: 500;
  color: #8f93a0;
  display: block;
}

.vm-detail-pkg-price {
  font-size: 26px;
  font-weight: 300;
  color: #e6e4ea;
  margin: 4px 0;
}

.vm-detail-pkg-meta {
  font-size: 12px;
  color: #8f93a0;
}

.vm-detail-pkg-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vm-detail-block-title {
  font-size: 11px;
  font-weight: 600;
  color: #8f93a0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vm-detail-block-title.perks {
  color: #b5dcc3;
}

.vm-detail-bullets {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.vm-detail-bullets.muted li {
  color: #8f93a0;
}

.vm-detail-bullets.green li {
  color: #b5dcc3;
}

/* Portfolio 3-column tiles */
.vm-portfolio-grid-3col {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.vm-portfolio-tile {
  background: #1e2025;
  border: 1px solid #33363f;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.vm-portfolio-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.vm-portfolio-tile-media {
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: #16171b;
}

.vm-portfolio-photo-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  color: #e6e4ea;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
}

.vm-portfolio-tile-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vm-portfolio-tile-title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #e6e4ea;
}

.vm-portfolio-tile-desc {
  margin: 0;
  font-size: 12px;
  color: #8f93a0;
  line-height: 1.4;
}

/* Lightbox Gallery Modal */
.vm-gallery-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  box-sizing: border-box;
}

.vm-gallery-modal {
  background: #1e2025;
  border: 1px solid #33363f;
  border-radius: 16px;
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vm-gallery-header {
  padding: 16px 20px;
  border-bottom: 1px solid #33363f;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vm-gallery-title {
  margin: 0;
  font-size: 16px;
  color: #e6e4ea;
}

.vm-gallery-sub {
  font-size: 12px;
  color: #8f93a0;
}

.vm-gallery-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  overflow-y: auto;
}

.vm-gallery-photo {
  height: 180px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.vm-gallery-photo:hover {
  transform: scale(1.02);
}
