/* Vendor Dashboard — E&M Glassmorphism Design
   Scoped to /account/* via conditional enqueue.
   v2: dark glassmorphism theme with gold accent orbs. */

/* ── Fonts (self-declared — Elementor's URLs break on account pages) ── */
@font-face {
  font-family: 'Emilea';
  src: url('/wp-content/uploads/2025/11/Emilea.woff') format('woff'),
       url('/wp-content/uploads/2025/11/Emilea.ttf') format('truetype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('/wp-content/uploads/2025/11/Gilroy-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('/wp-content/uploads/2025/11/Gilroy-Bold.ttf') format('truetype');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ── */
:root {
  --vd-primary: #566342;
  --vd-primary-dark: #39432a;
  --vd-secondary: #E7DED6;
  --vd-text: #1E1F1A;
  --vd-accent: #758063;
  --vd-bg-soft: #F4F5F0;
  --vd-grey: #A8AAA8;
  --vd-gold: #C6A664;
  --vd-gold-dark: #605030;
  --vd-green: #15CD72;
  --vd-red: #E53935;
  --vd-ink-2: #4a4b44;
  --vd-ink-3: #6c6c63;
  --vd-glass: rgba(255,255,255,0.15);
  --vd-glass-border: rgba(244,245,240,0.4);
  --vd-glass-rule: rgba(255,255,255,0.15);
  --vd-radius: 10px;
  --vd-radius-pill: 25px;
}

/* ── Full-bleed dark background ──
   Scoped: .vd-dashboard must exist in the DOM (vendor logged in).
   The dark bg must cover the full viewport width, not just .hp-page's max-width. */
.em-is-vendor .content-area {
  background: var(--vd-primary-dark);
  position: relative;
  overflow: visible;
}

.em-is-vendor .hp-page {
  background: transparent;
  position: relative;
}

.em-is-vendor .hp-page .hp-page__content {
  background: transparent;
  position: relative;
  z-index: 1;
}

/* Gold corner orbs on .content-area for full coverage */
.em-is-vendor .content-area::before,
.em-is-vendor .content-area::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.em-is-vendor .content-area::before {
  width: 700px;
  height: 700px;
  top: -350px;
  left: -350px;
  background: radial-gradient(circle, rgba(198,166,100,0.35), transparent 60%);
}

.em-is-vendor .content-area::after {
  width: 600px;
  height: 600px;
  top: -300px;
  right: -300px;
  background: radial-gradient(circle, rgba(198,166,100,0.30), transparent 60%);
}

.em-is-vendor .hp-page .hp-page__sidebar {
  position: relative;
  z-index: 1;
}

/* ── Dashboard content ── */
.vd-dashboard {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.vd-dashboard::before,
.vd-dashboard::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.vd-dashboard::before {
  width: 650px;
  height: 650px;
  bottom: -325px;
  left: -325px;
  background: radial-gradient(circle, rgba(198,166,100,0.25), transparent 60%);
}

.vd-dashboard::after {
  width: 700px;
  height: 700px;
  bottom: -350px;
  right: -350px;
  background: radial-gradient(circle, rgba(198,166,100,0.32), transparent 60%);
}

/* ── Sidebar ── */
.em-is-vendor .hp-page .hp-page__sidebar {
  background: var(--vd-primary);
  border-radius: var(--vd-radius);
  padding: 16px 0;
  margin-top: 20px;
}

.hp-page__sidebar .hp-menu--user-account {
  padding: 0;
}

.em-is-vendor .hp-page .hp-menu--user-account {
  background: transparent !important;
}

.hp-menu--user-account .hp-menu__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hp-menu--user-account .hp-menu__item::before {
  display: none !important;
}

.hp-menu--user-account .hp-menu__item a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 8px;
  font-family: 'Gilroy', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--vd-text);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.hp-menu--user-account .hp-menu__item a:hover {
  background: var(--vd-secondary);
}

.hp-menu--user-account .hp-menu__item--current a {
  background: var(--vd-primary);
  color: #F4F5F0;
}

/* Dark theme overrides for dashboard */
.em-is-vendor .hp-page .hp-menu--user-account .hp-menu__item a {
  font-size: 18px;
  color: var(--vd-bg-soft);
}

.em-is-vendor .hp-page .hp-menu--user-account .hp-menu__item a:hover {
  background: rgba(255,255,255,0.08);
}

.em-is-vendor .hp-page .hp-menu--user-account .hp-menu__item--current a {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 2px 4px rgba(198,166,100,0.25);
  color: #F4F5F0;
}

.hp-menu--user-account .hp-menu__item--current {
  position: relative;
}
.hp-menu--user-account .hp-menu__item--current::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--vd-gold);
}

.hp-menu__item--user-logout a {
  opacity: 0.6 !important;
}
.hp-menu__item--user-logout a:hover {
  opacity: 1 !important;
  color: var(--vd-red) !important;
  background: transparent !important;
}

/* ── Sidebar icons ── */
.hp-menu--user-account .hp-menu__item a::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: filter 0.18s ease;
}

.hp-menu--user-account .hp-menu__item a:hover::before {
  filter: none;
}

.hp-menu__item--vendor-dashboard a::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23758063' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='3' width='7' height='9' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1.5'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1.5'/%3E%3Crect x='3' y='16' width='7' height='5' rx='1.5'/%3E%3C/svg%3E");
}

.hp-menu__item--messages-thread a::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23758063' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 12.5a8 8 0 0 1-11.7 7.1L4 21l1.4-5.3A8 8 0 1 1 21 12.5z'/%3E%3C/svg%3E");
}

.hp-menu__item--listings-edit a::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23758063' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Cpath d='M8 9h8M8 13h8M8 17h5'/%3E%3C/svg%3E");
}

.hp-menu__item--user-edit-settings a::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23758063' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .34 1.87l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.7 1.7 0 0 0-1.87-.34 1.7 1.7 0 0 0-1 1.55V21a2 2 0 1 1-4 0v-.08a1.7 1.7 0 0 0-1.11-1.55 1.7 1.7 0 0 0-1.87.34l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.7 1.7 0 0 0 4.6 15a1.7 1.7 0 0 0-1.55-1H3a2 2 0 1 1 0-4h.08A1.7 1.7 0 0 0 4.6 9a1.7 1.7 0 0 0-.34-1.87l-.06-.06A2 2 0 1 1 7.03 4.24l.06.06A1.7 1.7 0 0 0 9 4.64a1.7 1.7 0 0 0 1-1.55V3a2 2 0 1 1 4 0v.08a1.7 1.7 0 0 0 1 1.55 1.7 1.7 0 0 0 1.87-.34l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.7 1.7 0 0 0 19.4 9a1.7 1.7 0 0 0 1.55 1H21a2 2 0 1 1 0 4h-.08a1.7 1.7 0 0 0-1.52 1z'/%3E%3C/svg%3E");
}

.hp-menu__item--user-logout a::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23A8AAA8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/%3E%3Cpath d='M10 17l-5-5 5-5'/%3E%3Cpath d='M5 12h12'/%3E%3C/svg%3E");
}

.hp-menu--user-account .hp-menu__item--current a::before {
  filter: brightness(0) invert(1);
}

.em-is-vendor .hp-page .hp-menu--user-account .hp-menu__item a::before {
  filter: brightness(0) invert(1);
}

/* ── Messages badge ── */
.hp-menu__item--messages-thread small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--vd-red);
  color: #fff;
  font-family: 'Gilroy', sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  margin-left: auto;
}

/* ── Welcome block ── */
.vd-welcome {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}

.vd-welcome__avatar {
  width: 120px;
  height: 69px;
  border-radius: var(--vd-radius);
  background: var(--vd-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Emilea', serif;
  font-weight: 700;
  font-size: 42px;
  color: var(--vd-primary);
  flex-shrink: 0;
  overflow: hidden;
}

.vd-welcome__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vd-welcome__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}

.vd-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Gilroy', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
  white-space: nowrap;
}
.vd-badge--gratis { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.7); }
.vd-badge--premium { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.4); }
.vd-badge--elite { background: var(--vd-gold); color: #2a2410; }

.vd-welcome__title {
  font-family: 'Emilea', serif;
  font-weight: 700;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--vd-secondary);
  margin: 0;
}
.vd-welcome__title em {
  font-style: normal;
  font-weight: 500;
  background: linear-gradient(180deg, #E8C672 20%, #C6A664 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vd-welcome__sub {
  font-family: 'Gilroy', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
  max-width: 60ch;
  margin: 8px 0 0;
}

/* Locked checklist step */
.vd-check-item--locked {
  opacity: 0.45;
  pointer-events: none;
}
.vd-check-item--locked .vd-check-action {
  visibility: hidden;
}

/* ── Stat cards — glass ── */
.vd-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.vd-stat {
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  background: var(--vd-glass);
  border: 1px solid var(--vd-glass-border);
  border-radius: var(--vd-radius);
  padding: 20px;
  min-height: 143px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.vd-stat__top {
  display: flex;
  justify-content: center;
  order: 2;
  margin-top: 12px;
}

.vd-stat__top .vd-stat__label {
  font-family: 'Gilroy', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  line-height: normal;
}

.vd-stat__icon {
  display: none;
}

.vd-stat__value {
  order: 1;
  font-family: 'Emilea', serif;
  font-weight: 700;
  font-size: 42px;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.01em;
}

.vd-stat__sub {
  display: none;
}

.vd-stat--muted {
  background: var(--vd-glass);
}
.vd-stat--muted .vd-stat__value {
  color: rgba(255,255,255,0.5);
}

.vd-stat--alert .vd-stat__value {
  color: var(--vd-red);
}

/* ── Quick actions — glass + gold highlight ── */
.vd-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 21px;
}

.vd-action {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  background: var(--vd-glass);
  border: 1px solid rgba(244,245,240,0.5);
  border-radius: var(--vd-radius);
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
  text-decoration: none;
  color: #fff;
  min-height: 108px;
}

.vd-action:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.vd-action__icon {
  width: 39px;
  height: 39px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.15);
  border-radius: var(--vd-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vd-action__icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.vd-action__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vd-action__title {
  font-family: 'Gilroy', sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: #fff;
  letter-spacing: 0.2px;
}

.vd-action__sub {
  font-family: 'Gilroy', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
}

.vd-action__arrow {
  width: 20px;
  height: 20px;
  color: rgba(255,255,255,0.6);
}

.vd-action--gold {
  background: var(--vd-bg-soft);
  border: 2px solid var(--vd-gold);
  box-shadow: 0 4px 50px rgba(198,166,100,0.5);
  color: var(--vd-primary);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.vd-action--gold .vd-action__icon {
  background: var(--vd-primary);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.vd-action--gold .vd-action__icon svg {
  color: #fff;
}
.vd-action--gold .vd-action__title {
  color: var(--vd-primary);
}
.vd-action--gold .vd-action__sub {
  color: var(--vd-primary);
  opacity: 0.75;
}
.vd-action--gold .vd-action__arrow {
  color: var(--vd-primary);
}
.vd-action--gold:hover {
  background: #eceae4;
}

/* ── Checklist — glass ── */
.vd-checklist {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  background: rgba(244,245,240,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--vd-radius);
  padding: 32px 36px 28px;
  overflow: hidden;
}

.vd-checklist__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--vd-glass-rule);
}

.vd-checklist__title {
  font-family: 'Emilea', serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.08;
  color: #fff;
  margin: 0;
}

.vd-checklist__desc {
  font-family: 'Gilroy', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: #fff;
  margin: 8px 0 0;
}

.vd-checklist__progress {
  min-width: 200px;
}

.vd-checklist__count {
  text-align: right;
  font-family: 'Emilea', serif;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
  font-size: 20px;
}

.vd-checklist__count-now {
  font-size: 20px;
  color: #fff;
}

.vd-checklist__count-tot {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  margin-left: 2px;
}

.vd-progress {
  height: 5px;
  background: rgba(231,222,214,0.3);
  border-radius: var(--vd-radius);
  overflow: hidden;
  border: 0.5px solid rgba(255,255,255,0.5);
}

.vd-progress__bar {
  height: 100%;
  background: #fff;
  border-radius: var(--vd-radius);
  transition: width 0.4s ease;
}

.vd-checklist__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.vd-check-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--vd-glass-rule);
}
.vd-check-item:last-child {
  border-bottom: 0;
}

.vd-check-num {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: rgba(117,128,99,0.4);
  border: 1px solid rgba(255,255,255,0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Emilea', serif;
  font-size: 16px;
  color: var(--vd-accent);
}

.vd-check-item--done .vd-check-num {
  background: var(--vd-primary);
  border-color: var(--vd-gold);
  color: #fff;
}
.vd-check-item--done .vd-check-title {
  color: rgba(255,255,255,0.5);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.vd-check-title {
  font-family: 'Gilroy', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: #fff;
}

.vd-check-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

.vd-check-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Gilroy', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #fff;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 18px;
  background: var(--vd-primary);
  border: 1px solid var(--vd-gold);
  border-radius: 0 var(--vd-radius) 0 var(--vd-radius);
  transition: background 0.18s;
  white-space: nowrap;
  text-decoration: none;
}
.vd-check-action:hover {
  background: #4a5736;
}

/* ── Plan banner — light bg on dark page ── */
.vd-plan {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 22px 28px;
  border-radius: var(--vd-radius);
  position: relative;
  overflow: hidden;
}

.vd-plan--upgrade {
  background: var(--vd-bg-soft);
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--vd-primary);
  align-items: flex-start;
  padding: 24px 28px;
  position: relative;
}
.vd-plan--upgrade .vd-plan__label {
  font-family: 'Gilroy', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--vd-primary);
}
.vd-plan--upgrade .vd-plan__title {
  font-family: 'Emilea', serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.2;
  color: var(--vd-primary);
  margin: 2px 0 0;
}
.vd-plan--upgrade .vd-plan__desc {
  font-family: 'Gilroy', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--vd-text);
  margin: 4px 0 0;
}
.vd-plan--upgrade .vd-plan__cta {
  background: var(--vd-primary);
  color: #fff;
  font-family: 'Gilroy', sans-serif;
  font-weight: 500;
  font-size: 16px;
  text-transform: uppercase;
  border: 1px solid var(--vd-gold);
  border-radius: 0 var(--vd-radius) 0 var(--vd-radius);
  padding: 4px 18px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
  position: absolute;
  top: 17px;
  right: 28px;
}
.vd-plan--upgrade .vd-plan__cta:hover {
  background: #4a5736;
}

.vd-plan--active {
  padding: 22px 28px;
}
.vd-plan--elite {
  background: linear-gradient(95deg, var(--vd-gold), #e8c069);
  color: #2a2410;
}
.vd-plan--premium {
  background: var(--vd-primary);
  color: #F4F5F0;
}

/* ── Hide HP page title on dashboard (we have our own welcome) ── */
.hp-page__content .hp-page__title:first-child {
  display: none;
}

/* ── Grid + Cards (Mensajes recientes + Tus anuncios) ── */
.vd-grid {
  display: grid;
  gap: 18px;
  margin-top: 0;
}
.vd-grid--two {
  grid-template-columns: 1fr 1fr;
}

.vd-card {
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  background: var(--vd-primary);
  border: 1px solid var(--vd-glass-border);
  border-radius: var(--vd-radius);
  overflow: hidden;
}

.vd-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.vd-card__head {
  padding: 28px 26px 8px;
}


.vd-card__title {
  font-family: 'Emilea', serif;
  font-weight: 700;
  font-size: 30px;
  color: #fff;
  margin: 0;
}

.vd-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Gilroy', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  background: #fff;
  color: var(--vd-primary) !important;
  border: 1px solid var(--vd-gold);
  border-radius: var(--vd-radius) 0 var(--vd-radius) 0;
  padding: 6px 20px;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.18s;
  white-space: nowrap;
  margin: 16px 26px 24px;
  justify-self: start;
  width: fit-content;
}
.vd-card__link:hover {
  background: var(--vd-secondary);
}

.vd-card__empty {
  padding: 8px 26px 22px;
  color: rgba(255,255,255,0.75);
  font-family: 'Gilroy', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.vd-msgs__list,
.vd-listings__list {
  list-style: none;
  margin: 0;
  padding: 0 14px 8px;
  display: grid;
  gap: 0;
}

.vd-msg,
.vd-listing {
  border-top: 1px solid rgba(255,255,255,0.12);
}
.vd-msg:first-child,
.vd-listing:first-child { border-top: 0; }

.vd-msg__link,
.vd-listing__link {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  text-decoration: none;
  border-radius: 8px;
  transition: background .12s;
}
.vd-msg__link:hover,
.vd-listing__link:hover { background: rgba(255,255,255,0.08); }

.vd-msg__avatar {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vd-msg__body { min-width: 0; flex: 1; }
.vd-listing__body { min-width: 0; flex: 1; }

.vd-msg__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  min-width: 0;
}

.vd-msg__from {
  font-weight: 600;
  font-size: 14.5px;
  color: #fff;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vd-msg__time {
  font-family: 'Gilroy', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  letter-spacing: .04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.vd-msg__preview {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 13.5px;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vd-listing__thumb {
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  border-radius: var(--vd-radius);
  background: rgba(255,255,255,0.1) center/cover no-repeat;
}

.vd-listing__title {
  display: block;
  font-family: 'Gilroy', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.18px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vd-listing__meta {
  display: flex;
  gap: 12px;
  font-family: 'Gilroy', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-top: 3px;
  align-items: center;
}

.vd-listing__status { font-weight: 600; color: rgba(255,255,255,0.85) !important; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .vd-welcome {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .vd-welcome__avatar {
    margin: 0 auto;
    width: 80px;
    height: 60px;
    font-size: 32px;
  }
  .vd-welcome__meta {
    justify-content: center;
  }
  .vd-welcome__title {
    font-size: 30px;
  }
  .vd-stats {
    grid-template-columns: 1fr 1fr;
  }
  .vd-stat__value {
    font-size: 32px;
  }
  .vd-actions {
    grid-template-columns: 1fr;
  }
  .vd-checklist {
    padding: 22px 18px 18px;
  }
  .vd-checklist__head {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .vd-checklist__progress {
    min-width: unset;
  }
  .vd-check-item {
    grid-template-columns: 36px 1fr;
    gap: 12px;
  }
  .vd-check-action {
    grid-column: 2;
    justify-self: start;
  }
  .vd-grid--two {
    grid-template-columns: 1fr;
  }
}

/* ── HivePress account content on dark bg ── */
.em-is-vendor .hp-page__content {
  color: #fff;
}

.em-is-vendor .hp-page__content a {
  color: rgba(255,255,255,0.85);
}

.em-is-vendor .hp-page__content a:hover {
  color: #fff;
}

.em-is-vendor .hp-page__content .hp-page__title {
  color: #fff;
  font-family: 'Emilea', serif;
}

/* Listings page */
.em-is-vendor .hp-page__content .hp-listing__title,
.em-is-vendor .hp-page__content .hp-listing__content {
  color: #fff;
}

.em-is-vendor .hp-page__content .hp-listing {
  background: var(--vd-glass);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--vd-glass-border);
  border-radius: var(--vd-radius);
  padding: 16px;
  margin-bottom: 12px;
}

/* Messages thread list */
.em-is-vendor .hp-page__content .hp-message {
  background: var(--vd-glass) !important;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--vd-glass-border) !important;
  border-radius: var(--vd-radius) !important;
  padding: 18px !important;
  margin-bottom: 12px;
  color: #fff;
}

.em-is-vendor .hp-page__content .hp-message__author,
.em-is-vendor .hp-page__content .hp-message__date,
.em-is-vendor .hp-page__content .hp-message__text,
.em-is-vendor .hp-page__content .hp-message__details {
  color: #fff !important;
}

.em-is-vendor .hp-page__content .hp-message__date {
  color: rgba(255,255,255,0.6) !important;
}

.em-is-vendor .hp-page__content .hp-message__text {
  color: rgba(255,255,255,0.85) !important;
}

/* Message thread header */
.em-is-vendor .hp-page__content .hp-message__header {
  color: rgba(255,255,255,0.7);
}

/* Thread list (inbox) */
.em-is-vendor .hp-page__content .hp-messages__item,
.em-is-vendor .hp-page__content .hp-thread {
  background: var(--vd-glass) !important;
  border: 1px solid var(--vd-glass-border) !important;
  border-radius: var(--vd-radius) !important;
  margin-bottom: 10px;
  color: #fff !important;
}

.em-is-vendor .hp-page__content .hp-messages__item a,
.em-is-vendor .hp-page__content .hp-thread a {
  color: #fff !important;
}

.em-is-vendor .hp-page__content .hp-messages__item:hover,
.em-is-vendor .hp-page__content .hp-thread:hover,
.em-is-vendor .hp-page__content tr:hover,
.em-is-vendor .hp-page__content .hp-listing:hover {
  background: rgba(255,255,255,0.12) !important;
}

/* Forms (message compose, settings) */
.em-is-vendor .hp-page__content .hp-form__field label,
.em-is-vendor .hp-page__content .hp-form__label {
  color: rgba(255,255,255,0.8);
}

.em-is-vendor .hp-page__content input[type="text"],
.em-is-vendor .hp-page__content input[type="email"],
.em-is-vendor .hp-page__content input[type="url"],
.em-is-vendor .hp-page__content input[type="password"],
.em-is-vendor .hp-page__content textarea,
.em-is-vendor .hp-page__content select {
  background: var(--vd-glass) !important;
  border: 1px solid var(--vd-glass-border) !important;
  border-radius: 8px !important;
  color: #fff !important;
}

.em-is-vendor .hp-page__content input::placeholder,
.em-is-vendor .hp-page__content textarea::placeholder {
  color: rgba(255,255,255,0.4) !important;
}

/* Buttons in HP content */
.em-is-vendor .hp-page__content button[type="submit"],
.em-is-vendor .hp-page__content .hp-form__button,
.em-is-vendor .hp-page__content input[type="submit"] {
  background: var(--vd-primary) !important;
  color: #fff !important;
  border: 1px solid var(--vd-gold) !important;
  border-radius: 0 var(--vd-radius) 0 var(--vd-radius) !important;
}

/* Message view page — bubble styling */
.em-is-vendor .hp-page__content .hp-message--sent {
  background: var(--vd-primary) !important;
}

.em-is-vendor .hp-page__content .hp-message--received {
  background: var(--vd-glass) !important;
}

/* ══════════════════════════════════════════════
   HP Table → Card transformation (messages + listings)
   ══════════════════════════════════════════════ */

/* Page titles */
.em-is-vendor .hp-page__content > .hp-page__title {
  font-family: 'Emilea', serif;
  font-size: 30px;
  color: #fff;
  margin-bottom: 20px;
}

/* Break table layout → stacked cards */
.em-is-vendor .hp-table,
.em-is-vendor .hp-table tbody {
  display: block !important;
  width: 100% !important;
  border: none !important;
  background: transparent !important;
}

.em-is-vendor .hp-table tr {
  display: flex !important;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 10px;
  background: var(--vd-primary) !important;
  border: 1px solid var(--vd-glass-border) !important;
  border-radius: var(--vd-radius) !important;
  transition: background 0.18s;
}

.em-is-vendor .hp-table tr:hover {
  background: #4a5736 !important;
}

.em-is-vendor .hp-table td {
  display: block !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  color: #fff !important;
}

/* ── Messages thread list ── */
.em-is-vendor .hp-messages tr {
  flex-wrap: wrap;
}

.em-is-vendor .hp-message__sender {
  flex: 0 0 auto;
  min-width: 140px;
}

.em-is-vendor .hp-message__sender a {
  color: #fff !important;
  font-family: 'Gilroy', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.em-is-vendor .hp-message__sender .hp-icon {
  color: var(--vd-gold) !important;
  font-size: 14px;
}

.em-is-vendor .hp-message__listing {
  flex: 1;
  min-width: 0;
}

.em-is-vendor .hp-message__listing a {
  color: rgba(255,255,255,0.65) !important;
  font-size: 14px;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.em-is-vendor .hp-message__listing .hp-icon {
  font-size: 12px;
}

.em-is-vendor .hp-message__date {
  flex: 0 0 auto;
  margin-left: auto;
}

.em-is-vendor .hp-message__date time {
  color: rgba(255,255,255,0.5) !important;
  font-family: 'Gilroy', sans-serif;
  font-size: 13px;
}

/* Unread message indicator */
.em-is-vendor .hp-message:not(.hp-message--read) {
  border-left: 3px solid var(--vd-gold) !important;
}

/* ── Listings table ── */
.em-is-vendor .hp-listings tr {
  flex-wrap: nowrap;
}

.em-is-vendor .hp-listing__title {
  flex: 1;
  min-width: 0;
}

.em-is-vendor .hp-listing__title a {
  color: #fff !important;
  font-family: 'Gilroy', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.em-is-vendor .hp-listing__title .hp-icon {
  color: var(--vd-gold) !important;
  font-size: 14px;
}

.em-is-vendor .hp-listing__categories {
  flex: 0 0 auto;
  color: rgba(255,255,255,0.6) !important;
  font-size: 14px;
}

.em-is-vendor .hp-listing__date {
  flex: 0 0 auto;
  display: none !important;
}

.em-is-vendor .hp-listing__status {
  flex: 0 0 auto;
}

.em-is-vendor .hp-listing__actions {
  flex: 0 0 auto;
  display: flex !important;
  gap: 12px;
}

.em-is-vendor .hp-listing__actions a {
  color: rgba(255,255,255,0.7) !important;
  font-size: 18px;
  transition: color 0.18s;
}

.em-is-vendor .hp-listing__actions a:hover {
  color: var(--vd-gold) !important;
}
