﻿/* ==========================================================================
   QSNhire brand theme v3 — layered on top of Bootstrap 5 (CDN, see Site.Master
   and Dashboard.Master). Deep indigo-purple brand color (matches the logo),
   solid colour blocks instead of gradients, flat cards with soft borders.
   ========================================================================== */

:root {
  --qsn-purple: #33124f;
  --qsn-purple-dark: #201030;
  --qsn-purple-tint: #ece3f6;
  --qsn-purple-tint-text: #5c2d84;
  --qsn-lilac: #d9c4f2;
  --qsn-violet: #7c3a86;

  /* v5: shared purple-to-magenta gradient used on heroes, brand marks, CTA bands */
  --qsn-gradient-brand: linear-gradient(135deg, var(--qsn-purple), var(--qsn-pink, #d1477a));
  --qsn-gradient-hero: linear-gradient(135deg, var(--qsn-purple-dark) 0%, var(--qsn-purple) 40%, var(--qsn-violet) 75%, #d1477a 100%);
  --qsn-gradient-tint: linear-gradient(135deg, #ece3f6, #fbdce8);

  /* Buyer dashboard gets its own teal-to-purple gradient so it reads as a
     distinct "hat" a vendor can switch into, without leaving the brand family. */
  --qsn-gradient-buyer: linear-gradient(135deg, #0b4f45 0%, #1a7f6b 45%, var(--qsn-purple) 100%);

  --qsn-amber: #f2a20c;
  --qsn-amber-tint: #fdf1e0;
  --qsn-amber-tint-text: #92620a;

  --qsn-teal: #1a7f6b;
  --qsn-teal-tint: #cdeee6;

  --qsn-pink: #d1477a;
  --qsn-pink-tint: #fbdce8;

  --qsn-green: #1a7f4b;
  --qsn-green-tint: #e6f6ec;

  --qsn-surface: #faf9fc;
  --qsn-border: #e9e7ee;
  --qsn-text-muted: #6b7280;

  --qsn-radius: 0.85rem;
  --qsn-radius-lg: 1.1rem;
}

body {
  font-family: "Segoe UI", Roboto, -apple-system, sans-serif;
  background-color: #ffffff;
  color: #201030;
}

a { text-decoration: none; }

/* ---- Top navigation ---- */
.qsn-navbar {
  background-color: #ffffff;
  padding: 0.75rem 0;
  border-bottom: 0.5px solid var(--qsn-border);
}
.qsn-navbar .navbar-brand {
  color: var(--qsn-purple-dark) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.qsn-navbar .navbar-brand img { height: 32px; }
.qsn-brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--qsn-gradient-brand);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
}
.qsn-navbar .nav-link {
  color: #55506a !important;
  font-weight: 500;
  margin-left: 0.5rem;
}
.qsn-navbar .nav-link.active,
.qsn-navbar .nav-link:hover { color: var(--qsn-purple) !important; }

.qsn-pill-btn {
  border-radius: 0.65rem;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  border: 1px solid transparent;
  display: inline-block;
}
.qsn-pill-btn.pill-light { background-color: #fff; color: var(--qsn-purple) !important; border-color: #d9cfe6; }
.qsn-pill-btn.pill-dark { background: var(--qsn-gradient-brand); color: #fff !important; }
.qsn-pill-btn.pill-dark:hover { filter: brightness(0.94); color: #fff !important; }
.qsn-pill-btn.pill-outline { background-color: #fff; color: var(--qsn-purple) !important; border-color: #d9cfe6; }

/* ---- Hero action buttons (sit on the solid purple hero, need their own contrast) ---- */
.qsn-hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.btn-hero {
  padding: 0.55rem 1.15rem;
  border-radius: 0.6rem;
  font-weight: 500;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-hero-solid { background: #fff; color: var(--qsn-purple); }
.btn-hero-solid:hover { background: var(--qsn-lilac); color: var(--qsn-purple); }
.btn-hero-outline { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.3); }
.btn-hero-outline:hover { background: rgba(255,255,255,0.22); color: #fff; }
.btn-hero-amber { background: linear-gradient(120deg, var(--qsn-amber), var(--qsn-pink)); color: #fff; }
.btn-hero-amber:hover { filter: brightness(0.95); color: #fff; }

/* ---- Hero (v5: purple-to-magenta gradient) ---- */
.qsn-hero {
  background: var(--qsn-gradient-hero);
  color: #fff;
  padding: 3.5rem 0;
  position: relative;
  /* Deliberately no overflow:hidden - it was clipping the search suggestions
     dropdown. The decoration below is a background gradient, which clips
     itself, so nothing here needs to. */
}
.qsn-hero::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  /* The same soft corner circle as before, drawn as a gradient. A background
     is clipped to its own box automatically, so the hero no longer needs
     overflow:hidden - which is what was cutting off the search dropdown. */
  background: radial-gradient(circle 160px at calc(100% + 60px) -140px,
                              rgba(255,255,255,0.05) 0 100%,
                              transparent 100%);
}
.qsn-hero .container { position: relative; z-index: 1; }
.qsn-hero h1 { font-weight: 500; font-size: 2.25rem; line-height: 1.3; }
.qsn-hero .lead { color: var(--qsn-lilac); font-size: 0.95rem; }
.qsn-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: var(--qsn-lilac);
  font-size: 0.75rem;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-weight: 500;
  margin-bottom: 1rem;
}

.qsn-search-box {
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.35rem;
  max-width: 480px;
}
.qsn-search-box .form-control {
  border: none;
  height: 2.75rem;
  border-radius: 0.5rem;
}
.qsn-search-box .form-control:focus { box-shadow: none; }
.qsn-search-box .btn-search {
  background: var(--qsn-gradient-brand);
  color: #fff;
  border-radius: 0.5rem;
  border: none;
  height: 2.75rem;
  padding: 0 1.5rem;
  font-weight: 500;
}
.qsn-search-box .btn-search:hover { filter: brightness(0.94); color: #fff; }

.qsn-hero-panel {
  background: rgba(255,255,255,0.08);
  border-radius: var(--qsn-radius-lg);
  padding: 1.25rem;
}
.qsn-hero-panel .qsn-mini-card {
  background: #fff;
  border-radius: 0.65rem;
  padding: 0.75rem 0.9rem;
  display: flex; align-items: center; gap: 0.65rem;
  color: #201030;
}
.qsn-hero-panel .qsn-mini-card + .qsn-mini-card { margin-top: 0.6rem; }
.qsn-mini-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--qsn-purple-tint); flex-shrink: 0; }

/* ---- CTA band (also gradient, closes out the home page) ---- */
.qsn-cta-band {
  background: var(--qsn-gradient-hero);
  color: #fff;
  padding: 2rem 0;
}
.qsn-cta-band p { color: var(--qsn-lilac); margin-bottom: 0; }
.qsn-cta-band .btn-cta {
  background: #fff; color: var(--qsn-purple); border: none;
  font-weight: 500; padding: 0.6rem 1.4rem; border-radius: 0.65rem;
  white-space: nowrap;
}

/* ---- Section headings ---- */
.qsn-section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9c8a9c;
  font-size: 0.75rem;
  font-weight: 600;
}
.qsn-section-title { color: #201030; font-weight: 500; }

/* ---- Category cards (flat, icon-chip style) ---- */
.qsn-category-card {
  background: #fff;
  border: 1px solid var(--qsn-border);
  border-radius: var(--qsn-radius);
  padding: 1rem;
  text-align: center;
  height: 100%;
  transition: border-color .15s ease;
}
.qsn-category-card:hover { border-color: var(--qsn-purple); }
.qsn-category-icon {
  width: 40px; height: 40px; border-radius: 0.65rem;
  background: var(--qsn-gradient-tint);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.5rem;
  color: var(--qsn-purple-tint-text);
  font-size: 1.1rem;
}
.qsn-category-card .label { font-size: 0.8rem; color: #374151; font-weight: 500; margin: 0; }
.qsn-category-card.show-more .qsn-category-icon { background: var(--qsn-gradient-brand); color: #fff; }

/* Mobile: show only the first 9 categories, reveal the rest with "Show more".
   Visibility is toggled with Bootstrap's d-none/d-block utilities (not a custom
   display override) so the grid item keeps the same box type as its siblings. */
.qsn-show-more-link {
  display: block; text-align: center; color: var(--qsn-purple-tint-text);
  font-size: 0.85rem; font-weight: 500; margin-top: 0.75rem;
}
@media (min-width: 768px) {
  .qsn-show-more-link { display: none; }
}

/* ---- Vendor / service cards ---- */
.qsn-service-card {
  border: 1px solid var(--qsn-border);
  border-radius: var(--qsn-radius);
  overflow: hidden;
  height: 100%;
  background: #fff;
}
.qsn-service-card .cover {
  height: 90px;
  background: var(--qsn-gradient-tint);
}
.qsn-service-card .body { padding: 0.85rem 1rem; }
.qsn-service-card .name { font-weight: 500; margin: 0; color: #201030; font-size: 0.9rem; }
.qsn-service-card .meta { font-size: 0.8rem; color: var(--qsn-text-muted); margin: 0.25rem 0 0; }

/* ---- Steps ("How to get started") ---- */
.qsn-step-icon {
  width: 44px; height: 44px; border-radius: 0.65rem;
  background: var(--qsn-purple-tint);
  display: flex; align-items: center; justify-content: center;
  color: var(--qsn-purple-tint-text); flex-shrink: 0;
}

/* ---- Footer ---- */
.qsn-footer { background-color: var(--qsn-purple-dark); color: #cbb9cb; padding-top: 3rem; }
.qsn-footer h5 { color: #fff; font-weight: 500; }
.qsn-footer a { color: #cbb9cb; text-decoration: none; }
.qsn-footer a:hover { color: #fff; }
.qsn-footer .socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.1); margin-right: 0.5rem;
}

/* ---- Auth pages: split panel (brand + form) ---- */
.qsn-auth-shell {
  border: 1px solid var(--qsn-border);
  border-radius: 1.25rem;
  overflow: hidden;
  min-height: 480px;
  display: flex;
}
.qsn-auth-brand {
  background: var(--qsn-gradient-hero);
  color: #fff;
  flex: 1 1 45%;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.qsn-auth-brand::before {
  content: "";
  position: absolute; top: -70px; right: -50px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.qsn-auth-brand > * { position: relative; z-index: 1; }
.qsn-auth-brand.order-panel-right { order: 2; }
.qsn-auth-brand .headline { font-size: 1.4rem; font-weight: 500; line-height: 1.35; margin-bottom: 0.5rem; }
.qsn-auth-brand .sub { color: var(--qsn-lilac); font-size: 0.9rem; margin: 0; }
.qsn-auth-brand .dots { display: flex; gap: 6px; }
.qsn-auth-brand .dots span { width: 6px; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.3); display: inline-block; }
.qsn-auth-brand .dots span.on { width: 20px; background: #fff; }

.qsn-auth-form {
  background: #fff;
  flex: 1 1 55%;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.qsn-auth-form h2 { font-size: 1.15rem; font-weight: 500; color: #201030; margin-bottom: 0.25rem; }
.qsn-auth-form .sub { color: var(--qsn-text-muted); font-size: 0.85rem; margin-bottom: 1.25rem; }
.qsn-auth-form .form-control,
.qsn-auth-form .form-select { border-radius: 0.5rem; border-color: #e5e7eb; padding: 0.55rem 0.75rem; }
.qsn-auth-form .btn-auth {
  background: var(--qsn-gradient-brand); color: #fff; border: none; font-weight: 500;
  border-radius: 0.5rem; padding: 0.6rem; width: 100%;
}
.qsn-auth-form .btn-auth:hover { filter: brightness(0.95); color: #fff; }
.qsn-auth-switch { text-align: center; font-size: 0.85rem; color: var(--qsn-text-muted); margin-top: 1rem; }
.qsn-auth-switch a { color: var(--qsn-purple-tint-text); font-weight: 500; }

@media (max-width: 767.98px) {
  .qsn-auth-shell { flex-direction: column; }
  .qsn-auth-brand.order-panel-right { order: -1; }
  .qsn-auth-brand { padding: 1.75rem; }
}

/* ---- Dashboard shell v6: gradient grouped sidebar + top search bar + gradient hero ---- */
.qsn-dash-sidebar {
  background: linear-gradient(170deg, #201030 0%, #33124f 45%, #5c2160 100%);
  border-right: none;
  min-height: 100vh;
  padding: 1.25rem 0.6rem;
}
.qsn-sidebar-group-label {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.07em;
  color: rgba(217, 196, 242, 0.55); text-transform: uppercase;
  margin: 1rem 0.7rem 0.3rem;
}
.qsn-sidebar-group-label:first-of-type { margin-top: 0.35rem; }
.qsn-dash-sidebar a {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  padding: 0.55rem 0.7rem; color: rgba(255, 255, 255, 0.72); text-decoration: none;
  font-weight: 500; font-size: 0.85rem; border-radius: 0.6rem; margin: 0.12rem 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.qsn-dash-sidebar a .link-label { display: flex; align-items: center; gap: 0.65rem; }
.qsn-dash-sidebar a .link-label i { font-size: 1rem; opacity: 0.85; }
.qsn-dash-sidebar a:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }
.qsn-dash-sidebar a.active {
  background: rgba(255, 255, 255, 0.16); color: #fff;
  box-shadow: inset 3px 0 0 var(--qsn-pink);
}
.qsn-dash-sidebar a.active .link-label i { opacity: 1; }
.qsn-sidebar-badge {
  background: var(--qsn-pink); color: #fff;
  font-size: 0.65rem; font-weight: 600; padding: 0.05rem 0.45rem; border-radius: 20px;
}
.qsn-sidebar-profile {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.75rem 0.6rem 0.3rem; margin-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.qsn-sidebar-profile .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.72rem; font-weight: 600;
  flex-shrink: 0;
}
.qsn-sidebar-profile .name { font-size: 0.78rem; font-weight: 500; color: #fff; margin: 0; }
.qsn-sidebar-profile .role { margin: 0; }
.qsn-sidebar-profile .role a {
  font-size: 0.68rem; color: rgba(217, 196, 242, 0.7) !important;
  padding: 0; margin: 0; display: inline;
}
.qsn-sidebar-profile .role a:hover { background: none; color: #fff !important; }

/* Top bar with search */
.qsn-dash-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.5rem; background: #fff; border-bottom: 1px solid var(--qsn-border);
}
.qsn-dash-search {
  display: flex; align-items: center; gap: 0.5rem;
  background: #f5f4f8; border-radius: 0.6rem; padding: 0.5rem 0.85rem;
  max-width: 380px; width: 100%; color: #9ca3af; font-size: 0.8rem;
}
.qsn-dash-topbar .icons { display: flex; align-items: center; gap: 1rem; color: #55506a; font-size: 1.05rem; }

/* Gradient hero banner inside the dashboard */
.qsn-dash-hero {
  background: var(--qsn-gradient-hero);
  border-radius: var(--qsn-radius-lg);
  padding: 1.75rem 2rem;
  color: #fff;
  margin-bottom: 1.25rem;
}
.qsn-dash-hero .eyebrow {
  display: inline-block; background: rgba(255,255,255,0.14); color: #f0dcf5;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 0.25rem 0.75rem; border-radius: 20px; margin-bottom: 0.75rem;
}
.qsn-dash-hero h3 { font-size: 1.35rem; font-weight: 600; color: #fff; margin: 0 0 0.4rem; }
.qsn-dash-hero p.sub { font-size: 0.8rem; color: #e6d3ee; margin: 0 0 1rem; max-width: 380px; }
.qsn-dash-hero .btn-hero-solid,
.qsn-dash-hero .btn-hero-outline { font-size: 0.75rem; }
.qsn-dash-hero-panel {
  background: rgba(255,255,255,0.1); border-radius: var(--qsn-radius);
  padding: 1rem 1.2rem;
}

/* Gradient icon-badge stat cards */
.qsn-stat-card {
  background: #fff; border: 1px solid var(--qsn-border); border-radius: var(--qsn-radius);
  padding: 1rem; height: 100%;
}
.qsn-stat-card .top-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.85rem; }
.qsn-stat-card .stat-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.03em; color: #9ca3af; text-transform: uppercase; }
.qsn-stat-card .icon-badge {
  width: 32px; height: 32px; border-radius: 0.55rem;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.qsn-stat-card .stat-value { font-size: 1.25rem; font-weight: 600; margin: 0; color: #201030; }
.qsn-stat-card .stat-note { font-size: 0.7rem; margin: 0.25rem 0 0; }

.icon-badge.tone-purple { background: linear-gradient(135deg, var(--qsn-purple), var(--qsn-violet)); }
.icon-badge.tone-amber  { background: linear-gradient(135deg, var(--qsn-pink), var(--qsn-amber)); }
.icon-badge.tone-teal   { background: linear-gradient(135deg, var(--qsn-teal), var(--qsn-purple)); }
.icon-badge.tone-pink   { background: linear-gradient(135deg, var(--qsn-amber), var(--qsn-pink)); }

.qsn-wallet-card {
  background: var(--qsn-gradient-hero);
  color: #fff;
  border-radius: var(--qsn-radius-lg);
  padding: 1.5rem 1.75rem;
}

.qsn-tile {
  background: #fff; border: 1px solid var(--qsn-border); border-radius: var(--qsn-radius);
  text-align: center; padding: 1.25rem 1rem;
}

.qsn-list-card {
  background: #fff; border: 1px solid var(--qsn-border); border-radius: var(--qsn-radius);
  padding: 1rem;
}
.qsn-list-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0; border-bottom: 0.5px solid var(--qsn-border);
}
.qsn-list-row:last-child { border-bottom: none; }
.qsn-list-row .icon-chip {
  width: 30px; height: 30px; border-radius: 0.5rem;
  background: var(--qsn-purple-tint); color: var(--qsn-purple-tint-text);
  display: flex; align-items: center; justify-content: center;
}
.qsn-status-badge {
  font-size: 0.75rem; padding: 0.2rem 0.65rem; border-radius: 20px; font-weight: 500;
}
.qsn-status-badge.status-open { background: var(--qsn-green-tint); color: var(--qsn-green); }
.qsn-status-badge.status-pending { background: var(--qsn-amber-tint); color: var(--qsn-amber-tint-text); }
.qsn-status-badge.status-completed { background: var(--qsn-purple-tint); color: var(--qsn-purple-tint-text); }

/* Simple grid "table" used for job-offer / requests lists */
.qsn-mini-table .row-head {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.03em; color: #9ca3af;
  text-transform: uppercase; padding: 0.5rem 0.4rem; border-bottom: 1px solid var(--qsn-border);
}
.qsn-mini-table .row-item {
  padding: 0.6rem 0.4rem; border-bottom: 1px solid #f6f5f9; align-items: center;
}
.qsn-mini-table .row-item:last-child { border-bottom: none; }

/* ---- Buyer dashboard: same shell, teal-forward accent instead of purple/magenta ---- */
.qsn-role-buyer .qsn-dash-hero { background: var(--qsn-gradient-buyer); }
.qsn-role-buyer .icon-badge.tone-purple { background: linear-gradient(135deg, var(--qsn-teal), #0b4f45); }
.qsn-role-buyer .icon-badge.tone-amber  { background: linear-gradient(135deg, var(--qsn-teal), var(--qsn-amber)); }
.qsn-role-buyer .icon-badge.tone-teal   { background: linear-gradient(135deg, #0b4f45, var(--qsn-purple)); }
.qsn-role-buyer .qsn-wallet-card { background: var(--qsn-gradient-buyer); }
.qsn-role-buyer .btn-hero-solid { color: #0b4f45; }
.qsn-role-buyer .btn-hero-solid:hover { color: #0b4f45; background: #cdeee6; }

/* Small pill used on both dashboards to jump to the other "hat" without re-authenticating */
.qsn-role-switch {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.3);
  font-size: 0.72rem; font-weight: 500; padding: 0.3rem 0.75rem; border-radius: 20px;
}
.qsn-role-switch:hover { background: rgba(255,255,255,0.22); color: #fff; }

/* ---- Mobile bottom nav (dashboard) ---- */
.qsn-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
  background: var(--qsn-purple-dark); display: flex; justify-content: space-around;
  padding: 0.5rem 0;
}
.qsn-bottom-nav a { color: #c9bcd8; text-align: center; font-size: 0.7rem; text-decoration: none; }
.qsn-bottom-nav a i { display: block; font-size: 1.1rem; margin-bottom: 2px; }

@media (max-width: 767.98px) {
  .qsn-hero h1 { font-size: 1.6rem; }
  .qsn-hero { padding: 2rem 0; }
}



/* ---- Upload dropzone (replaces the plain native file input look) ---- */
.qsn-upload-drop {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1.5px dashed var(--qsn-border);
    border-radius: 0.75rem;
    padding: 0.9rem 1rem;
    background: #fbfafc;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

    .qsn-upload-drop:hover {
        border-color: var(--qsn-purple);
        background: var(--qsn-purple-tint);
    }

    .qsn-upload-drop .icon {
        width: 38px;
        height: 38px;
        border-radius: 0.6rem;
        background: var(--qsn-gradient-tint);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--qsn-purple-tint-text);
        font-size: 1.05rem;
        flex-shrink: 0;
    }

    .qsn-upload-drop .text strong {
        display: block;
        font-size: 0.82rem;
        color: #201030;
        font-weight: 500;
    }

    .qsn-upload-drop .text span {
        font-size: 0.72rem;
        color: var(--qsn-text-muted);
    }

    .qsn-upload-drop input[type="file"] {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
        width: 100%;
        height: 100%;
    }

/* ---- Quill editor, themed to match the rest of the form ---- */
.qsn-editor .ql-toolbar.ql-snow {
    border: 1px solid #e5e7eb;
    border-bottom: none;
    border-radius: 0.65rem 0.65rem 0 0;
    background: #fbfafc;
}

.qsn-editor .ql-container.ql-snow {
    border: 1px solid #e5e7eb;
    border-radius: 0 0 0.65rem 0.65rem;
    font-size: 0.85rem;
    background: #fff;
}

.qsn-editor .ql-editor {
    min-height: 130px;
}

    .qsn-editor .ql-editor.ql-blank::before {
        font-style: normal;
        color: #9ca3af;
    }

/* ---- Form field groups: consistent label + spacing rhythm ---- */
.qsn-field-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: #55506a;
    margin-bottom: 0.35rem;
    display: block;
}

.qsn-field-group {
    margin-bottom: 1.1rem;
}

/* ---- Store/service item cards (list on the right) ---- */
.qsn-item-card {
    border: 1px solid var(--qsn-border);
    border-radius: var(--qsn-radius);
    padding: 0.85rem;
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

    .qsn-item-card:last-child {
        margin-bottom: 0;
    }

    .qsn-item-card .thumb {
        width: 56px;
        height: 56px;
        border-radius: 0.65rem;
        flex-shrink: 0;
        background: var(--qsn-gradient-tint);
        background-size: cover;
        background-position: center;
    }

    .qsn-item-card .info {
        flex: 1 1 160px;
        min-width: 0;
    }

        .qsn-item-card .info .name {
            margin: 0;
            color: #201030;
            font-weight: 500;
            font-size: 0.9rem;
        }

        .qsn-item-card .info .price {
            margin: 0.15rem 0 0;
            color: var(--qsn-text-muted);
            font-size: 0.8rem;
        }

    .qsn-item-card .actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }



/* Job offer tabs */
.qsn-tab-nav {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.qsn-tab-pill {
    padding: .45rem 1rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--qsn-text-muted);
    background: #fff;
    border: 1px solid #ece4f2;
    text-decoration: none;
}

    .qsn-tab-pill.active {
        background: var(--qsn-gradient-brand, linear-gradient(135deg, #33124f, #d1477a));
        color: #fff;
        border-color: transparent;
    }

/* Chat */
.qsn-chat-shell {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #ece4f2;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.qsn-chat-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #ece4f2;
}

.qsn-chat-messages {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    max-height: 460px;
    overflow-y: auto;
    background: #f3f0f7;
}

.qsn-chat-row {
    display: flex;
    align-items: flex-end;
    gap: .5rem;
    max-width: 78%;
}

    .qsn-chat-row.theirs {
        align-self: flex-start;
    }

    .qsn-chat-row.mine {
        align-self: flex-end;
        flex-direction: row-reverse;
    }

.qsn-chat-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--qsn-purple-tint);
    color: var(--qsn-purple-tint-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    font-weight: 600;
    flex-shrink: 0;
}

.qsn-chat-row.mine .qsn-chat-avatar {
    background: var(--qsn-gradient-brand, linear-gradient(135deg, #33124f, #d1477a));
    color: #fff;
}

.qsn-chat-bubble {
    padding: .6rem .9rem;
    border-radius: 14px;
    font-size: .85rem;
    box-shadow: 0 1px 2px rgba(32, 16, 48, 0.06);
}

    .qsn-chat-bubble.mine {
        background: var(--qsn-gradient-brand, linear-gradient(135deg, #33124f, #d1477a));
        color: #fff;
        border-bottom-right-radius: 4px;
    }

    .qsn-chat-bubble.theirs {
        background: #fff;
        color: #201030;
        border: 1px solid #ece4f2;
        border-bottom-left-radius: 4px;
    }

    .qsn-chat-bubble .text {
        margin: 0;
        white-space: pre-wrap;
        word-break: break-word;
        line-height: 1.4;
    }

    .qsn-chat-bubble .chat-image {
        max-width: 220px;
        border-radius: 10px;
        margin-top: .35rem;
        display: block;
    }

    .qsn-chat-bubble .time {
        display: block;
        font-size: .65rem;
        opacity: .7;
        margin-top: .3rem;
    }

.qsn-chat-composer {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem 1.25rem;
    border-top: 1px solid #ece4f2;
    background: #fff;
}

.qsn-chat-attach {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f5eefa;
    color: var(--qsn-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

    .qsn-chat-attach input[type=file] {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
    }

.qsn-chat-composer .form-control {
    flex: 1;
    border-radius: 999px;
}

/* Conversation list */
.qsn-conversation-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 0;
    border-bottom: 1px solid #f1eaf6;
    text-decoration: none;
    color: inherit;
}

    .qsn-conversation-row:last-child {
        border-bottom: none;
    }

    .qsn-conversation-row .avatar {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: var(--qsn-gradient-brand, linear-gradient(135deg, #33124f, #d1477a));
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: .85rem;
        flex-shrink: 0;
    }

    .qsn-conversation-row .body {
        flex: 1;
        min-width: 0;
    }

    .qsn-conversation-row .top {
        display: flex;
        justify-content: space-between;
        gap: .5rem;
    }

    .qsn-conversation-row .name {
        font-weight: 500;
        color: #201030;
        font-size: .9rem;
    }

    .qsn-conversation-row .job {
        font-size: .75rem;
        color: var(--qsn-text-muted);
    }

    .qsn-conversation-row .preview {
        display: block;
        font-size: .8rem;
        color: var(--qsn-text-muted);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .qsn-conversation-row .meta {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: .3rem;
        flex-shrink: 0;
    }

    .qsn-conversation-row .time {
        font-size: .7rem;
        color: var(--qsn-text-muted);
    }

.unread-dot {
    background: var(--qsn-pink);
    color: #fff;
    font-size: .65rem;
    padding: .1rem .4rem;
    border-radius: 999px;
}

/* 3-column inbox layout (bid details / conversations dashboard) */
.qsn-inbox-shell {
    display: grid;
    grid-template-columns: 260px 1fr 260px;
    gap: 1rem;
    align-items: start;
}

@media (max-width: 1199.98px) {
    .qsn-inbox-shell {
        grid-template-columns: 240px 1fr;
    }

    .qsn-inbox-side {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .qsn-inbox-shell {
        grid-template-columns: 1fr;
    }
}

.qsn-inbox-list {
    background: #fff;
    border: 1px solid var(--qsn-border);
    border-radius: var(--qsn-radius-lg);
    padding: .65rem;
    max-height: 640px;
    overflow-y: auto;
}

.qsn-bidder-card {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .5rem;
    border-radius: .65rem;
    text-decoration: none;
    color: inherit;
}

    .qsn-bidder-card:hover,
    .qsn-bidder-card.active {
        background: var(--qsn-purple-tint);
    }

    .qsn-bidder-card .avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: var(--qsn-gradient-brand, linear-gradient(135deg, #33124f, #d1477a));
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: .7rem;
        font-weight: 600;
        flex-shrink: 0;
    }

    .qsn-bidder-card .info {
        flex: 1;
        min-width: 0;
    }

    .qsn-bidder-card .name {
        font-size: .85rem;
        font-weight: 500;
        color: #201030;
        margin: 0;
    }

    .qsn-bidder-card .sub {
        font-size: .72rem;
        color: var(--qsn-text-muted);
        margin: 0;
    }

.qsn-inbox-side {
    background: #fff;
    border: 1px solid var(--qsn-border);
    border-radius: var(--qsn-radius-lg);
    padding: 1rem;
}

    .qsn-inbox-side h6 {
        font-size: .68rem;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: #9ca3af;
        font-weight: 600;
        margin: 0 0 .6rem;
    }

    .qsn-inbox-side .field {
        margin-bottom: .8rem;
    }

        .qsn-inbox-side .field .label {
            font-size: .7rem;
            color: var(--qsn-text-muted);
            margin: 0;
        }

        .qsn-inbox-side .field .value {
            font-size: .85rem;
            color: #201030;
            margin: 0;
            font-weight: 500;
        }

.qsn-shared-files {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

    .qsn-shared-files img {
        width: 52px;
        height: 52px;
        border-radius: .5rem;
        object-fit: cover;
    }

.qsn-empty-thread {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    color: var(--qsn-text-muted);
    font-size: .85rem;
    text-align: center;
    padding: 2rem;
}

.qsn-inbox-shell .qsn-chat-shell {
    min-height: 480px;
    display: flex;
    flex-direction: column;
}

.qsn-inbox-shell .qsn-chat-messages {
    flex: 1;
}

/* Item / service detail page */
.qsn-detail-gallery .main-img {
    width: 100%;
    height: 340px;
    border-radius: var(--qsn-radius-lg);
    background: var(--qsn-gradient-tint);
    background-size: cover;
    background-position: center;
}

.qsn-detail-gallery .thumbs {
    display: flex;
    gap: .5rem;
    margin-top: .6rem;
    flex-wrap: wrap;
}

    .qsn-detail-gallery .thumbs img {
        width: 64px;
        height: 64px;
        border-radius: .6rem;
        object-fit: cover;
        cursor: pointer;
        border: 2px solid transparent;
    }

        .qsn-detail-gallery .thumbs img:hover {
            border-color: var(--qsn-purple);
        }

.qsn-detail-desc {
    font-size: .9rem;
    color: #374151;
}

    .qsn-detail-desc img {
        max-width: 100%;
    }

/* Profile-style service detail page */
.qsn-profile-banner {
    height: 300px;
    background: var(--qsn-gradient-tint);
    background-size: cover;
    background-position: center;
    position: relative;
}

.qsn-profile-head {
    position: relative;
    padding: 0 1.5rem;
    margin-top: -48px;
}

.qsn-profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 4px solid #fff;
    background: var(--qsn-gradient-brand, linear-gradient(135deg, #33124f, #d1477a));
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(32,16,48,.15);
}

.qsn-profile-stats {
    display: flex;
    gap: 3rem;
    padding: .75rem 0;
    margin-top: 52px;
}

    .qsn-profile-stats .stat .num {
        font-size: 1.35rem;
        font-weight: 700;
        color: #201030;
        margin: 0;
    }

    .qsn-profile-stats .stat .lbl {
        font-size: .8rem;
        color: var(--qsn-text-muted);
        margin: 0;
    }

.qsn-profile-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #201030;
    margin: .5rem 0 0;
    display: flex;
    align-items: center;
    gap: .4rem;
}

    .qsn-profile-name .bi-patch-check-fill {
        color: var(--qsn-green);
        font-size: 1rem;
    }

.qsn-profile-meta {
    color: #374151;
    font-size: .9rem;
    margin: 0;
}

.qsn-profile-actions {
    display: flex;
    gap: .75rem;
    padding: 1rem 0;
    border-top: 1px solid var(--qsn-border);
    border-bottom: 1px solid var(--qsn-border);
    margin: 1rem 0;
}

    .qsn-profile-actions a {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .5rem;
        border: 1px solid #d9cfe6;
        border-radius: .6rem;
        padding: .6rem;
        color: var(--qsn-purple);
        font-weight: 500;
        font-size: .9rem;
        text-decoration: none;
    }

        .qsn-profile-actions a:hover {
            background: var(--qsn-purple-tint);
        }

.qsn-profile-section {
    padding: 1rem 0;
    border-bottom: 1px solid var(--qsn-border);
}

    .qsn-profile-section h5 {
        font-size: 1.05rem;
        font-weight: 600;
        color: #201030;
        margin-bottom: .6rem;
    }

.qsn-profile-gallery {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}

    .qsn-profile-gallery img {
        width: 110px;
        height: 110px;
        object-fit: cover;
        border-radius: .65rem;
        cursor: pointer;
    }

/* Profile settings page */
.qsn-settings-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--qsn-gradient-brand, linear-gradient(135deg, #33124f, #d1477a));
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    flex-shrink: 0;
}

.qsn-locked-field {
    background: #f5f4f8;
    border: 1px solid var(--qsn-border);
    border-radius: .5rem;
    padding: .55rem .75rem;
    font-size: .9rem;
    color: var(--qsn-text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

    .qsn-locked-field .bi-lock {
        font-size: .8rem;
    }

.qsn-profile-map iframe {
    width: 100%;
    height: 260px;
    border: 0;
    border-radius: var(--qsn-radius-lg);
}

.qsn-distance-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--qsn-teal-tint);
    color: var(--qsn-teal);
    font-size: .8rem;
    font-weight: 500;
    padding: .3rem .8rem;
    border-radius: 20px;
    margin-bottom: .6rem;
}

/* Vendor cards on home / marketplace */
.qsn-vendor-card {
    background: #fff;
    border: 1px solid var(--qsn-border);
    border-radius: var(--qsn-radius);
    padding: 1.1rem 1rem;
    text-align: center;
    height: 100%;
    display: block;
    text-decoration: none;
    transition: border-color .15s ease;
}

    .qsn-vendor-card:hover {
        border-color: var(--qsn-purple);
    }

    .qsn-vendor-card .avatar {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        margin: 0 auto .6rem;
        background: var(--qsn-gradient-brand, linear-gradient(135deg, #33124f, #d1477a));
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-weight: 600;
        font-size: 1rem;
    }

    .qsn-vendor-card .name {
        font-size: .9rem;
        font-weight: 500;
        color: #201030;
        margin: 0;
    }

    .qsn-vendor-card .meta {
        font-size: .78rem;
        color: var(--qsn-text-muted);
        margin: .15rem 0 0;
    }

    .qsn-vendor-card .rating {
        font-size: .78rem;
        color: var(--qsn-amber);
        margin: .3rem 0 0;
    }

/* Service card price row */
.qsn-service-card .price {
    font-size: .85rem;
    font-weight: 500;
    color: var(--qsn-purple);
    margin: .3rem 0 0;
}

.qsn-service-card .cover {
    background-size: cover;
    background-position: center;
}

/* Search autocomplete */
.qsn-search-wrap {
    position: relative;
    max-width: 480px;
}

.qsn-suggest-box {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: .75rem;
    box-shadow: 0 8px 24px rgba(32, 16, 48, .18);
    overflow: hidden;
    display: none;
    z-index: 1050;
    max-height: 340px;
    overflow-y: auto;
}

.qsn-suggest-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .6rem .85rem;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 1px solid #f4f1f7;
}

    .qsn-suggest-item:last-child {
        border-bottom: none;
    }

    .qsn-suggest-item:hover,
    .qsn-suggest-item.active {
        background: var(--qsn-purple-tint);
    }

    .qsn-suggest-item .thumb {
        width: 34px;
        height: 34px;
        border-radius: .5rem;
        flex-shrink: 0;
        background: var(--qsn-gradient-tint);
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--qsn-purple-tint-text);
        font-size: .9rem;
    }

    .qsn-suggest-item .txt {
        min-width: 0;
    }

    .qsn-suggest-item .label {
        margin: 0;
        font-size: .85rem;
        font-weight: 500;
        color: #201030;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .qsn-suggest-item .sub {
        margin: 0;
        font-size: .72rem;
        color: var(--qsn-text-muted);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.qsn-suggest-empty {
    padding: .8rem .85rem;
    font-size: .8rem;
    color: var(--qsn-text-muted);
}

/* Logo sizing */
.qsn-logo {
    height: 34px;
    width: auto;
}

.qsn-logo-sidebar {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
}

.qsn-logo-footer {
    height: 34px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Sidebar: drawer on mobile, static on desktop */
.qsn-dash-sidebar {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

@media (max-width: 991.98px) {
    .qsn-dash-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1045;
        transform: translateX(-100%);
        transition: transform .22s ease;
        box-shadow: 0 0 24px rgba(32, 16, 48, .18);
        overflow-y: auto;
    }

        .qsn-dash-sidebar.open {
            transform: translateX(0);
        }

    .qsn-sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(32, 16, 48, .45);
        z-index: 1040;
        opacity: 0;
        pointer-events: none;
        transition: opacity .22s ease;
    }

        .qsn-sidebar-backdrop.show {
            opacity: 1;
            pointer-events: auto;
        }
}

@media (min-width: 992px) {
    .qsn-sidebar-backdrop {
        display: none;
    }
}

.qsn-menu-toggle {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #55506a;
    padding: 0 .5rem 0 0;
    line-height: 1;
}

/* Topbar icons with badges */
.qsn-icon-btn {
    position: relative;
    color: #55506a;
    font-size: 1.05rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

    .qsn-icon-btn:hover {
        color: var(--qsn-purple);
    }

.qsn-icon-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--qsn-pink);
    color: #fff;
    font-size: .6rem;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Notifications dropdown */
.qsn-notif-menu {
    width: 310px;
    padding: 0;
    border: 1px solid var(--qsn-border);
    border-radius: .75rem;
    box-shadow: 0 8px 24px rgba(32, 16, 48, .14);
    overflow: hidden;
}

.qsn-notif-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .7rem .9rem;
    border-bottom: 1px solid var(--qsn-border);
    font-size: .85rem;
    font-weight: 500;
    color: #201030;
}

.qsn-notif-item {
    display: flex;
    gap: .6rem;
    padding: .65rem .9rem;
    border-bottom: 1px solid #f4f1f7;
    text-decoration: none;
    color: inherit;
}

    .qsn-notif-item:last-child {
        border-bottom: none;
    }

    .qsn-notif-item:hover {
        background: #faf8fc;
    }

    .qsn-notif-item.unread {
        background: var(--qsn-purple-tint);
    }

    .qsn-notif-item i {
        color: var(--qsn-purple);
        font-size: .95rem;
        margin-top: 2px;
    }

    .qsn-notif-item .msg {
        display: block;
        font-size: .8rem;
        color: #201030;
        line-height: 1.4;
    }

    .qsn-notif-item .time {
        display: block;
        font-size: .68rem;
        color: var(--qsn-text-muted);
        margin-top: 2px;
    }

.qsn-notif-empty {
    padding: 1.2rem .9rem;
    text-align: center;
    font-size: .8rem;
    color: var(--qsn-text-muted);
}

/* Topbar layout with the hamburger */
.qsn-dash-topbar {
    gap: .75rem;
}

    .qsn-dash-topbar .icons {
        gap: 1.35rem;
    }
/* ---- Topbar user chip + account dropdown ---- */
.qsn-user-chip {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .25rem .5rem .25rem .25rem;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background .15s ease, border-color .15s ease;
}

    .qsn-user-chip:hover {
        background: #f5f4f8;
        border-color: var(--qsn-border);
    }

    .qsn-user-chip .avatar {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: var(--qsn-gradient-brand);
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: .74rem;
        font-weight: 600;
        flex-shrink: 0;
    }

    .qsn-user-chip .uname {
        display: block;
        font-size: .8rem;
        font-weight: 500;
        color: #201030;
        line-height: 1.15;
    }

    .qsn-user-chip .urole {
        display: block;
        font-size: .68rem;
        color: var(--qsn-text-muted);
        line-height: 1.15;
    }

    .qsn-user-chip .bi-chevron-down {
        font-size: .7rem;
        color: var(--qsn-text-muted);
    }

.qsn-user-menu {
    width: 250px;
    padding: 0;
    border: 1px solid var(--qsn-border);
    border-radius: .75rem;
    box-shadow: 0 8px 24px rgba(32, 16, 48, .14);
    overflow: hidden;
    margin-top: .4rem;
}

.qsn-user-menu-head {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem .9rem;
    background: var(--qsn-gradient-hero);
}

    .qsn-user-menu-head .avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .2);
        border: 1px solid rgba(255, 255, 255, .35);
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: .8rem;
        font-weight: 600;
        flex-shrink: 0;
    }

    .qsn-user-menu-head .uname {
        margin: 0;
        font-size: .85rem;
        font-weight: 600;
        color: #fff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .qsn-user-menu-head .uemail {
        margin: 0;
        font-size: .7rem;
        color: #e6d3ee;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.qsn-user-menu-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .6rem .9rem;
    font-size: .84rem;
    color: #3f3d4a;
    text-decoration: none;
}

    .qsn-user-menu-item i {
        font-size: .95rem;
        color: var(--qsn-purple);
        width: 16px;
    }

    .qsn-user-menu-item:hover {
        background: var(--qsn-purple-tint);
        color: var(--qsn-purple);
    }

    .qsn-user-menu-item.danger { color: #a32d2d; }

        .qsn-user-menu-item.danger i { color: #a32d2d; }

        .qsn-user-menu-item.danger:hover {
            background: #fceaea;
            color: #a32d2d;
        }

.qsn-user-menu-sep {
    height: 1px;
    background: var(--qsn-border);
    margin: .25rem 0;
}

/* ---- Compact dashboard hero (welcome + wallet in one card) ---- */
.qsn-hero-compact {
    padding: 1.4rem 1.6rem;
}

    .qsn-hero-compact h3 {
        margin-bottom: 0;
    }

    .qsn-hero-compact .qsn-dash-hero-panel {
        padding: 1rem 1.2rem;
    }

/* ---- Clickable stat cards ---- */
a.qsn-stat-link {
    display: block;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

    a.qsn-stat-link:hover {
        border-color: var(--qsn-purple);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(32, 16, 48, .09);
    }

    a.qsn-stat-link .stat-value {
        color: #201030;
    }

/* ---- Back link ---- */
.qsn-back-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    font-weight: 500;
    color: var(--qsn-purple-tint-text);
    text-decoration: none;
}

    .qsn-back-link:hover { color: var(--qsn-purple); }

/* ---- Job offer detail: facts, steps, bid summary ---- */
.qsn-eyebrow-chip {
    display: inline-block;
    background: var(--qsn-purple-tint);
    color: var(--qsn-purple-tint-text);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .06em;
    padding: .2rem .6rem;
    border-radius: 20px;
    margin-bottom: .45rem;
}

.qsn-job-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #201030;
    margin: 0;
}/* Numbered step cards */
.qsn-step-head {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin-bottom: 1rem;
}

.qsn-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--qsn-gradient-brand);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qsn-step-title {
    margin: 0;
    font-size: .98rem;
    font-weight: 600;
    color: #201030;
    line-height: 1.3;
}

.qsn-step-sub {
    margin: .1rem 0 0;
    font-size: .78rem;
    color: var(--qsn-text-muted);
    line-height: 1.45;
}

.qsn-hint {
    font-size: .72rem;
    color: var(--qsn-text-muted);
    margin: .35rem 0 0;
}

    .qsn-hint i { margin-right: .2rem; }

/* Placed-bid summary */
.qsn-bid-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: #faf8fc;
    border: 1px solid var(--qsn-border);
    border-radius: .75rem;
    padding: .9rem 1.1rem;
}

    .qsn-bid-summary .lbl {
        margin: 0;
        font-size: .7rem;
        color: var(--qsn-text-muted);
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .qsn-bid-summary .amt {
        margin: .1rem 0 0;
        font-size: 1.45rem;
        font-weight: 700;
        color: var(--qsn-purple);
    }

.qsn-next-step {
    margin-top: .8rem;
    background: var(--qsn-purple-tint);
    border-radius: .65rem;
    padding: .75rem .9rem;
    font-size: .8rem;
    color: #3f3d4a;
    line-height: 1.55;
}

    .qsn-next-step i {
        color: var(--qsn-purple);
        margin-right: .3rem;
    }

/* Empty chat state */
.qsn-chat-empty {
    margin: auto;
    text-align: center;
    color: var(--qsn-text-muted);
    padding: 1.5rem 1rem;
}

    .qsn-chat-empty i {
        font-size: 1.9rem;
        color: var(--qsn-lilac);
        display: block;
        margin-bottom: .5rem;
    }

    .qsn-chat-empty p:first-of-type {
        font-weight: 500;
        color: #55506a;
        font-size: .88rem;
    }

/* ---- Compact offer-details card ---- */
.qsn-offer-card .qsn-job-title {
    font-size: 1.05rem;
    margin: .15rem 0 .8rem;
}

.qsn-offer-rows {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    row-gap: .5rem;
    margin: 0;
    font-size: .84rem;
}

    .qsn-offer-rows dt {
        color: var(--qsn-text-muted);
        font-weight: 500;
        white-space: nowrap;
    }

        .qsn-offer-rows dt i {
            margin-right: .3rem;
            color: var(--qsn-purple);
        }

    .qsn-offer-rows dd {
        margin: 0;
        color: #201030;
        font-weight: 500;
        line-height: 1.5;
        min-width: 0;
    }

@media (max-width: 575.98px) {
    .qsn-offer-rows {
        grid-template-columns: 1fr;
        row-gap: .15rem;
    }

        .qsn-offer-rows dd { margin-bottom: .5rem; }
}

/* Read more / show less */
.qsn-desc .rest { display: none; }
.qsn-desc.open .rest { display: inline; }
.qsn-desc.open .ellipsis { display: none; }

.qsn-read-more {
    color: var(--qsn-purple-tint-text);
    font-weight: 600;
    font-size: .8rem;
    white-space: nowrap;
}

    .qsn-read-more:hover { color: var(--qsn-purple); }

/* ---- Buttons: compact, coloured ---- */
.qsn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .42rem 1.05rem;
    border-radius: .55rem;
    font-size: .82rem;
    font-weight: 500;
    line-height: 1.3;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: filter .15s ease, background .15s ease, color .15s ease;
}

.qsn-btn-primary {
    background: var(--qsn-gradient-brand);
    color: #fff !important;
}

    .qsn-btn-primary:hover { filter: brightness(.93); color: #fff !important; }

.qsn-btn-soft {
    background: var(--qsn-purple-tint);
    color: var(--qsn-purple-tint-text) !important;
}

    .qsn-btn-soft:hover {
        background: #e0d2ef;
        color: var(--qsn-purple) !important;
    }

.qsn-btn-danger {
    background: #fceaea;
    color: #a32d2d !important;
}

    .qsn-btn-danger:hover { background: #f7d9d9; color: #8d2525 !important; }

/* Upgrade the plain bootstrap outline buttons used across the dashboard */
.btn-outline-secondary {
    --bs-btn-color: var(--qsn-purple-tint-text);
    --bs-btn-border-color: #dcd0ea;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--qsn-purple);
    --bs-btn-hover-border-color: var(--qsn-purple);
    --bs-btn-active-bg: var(--qsn-purple);
    --bs-btn-active-border-color: var(--qsn-purple);
    font-weight: 500;
}

.btn-sm {
    --bs-btn-padding-y: .3rem;
    --bs-btn-padding-x: .75rem;
    --bs-btn-font-size: .78rem;
    --bs-btn-border-radius: .5rem;
}

.btn-outline-danger {
    --bs-btn-color: #a32d2d;
    --bs-btn-border-color: #f0cfcf;
    --bs-btn-hover-bg: #a32d2d;
    --bs-btn-hover-border-color: #a32d2d;
    font-weight: 500;
}

/* ---- Mobile inbox: list OR thread, never both ---- */
.qsn-chat-back {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--qsn-purple-tint);
    color: var(--qsn-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    font-size: 1rem;
}

    .qsn-chat-back:hover {
        background: var(--qsn-purple);
        color: #fff;
    }

@media (max-width: 991.98px) {
    /* One full-width column so the open thread isn't squeezed into
       the leftover sidebar track of the desktop grid. */
    .qsn-inbox-shell {
        grid-template-columns: 1fr;
    }

    /* Default: only the conversation list is visible */
    .qsn-inbox-shell > .qsn-chat-shell {
        display: none;
    }

    /* A conversation is open: swap to the thread full-width */
    .qsn-inbox-shell.has-thread > .qsn-inbox-list {
        display: none;
    }

    .qsn-inbox-shell.has-thread > .qsn-chat-shell {
        display: flex;
    }

    .qsn-inbox-shell .qsn-chat-shell {
        min-height: calc(100vh - 190px);
    }

    .qsn-inbox-shell .qsn-inbox-list {
        max-height: none;
    }
}

/* ---- Icon send button (keeps the composer text box wide) ---- */
.qsn-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--qsn-gradient-brand);
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    transition: filter .15s ease;
}

    .qsn-send-btn:hover {
        filter: brightness(.92);
        color: #fff !important;
    }

    .qsn-send-btn i { line-height: 1; }

/* ---- Wallet panel inside the hero ---- */
.qsn-wallet-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (min-width: 992px) {
    /* Desktop keeps the stacked look on the right of the hero */
    .qsn-wallet-panel {
        display: block;
    }

        .qsn-wallet-panel .btn-hero { margin-top: .75rem; }
}

@media (max-width: 991.98px) {
    /* Wallet sits above the welcome block, as one tidy row */
    .qsn-hero-compact .qsn-wallet-panel {
        margin-bottom: .35rem;
    }

    .qsn-hero-compact h3 {
        font-size: 1.2rem;
    }
}

/* ---- Diagnostic log box ---- */
.qsn-log-box {
    background: #201030;
    color: #d9c4f2;
    border-radius: .65rem;
    padding: .8rem .9rem;
    font-size: .72rem;
    line-height: 1.6;
    max-height: 240px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}

/* ---- Sectioned forms (post a service / store item) ---- */
.qsn-form-card {
    padding: 1.25rem 1.35rem 1.35rem;
}

.qsn-form-section {
    border-top: 1px solid var(--qsn-border);
    padding-top: 1.1rem;
    margin-top: 1.25rem;
}

.qsn-form-section-title {
    font-size: .82rem;
    font-weight: 600;
    color: var(--qsn-purple);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 0 0 .9rem;
}

    .qsn-form-section-title i {
        margin-right: .35rem;
        font-size: .9rem;
    }

.qsn-form-actions {
    border-top: 1px solid var(--qsn-border);
    padding-top: 1.1rem;
    margin-top: 1.25rem;
}

.qsn-location-map {
    height: 200px;
    border-radius: .75rem;
    overflow: hidden;
    border: 1px solid var(--qsn-border);
}

/* Address autocomplete. Scoped to .qsn-suggest-wrap so it stops overriding
   the main search dropdown, which shares the .qsn-suggest-box class name. */
.qsn-suggest-wrap { position: relative; }

.qsn-suggest-wrap > .qsn-suggest-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid var(--qsn-border);
    border-radius: .5rem;
    box-shadow: 0 4px 12px rgba(32, 16, 48, .1);
    display: none;
    max-height: 220px;
    overflow-y: auto;
}

/* Upload dropzone: stack icon over text when the column is narrow */
@media (max-width: 575.98px) {
    .qsn-upload-drop {
        flex-direction: column;
        text-align: center;
        gap: .4rem;
    }
}

/* ---- Chat attachments: video + file cards ---- */
.qsn-chat-bubble .chat-video {
    max-width: 240px;
    width: 100%;
    border-radius: 10px;
    margin-top: .35rem;
    display: block;
    background: #000;
}

.qsn-chat-bubble .chat-file {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-top: .35rem;
    padding: .55rem .7rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, .18);
    text-decoration: none;
}

.qsn-chat-bubble.theirs .chat-file {
    background: var(--qsn-purple-tint);
}

.qsn-chat-bubble .chat-file .ico {
    font-size: 1.35rem;
    line-height: 1;
    color: inherit;
}

.qsn-chat-bubble.theirs .chat-file .ico { color: var(--qsn-purple); }

.qsn-chat-bubble .chat-file .nm {
    display: block;
    font-size: .8rem;
    font-weight: 500;
    color: inherit;
}

.qsn-chat-bubble.theirs .chat-file .nm { color: #201030; }

.qsn-chat-bubble .chat-file .sub {
    display: block;
    font-size: .68rem;
    opacity: .75;
    color: inherit;
}

.qsn-chat-bubble.theirs .chat-file .sub { color: var(--qsn-text-muted); }

/* ---- Upload feedback: a file has been chosen ---- */
.qsn-upload-drop.has-file {
    border-style: solid;
    border-color: var(--qsn-green);
    background: var(--qsn-green-tint);
}

    .qsn-upload-drop.has-file .icon {
        background: var(--qsn-green);
        color: #fff;
    }

    .qsn-upload-drop.has-file .text strong {
        color: #14603b;
        word-break: break-all;
    }

    .qsn-upload-drop.has-file .text span {
        color: #2f7d55;
    }

/* Chat composer: attached-file chip above the input row */
.qsn-attach-chip {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 1.25rem;
    padding: .5rem .7rem;
    background: var(--qsn-purple-tint);
    border-radius: .6rem;
    font-size: .78rem;
    color: var(--qsn-purple);
}

    .qsn-attach-chip .nm {
        font-weight: 500;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        flex: 1;
        min-width: 0;
    }

    .qsn-attach-chip .sz {
        color: var(--qsn-text-muted);
        flex-shrink: 0;
    }

.qsn-chat-attach.has-file {
    background: var(--qsn-green-tint);
    color: var(--qsn-green);
}

/* ============ Marketplace ============ */
.qsn-hero-market {
    padding: 2.75rem 0 3rem;
}

    .qsn-hero-market h1 {
        font-size: 1.9rem;
        margin-bottom: .4rem;
    }

/* Search bar sitting in the hero */
.qsn-market-search {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border-radius: 999px;
    padding: .4rem .4rem .4rem 1.1rem;
    max-width: 620px;
    box-shadow: 0 8px 24px rgba(32, 16, 48, .18);
}

    .qsn-market-search > i {
        color: var(--qsn-text-muted);
        font-size: 1rem;
        flex-shrink: 0;
    }

    .qsn-market-search .form-control {
        border: none;
        box-shadow: none;
        padding: .5rem .25rem;
        font-size: .92rem;
    }

        .qsn-market-search .form-control:focus { box-shadow: none; }

.qsn-btn-search {
    background: var(--qsn-gradient-brand);
    color: #fff !important;
    border-radius: 999px;
    padding: .55rem 1.5rem;
    font-weight: 500;
    font-size: .85rem;
    border: none;
    flex-shrink: 0;
}

    .qsn-btn-search:hover { filter: brightness(.93); }

/* Filter panel */
.qsn-filter-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--qsn-border);
    border-radius: var(--qsn-radius);
    padding: .75rem 1rem;
    font-size: .9rem;
    font-weight: 500;
    color: #201030;
    margin-bottom: 1rem;
}

    .qsn-filter-toggle i:first-child { color: var(--qsn-purple); margin-right: .4rem; }

.qsn-filter-card {
    background: #fff;
    border: 1px solid var(--qsn-border);
    border-radius: var(--qsn-radius-lg);
    padding: 1.1rem 1.15rem;
}

@media (min-width: 992px) {
    .qsn-filter-card {
        position: sticky;
        top: 1rem;
    }
}

.qsn-filter-title {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--qsn-purple);
    margin: 0 0 1rem;
}

    .qsn-filter-title i { margin-right: .3rem; }

/* Checkbox rendered as a selectable pill */
.qsn-check-pill {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .7rem;
    border: 1px solid var(--qsn-border);
    border-radius: .6rem;
    margin-bottom: .5rem;
    font-size: .85rem;
    color: #3f3d4a;
    cursor: pointer;
}

    .qsn-check-pill:hover { border-color: var(--qsn-purple); }

    .qsn-check-pill input[type=checkbox] {
        accent-color: var(--qsn-purple);
        width: 16px;
        height: 16px;
    }

    .qsn-check-pill i { color: var(--qsn-purple); }

/* Results header */
.qsn-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 1rem;
}

    .qsn-results-head .count {
        margin: 0;
        font-size: .9rem;
        color: var(--qsn-text-muted);
    }

        .qsn-results-head .count strong { color: #201030; }

.qsn-filter-chips {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
}

.qsn-filter-chip {
    background: var(--qsn-purple-tint);
    color: var(--qsn-purple-tint-text);
    font-size: .75rem;
    font-weight: 500;
    padding: .25rem .7rem;
    border-radius: 999px;
}

.qsn-filter-clear {
    font-size: .75rem;
    font-weight: 500;
    color: var(--qsn-pink);
    text-decoration: none;
}

    .qsn-filter-clear:hover { text-decoration: underline; }

/* Product grid */
.qsn-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1rem;
}

@media (max-width: 575.98px) {
    .qsn-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .75rem;
    }
}

.qsn-product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--qsn-border);
    border-radius: var(--qsn-radius);
    overflow: hidden;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

    .qsn-product-card:hover {
        transform: translateY(-3px);
        border-color: var(--qsn-purple);
        box-shadow: 0 10px 24px rgba(32, 16, 48, .1);
    }

    .qsn-product-card .cover {
        display: block;
        position: relative;
        aspect-ratio: 4 / 3;
        background: var(--qsn-gradient-tint);
        background-size: cover;
        background-position: center;
    }

    .qsn-product-card .type-badge {
        position: absolute;
        top: .5rem;
        left: .5rem;
        font-size: .65rem;
        font-weight: 600;
        padding: .2rem .55rem;
        border-radius: 999px;
        backdrop-filter: blur(4px);
    }

        .qsn-product-card .type-badge.item {
            background: rgba(255, 255, 255, .92);
            color: var(--qsn-purple);
        }

        .qsn-product-card .type-badge.service {
            background: rgba(51, 18, 79, .88);
            color: #fff;
        }

    .qsn-product-card .body {
        display: flex;
        flex-direction: column;
        gap: .2rem;
        padding: .7rem .8rem .8rem;
        flex: 1;
    }

    .qsn-product-card .name {
        font-size: .88rem;
        font-weight: 500;
        color: #201030;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .qsn-product-card .vendor {
        font-size: .74rem;
        color: var(--qsn-text-muted);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

        .qsn-product-card .vendor i { margin-right: .2rem; }

    .qsn-product-card .foot {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .4rem;
        margin-top: auto;
        padding-top: .5rem;
    }

    .qsn-product-card .price {
        font-size: .88rem;
        font-weight: 600;
        color: var(--qsn-purple);
    }

    .qsn-product-card .rating {
        font-size: .72rem;
        font-weight: 500;
        color: var(--qsn-amber-tint-text);
        background: var(--qsn-amber-tint);
        padding: .15rem .45rem;
        border-radius: 999px;
        white-space: nowrap;
    }

        .qsn-product-card .rating .cnt {
            color: var(--qsn-text-muted);
            font-weight: 400;
        }

        .qsn-product-card .rating.new {
            background: var(--qsn-teal-tint);
            color: var(--qsn-teal);
        }

/* Empty state */
.qsn-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--qsn-text-muted);
}

    .qsn-empty-state i {
        font-size: 2.4rem;
        color: var(--qsn-lilac);
        display: block;
        margin-bottom: .75rem;
    }

    .qsn-empty-state .hd {
        font-size: 1rem;
        font-weight: 500;
        color: #201030;
        margin: 0 0 .25rem;
    }

    .qsn-empty-state .sub {
        font-size: .85rem;
        margin: 0 0 1rem;
    }

/* ---- Marketplace hero search + suggestions ---- */
.qsn-market-search-wrap {
    position: relative;
    max-width: 620px;
}

    .qsn-market-search-wrap .qsn-suggest-box {
        top: calc(100% + 8px);
        border-radius: .75rem;
        box-shadow: 0 10px 28px rgba(32, 16, 48, .22);
        border: none;
    }

/* ---- Listing detail: gallery ---- */
.qsn-gallery .main {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--qsn-radius-lg);
    background: var(--qsn-gradient-tint);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--qsn-border);
}

.qsn-gallery .thumbs {
    display: flex;
    gap: .5rem;
    margin-top: .65rem;
    flex-wrap: wrap;
}

    .qsn-gallery .thumbs img {
        width: 66px;
        height: 66px;
        object-fit: cover;
        border-radius: .6rem;
        cursor: pointer;
        border: 2px solid transparent;
        transition: border-color .15s ease;
    }

        .qsn-gallery .thumbs img:hover,
        .qsn-gallery .thumbs img.active {
            border-color: var(--qsn-purple);
        }

/* ---- Listing detail: right panel ---- */
.qsn-detail-title {
    font-size: 1.55rem;
    font-weight: 600;
    color: #201030;
    margin: .5rem 0 .35rem;
    line-height: 1.25;
}

.qsn-detail-price {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--qsn-purple);
    margin: 0 0 1rem;
}

/* Seller strip */
.qsn-seller-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem .85rem;
    border: 1px solid var(--qsn-border);
    border-radius: var(--qsn-radius);
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease;
}

    .qsn-seller-card:hover {
        border-color: var(--qsn-purple);
        background: #faf8fc;
    }

    .qsn-seller-card .av {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: var(--qsn-gradient-brand);
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: .8rem;
        font-weight: 600;
        flex-shrink: 0;
    }

    .qsn-seller-card .info {
        flex: 1;
        min-width: 0;
    }

    .qsn-seller-card .nm {
        display: block;
        font-size: .9rem;
        font-weight: 500;
        color: #201030;
    }

    .qsn-seller-card .sub {
        display: block;
        font-size: .75rem;
        color: var(--qsn-text-muted);
    }

    .qsn-seller-card .bi-chevron-right {
        color: var(--qsn-text-muted);
        font-size: .8rem;
    }

/* Call / WhatsApp / Share row */
.qsn-contact-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    margin-top: .75rem;
}

    .qsn-contact-row a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .4rem;
        padding: .6rem .4rem;
        border: 1px solid #d9cfe6;
        border-radius: .6rem;
        font-size: .82rem;
        font-weight: 500;
        color: var(--qsn-purple);
        text-decoration: none;
    }

        .qsn-contact-row a:hover {
            background: var(--qsn-purple-tint);
            border-color: var(--qsn-purple);
        }

        .qsn-contact-row a .bi-whatsapp { color: #25d366; }

/* Review / report ghost buttons */
.qsn-detail-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--qsn-border);
}

.qsn-ghost-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: none;
    border: none;
    padding: .35rem .5rem;
    font-size: .82rem;
    font-weight: 500;
    color: var(--qsn-purple-tint-text);
    border-radius: .5rem;
}

    .qsn-ghost-btn:hover {
        background: var(--qsn-purple-tint);
        color: var(--qsn-purple);
    }

    .qsn-ghost-btn.danger { color: #a32d2d; }

        .qsn-ghost-btn.danger:hover { background: #fceaea; }

/* Inline collapsible forms */
.qsn-inline-form {
    background: #faf8fc;
    border: 1px solid var(--qsn-border);
    border-radius: var(--qsn-radius);
    padding: 1rem;
    margin-top: .75rem;
}

    .qsn-inline-form.danger {
        background: #fdf6f6;
        border-color: #f0d9d9;
    }

    .qsn-inline-form .hd {
        font-size: .88rem;
        font-weight: 600;
        color: #201030;
        margin: 0 0 .75rem;
    }

/* ============ Activation / forgot / review cards ============ */
.qsn-activate-wrap {
    display: flex;
    justify-content: center;
    padding: 2.5rem 1rem 4rem;
    background: var(--qsn-surface);
    min-height: 70vh;
}

.qsn-activate-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: var(--qsn-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(32, 16, 48, .1);
    border: 1px solid var(--qsn-border);
}

.qsn-activate-head {
    background: var(--qsn-gradient-hero);
    padding: 1.75rem 1.5rem 1.5rem;
    text-align: center;
}

    .qsn-activate-head .logo {
        height: 34px;
        width: auto;
        filter: brightness(0) invert(1);
        margin-bottom: .85rem;
    }

    .qsn-activate-head .hd {
        color: #fff;
        font-size: 1.15rem;
        font-weight: 600;
        margin: 0;
    }

    .qsn-activate-head .sub {
        color: #e6d3ee;
        font-size: .82rem;
        margin: .2rem 0 0;
    }

.qsn-activate-body {
    padding: 1.5rem;
}

    .qsn-activate-body .intro {
        font-size: .87rem;
        color: #3f3d4a;
        line-height: 1.6;
        margin-bottom: 1.1rem;
        text-align: center;
    }

/* Big OTP box */
.qsn-otp-field {
    margin-bottom: 1rem;
}

    .qsn-otp-field .form-control {
        text-align: center;
        font-size: 1.6rem;
        font-weight: 700;
        letter-spacing: .5rem;
        padding: .7rem .5rem;
        color: var(--qsn-purple);
        border: 2px solid var(--qsn-border);
        border-radius: .75rem;
    }

        .qsn-otp-field .form-control:focus {
            border-color: var(--qsn-purple);
            box-shadow: 0 0 0 3px var(--qsn-purple-tint);
        }

.qsn-activate-foot {
    text-align: center;
    margin-top: 1rem;
    font-size: .82rem;
    color: var(--qsn-text-muted);
}

    .qsn-activate-foot a {
        color: var(--qsn-purple-tint-text);
        font-weight: 500;
        margin-left: .25rem;
    }

.qsn-activate-signout {
    border-top: 1px solid var(--qsn-border);
    padding: .85rem;
    text-align: center;
    font-size: .78rem;
    color: var(--qsn-text-muted);
    background: #faf8fc;
}

    .qsn-activate-signout a {
        color: var(--qsn-purple-tint-text);
        font-weight: 500;
    }

/* Star picker on the public review page */
.qsn-star-picker {
    display: flex;
    align-items: center;
    gap: .3rem;
}

    .qsn-star-picker button {
        background: none;
        border: none;
        padding: 0;
        font-size: 1.7rem;
        line-height: 1;
        color: #e2dbe9;
        transition: color .12s ease, transform .12s ease;
    }

        .qsn-star-picker button:hover { transform: scale(1.12); }

        .qsn-star-picker button.on { color: var(--qsn-amber); }

    .qsn-star-picker .lbl {
        margin-left: .5rem;
        font-size: .82rem;
        font-weight: 500;
        color: var(--qsn-text-muted);
    }

/* Vendor's share-a-review panel */
.qsn-share-review .form-control {
    flex: 1;
    min-width: 200px;
    font-size: .8rem;
    background: #faf8fc;
}

/* ============ Global loading feedback ============ */
.qsn-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

    .qsn-progress.on { opacity: 1; }

    .qsn-progress .fill {
        display: block;
        height: 100%;
        width: 0;
        background: linear-gradient(90deg, #33124f, #7c3a86, #d1477a);
        box-shadow: 0 0 8px rgba(209, 71, 122, .6);
        transition: width .18s ease;
    }

/* Busy state on whatever was clicked */
.qsn-busy {
    position: relative;
    pointer-events: none;
    opacity: .75;
}

    /* Spinner for buttons and pill links */
    .qsn-btn.qsn-busy,
    .btn.qsn-busy,
    .btn-auth.qsn-busy,
    .qsn-pill-btn.qsn-busy,
    .btn-hero.qsn-busy,
    .qsn-send-btn.qsn-busy {
        color: transparent !important;
    }

        .qsn-btn.qsn-busy::after,
        .btn.qsn-busy::after,
        .btn-auth.qsn-busy::after,
        .qsn-pill-btn.qsn-busy::after,
        .btn-hero.qsn-busy::after,
        .qsn-send-btn.qsn-busy::after {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            width: 15px;
            height: 15px;
            margin: -8px 0 0 -8px;
            border: 2px solid currentColor;
            border-top-color: transparent;
            border-radius: 50%;
            animation: qsn-spin .6s linear infinite;
            color: #fff;
        }

    /* Light buttons need a dark spinner */
    .btn-outline-secondary.qsn-busy::after,
    .qsn-btn-soft.qsn-busy::after,
    .btn-hero-solid.qsn-busy::after {
        color: var(--qsn-purple);
    }

    /* Cards, menu items and plain links just dim + show a wait cursor */
    a.qsn-busy:not(.btn):not(.qsn-btn):not(.qsn-pill-btn):not(.btn-hero) {
        opacity: .55;
    }

@keyframes qsn-spin {
    to { transform: rotate(360deg); }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .qsn-progress .fill { transition: none; }

    .qsn-busy::after { animation-duration: 1.6s; }
}

/* ============ Error / not-found page ============ */
.qsn-error-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 1rem 5rem;
    background: var(--qsn-surface);
    min-height: 65vh;
    text-align: center;
}

.qsn-error-card {
    max-width: 460px;
}

    .qsn-error-card .code {
        font-size: 3.4rem;
        font-weight: 700;
        line-height: 1;
        background: var(--qsn-gradient-hero);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        margin-bottom: .5rem;
    }

    .qsn-error-card .hd {
        font-size: 1.25rem;
        font-weight: 600;
        color: #201030;
        margin: 0 0 .4rem;
    }

    .qsn-error-card .sub {
        font-size: .9rem;
        color: var(--qsn-text-muted);
        margin: 0 0 1.5rem;
        line-height: 1.6;
    }

    .qsn-error-card .actions {
        display: flex;
        gap: .6rem;
        justify-content: center;
        flex-wrap: wrap;
    }

/* ============ Admin console ============ */
.qsn-admin-sidebar {
    background: linear-gradient(170deg, #10131f 0%, #1b2033 50%, #2b1240 100%);
}

.qsn-admin-badge {
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 20px;
    padding: .2rem .6rem;
    margin: 0 .6rem .5rem;
    display: inline-block;
}

.qsn-admin-title {
    font-size: .95rem;
    font-weight: 600;
    color: #201030;
    flex: 1;
}

/* Queue split on the dashboard */
.qsn-queue-split {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
}

    .qsn-queue-split .q {
        display: block;
        text-align: center;
        padding: 1rem .5rem;
        border: 1px solid var(--qsn-border);
        border-radius: var(--qsn-radius);
        text-decoration: none;
        transition: border-color .15s ease, transform .15s ease;
    }

        .qsn-queue-split .q:hover {
            border-color: var(--qsn-purple);
            transform: translateY(-2px);
        }

    .qsn-queue-split .ico {
        width: 34px;
        height: 34px;
        border-radius: .6rem;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto .5rem;
        color: #fff;
    }

    .qsn-queue-split .tone-service { background: linear-gradient(135deg, #33124f, #7c3a86); }
    .qsn-queue-split .tone-item { background: linear-gradient(135deg, #d1477a, #f2a20c); }
    .qsn-queue-split .tone-offer { background: linear-gradient(135deg, #1a7f6b, #33124f); }

    .qsn-queue-split .n {
        display: block;
        font-size: 1.5rem;
        font-weight: 700;
        color: #201030;
        line-height: 1;
    }

    .qsn-queue-split .l {
        display: block;
        font-size: .75rem;
        color: var(--qsn-text-muted);
        margin-top: .2rem;
    }

/* Moderation cards */
.qsn-mod-card {
    display: flex;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--qsn-border);
    border-radius: var(--qsn-radius);
    padding: 1rem;
    margin-bottom: .85rem;
    flex-wrap: wrap;
}

    .qsn-mod-card .thumb {
        width: 92px;
        height: 92px;
        border-radius: .7rem;
        background: var(--qsn-gradient-tint);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--qsn-purple);
        font-size: 1.5rem;
        flex-shrink: 0;
    }

        .qsn-mod-card .thumb.flag {
            background: #fceaea;
            color: #a32d2d;
        }

        .qsn-mod-card .thumb[style*="background-image"] i { display: none; }

    .qsn-mod-card .body {
        flex: 1 1 260px;
        min-width: 0;
    }

    .qsn-mod-card .ttl {
        font-size: .98rem;
        font-weight: 600;
        color: #201030;
        margin: 0 0 .2rem;
    }

    .qsn-mod-card .meta {
        font-size: .78rem;
        color: var(--qsn-text-muted);
        margin: 0 0 .4rem;
    }

        .qsn-mod-card .meta .sep { margin: 0 .3rem; }

    .qsn-mod-card .desc {
        font-size: .82rem;
        color: #3f3d4a;
        line-height: 1.5;
        margin: 0;
    }

    .qsn-mod-card .actions {
        flex: 0 0 190px;
        min-width: 170px;
    }

.qsn-reject-note {
    margin-top: .5rem;
    font-size: .78rem;
    color: #a32d2d;
    background: #fdf6f6;
    border-radius: .5rem;
    padding: .4rem .6rem;
}

/* Kind chips */
.qsn-kind-chip {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .68rem;
    font-weight: 600;
    padding: .15rem .5rem;
    border-radius: 20px;
}

    .qsn-kind-chip.kind-service { background: var(--qsn-purple-tint); color: var(--qsn-purple-tint-text); }
    .qsn-kind-chip.kind-item { background: var(--qsn-amber-tint); color: var(--qsn-amber-tint-text); }
    .qsn-kind-chip.kind-offer { background: var(--qsn-teal-tint); color: var(--qsn-teal); }
    .qsn-kind-chip.kind-admin { background: #1b2033; color: #fff; }
    .qsn-kind-chip.kind-off { background: #fceaea; color: #a32d2d; }

.qsn-status-badge.status-rejected { background: #fceaea; color: #a32d2d; }

/* User rows */
.qsn-user-row {
    display: flex;
    align-items: center;
    gap: .85rem;
    background: #fff;
    border: 1px solid var(--qsn-border);
    border-radius: var(--qsn-radius);
    padding: .75rem 1rem;
    margin-bottom: .6rem;
    flex-wrap: wrap;
}

    .qsn-user-row.suspended { opacity: .6; background: #faf8fc; }

    .qsn-user-row .av {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--qsn-gradient-brand);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: .78rem;
        font-weight: 600;
        flex-shrink: 0;
    }

    .qsn-user-row .info { flex: 1 1 240px; min-width: 0; }

    .qsn-user-row .nm {
        margin: 0;
        font-size: .9rem;
        font-weight: 500;
        color: #201030;
        display: flex;
        align-items: center;
        gap: .4rem;
        flex-wrap: wrap;
    }

    .qsn-user-row .sub {
        margin: .15rem 0 0;
        font-size: .76rem;
        color: var(--qsn-text-muted);
    }

/* Permission comparison */
.qsn-perm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: .75rem;
}

    .qsn-perm-grid .perm {
        border: 1px solid var(--qsn-border);
        border-radius: var(--qsn-radius);
        padding: .85rem 1rem;
    }

        .qsn-perm-grid .perm.super {
            border-color: var(--qsn-purple);
            background: #faf8fc;
        }

    .qsn-perm-grid .lvl {
        font-size: .85rem;
        font-weight: 600;
        color: var(--qsn-purple);
        margin: 0 0 .5rem;
    }

    .qsn-perm-grid ul {
        margin: 0;
        padding-left: 1.1rem;
        font-size: .8rem;
        color: #3f3d4a;
        line-height: 1.7;
    }

/* Audit rows */
.qsn-audit-row {
    display: flex;
    flex-direction: column;
    padding: .5rem 0;
    border-bottom: 1px solid #f4f1f7;
    font-size: .78rem;
}

    .qsn-audit-row:last-child { border-bottom: none; }

    .qsn-audit-row .who { font-weight: 500; color: #201030; }
    .qsn-audit-row .what { color: var(--qsn-text-muted); }
    .qsn-audit-row .when { color: #b3aebd; font-size: .7rem; }

/* ---- Admin image manager ---- */
.qsn-admin-image {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .55rem 0;
    border-bottom: 1px solid #f4f1f7;
}

    .qsn-admin-image:last-of-type { border-bottom: none; }

    .qsn-admin-image .pic {
        width: 62px;
        height: 62px;
        border-radius: .6rem;
        background-size: cover;
        background-position: center;
        background-color: var(--qsn-gradient-tint);
        flex-shrink: 0;
    }

    .qsn-admin-image .meta { flex: 1; min-width: 0; }

    .qsn-admin-image .acts {
        display: flex;
        flex-direction: column;
        gap: .3rem;
    }

        .qsn-admin-image .acts .qsn-btn {
            padding: .25rem .6rem;
            font-size: .72rem;
        }

/* ==========================================================================
   VERIFICATION / KYC
   ========================================================================== */

/* --- Dashboard nudge banner --- */
.qsn-verify-banner {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem 1rem;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #f3ecfa 0%, #fdeef4 100%);
    border: 1px solid #e3d3f0;
    color: #33124f;
}

.qsn-verify-banner > i {
    font-size: 1.5rem;
    color: #7c3a86;
    flex: 0 0 auto;
}

.qsn-verify-banner > div {
    flex: 1 1 auto;
    min-width: 0;
}

.qsn-verify-banner strong {
    display: block;
    font-size: .92rem;
    line-height: 1.3;
}

.qsn-verify-banner span {
    display: block;
    font-size: .8rem;
    color: #6b5578;
    line-height: 1.4;
}

.qsn-verify-banner .qsn-btn {
    flex: 0 0 auto;
}

.qsn-verify-banner.pending {
    background: linear-gradient(135deg, #fff8e6 0%, #fdf3d8 100%);
    border-color: #f0dfae;
}

.qsn-verify-banner.pending > i { color: #b8860b; }

.qsn-verify-banner.danger {
    background: linear-gradient(135deg, #fdecec 0%, #fbe3ea 100%);
    border-color: #f2c9cf;
}

.qsn-verify-banner.danger > i { color: #c62b4a; }

@media (max-width: 575.98px) {
    .qsn-verify-banner {
        flex-wrap: wrap;
    }

    .qsn-verify-banner .qsn-btn {
        width: 100%;
        justify-content: center;
    }
}

/* --- Price card --- */
.qsn-price-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 1.5rem 1.4rem;
    color: #fff;
    background: linear-gradient(135deg, #33124f 0%, #7c3a86 60%, #d1477a 100%);
    box-shadow: 0 10px 28px rgba(51, 18, 79, .22);
}

.qsn-price-card .ribbon {
    position: absolute;
    top: 14px;
    right: -34px;
    transform: rotate(38deg);
    background: #ffc94d;
    color: #4a2b00;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: .3rem 2.6rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

.qsn-price-card .label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #e6d3ee;
    margin-bottom: .35rem;
}

.qsn-price-card .was {
    font-size: 1.05rem;
    color: #d7bde4;
    text-decoration: line-through;
    margin-right: .5rem;
}

.qsn-price-card .now {
    font-size: 2.35rem;
    font-weight: 700;
    line-height: 1.05;
    display: inline-block;
}

.qsn-price-card .save {
    display: inline-block;
    margin-top: .6rem;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    padding: .22rem .7rem;
    font-size: .76rem;
}

.qsn-price-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    font-size: .84rem;
}

.qsn-price-card ul li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin-bottom: .35rem;
    color: #f1e6f7;
}

.qsn-price-card ul li i { color: #9ff2c9; margin-top: .12rem; }

.qsn-paid-note {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: #eafaf1;
    border: 1px solid #b9e6cd;
    color: #14663c;
    border-radius: 12px;
    padding: .7rem .9rem;
    font-size: .86rem;
}

.qsn-paid-note i { font-size: 1.2rem; }

/* --- Locked step 2 --- */
.qsn-locked-step {
    position: relative;
}

.qsn-locked-step > .qsn-lock-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    border-radius: 16px;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    color: #6b5578;
}

.qsn-lock-overlay i {
    font-size: 1.9rem;
    color: #a98bbb;
    margin-bottom: .4rem;
}

.qsn-lock-overlay strong {
    color: #33124f;
    font-size: .95rem;
}

.qsn-lock-overlay span { font-size: .82rem; }

/* --- Camera capture --- */
.qsn-camera {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: #201030;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qsn-camera video,
.qsn-camera canvas,
.qsn-camera img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qsn-camera .cam-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    color: #d7bde4;
    text-align: center;
    padding: 1rem;
    font-size: .82rem;
    pointer-events: none;
}

.qsn-camera .cam-overlay i { font-size: 2rem; }

.qsn-camera.is-live .cam-overlay {
    inset: auto 0 0 0;
    background: linear-gradient(180deg, rgba(32,16,48,0) 0%, rgba(32,16,48,.7) 100%);
    padding: 2rem .8rem .7rem;
}

.qsn-camera .cam-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 62%;
    height: 78%;
    transform: translate(-50%, -50%);
    border: 2px dashed rgba(255, 255, 255, .45);
    border-radius: 50% / 42%;
    pointer-events: none;
}

/* --- Admin KYC review --- */
.qsn-kyc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .75rem;
}

.qsn-kyc-shot {
    border: 1px solid var(--qsn-border, #e8e2ee);
    border-radius: 12px;
    overflow: hidden;
    background: #faf8fc;
}

.qsn-kyc-shot img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.qsn-kyc-shot .cap {
    font-size: .72rem;
    color: #6b5578;
    padding: .35rem .5rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* --- Extra button + badge tones used by the verification screens --- */
.qsn-btn-success {
    background: #e6f7ee;
    color: #14663c !important;
    border: 1px solid #b9e6cd;
}

    .qsn-btn-success:hover { background: #d4f0e2; color: #0d4f2c !important; }

.qsn-btn-ghost {
    background: transparent;
    color: #6b5578 !important;
    border: 1px solid #e0d6e8;
}

    .qsn-btn-ghost:hover { background: #f6f1fa; color: #33124f !important; }

.qsn-status-badge.badge-success { background: #e6f7ee; color: #14663c; }
.qsn-status-badge.badge-danger  { background: #fceaea; color: #a32d2d; }
.qsn-status-badge.badge-warning { background: var(--qsn-amber-tint, #fdf3d8); color: var(--qsn-amber-tint-text, #8a6100); }
.qsn-status-badge.badge-muted   { background: #f0edf3; color: #6b5578; }

.qsn-avatar-initials {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .95rem;
    color: #fff;
    background: linear-gradient(135deg, #7c3a86 0%, #d1477a 100%);
}

/* ==========================================================================
   TAB NAV — plain anchors inside .qsn-tab-nav now pick up pill styling, so
   pages don't have to remember to add .qsn-tab-pill to every link.
   ========================================================================== */
.qsn-tab-nav > a {
    padding: .45rem 1rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--qsn-text-muted);
    background: #fff;
    border: 1px solid #ece4f2;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

    .qsn-tab-nav > a:hover {
        color: var(--qsn-purple, #7c3a86);
        border-color: #d9c7e6;
    }

    .qsn-tab-nav > a.active {
        background: var(--qsn-gradient-brand, linear-gradient(135deg, #33124f, #d1477a));
        color: #fff;
        border-color: transparent;
    }

/* ==========================================================================
   VERIFIED VENDOR BADGE — a word, not just a tick, so it reads at a glance.
   ========================================================================== */
.qsn-verified-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    vertical-align: middle;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .01em;
    white-space: nowrap;
    background: #e6f7ee;
    color: #14663c;
    border: 1px solid #b9e6cd;
}

    .qsn-verified-pill i { font-size: .8rem; }

    /* On the purple hero banners the green-on-white pill disappears. */
    .qsn-verified-pill.on-dark {
        background: rgba(255, 255, 255, .18);
        color: #fff;
        border-color: rgba(255, 255, 255, .35);
    }

    .qsn-verified-pill.on-dark i { color: #9ff2c9; }

/* Compact version for cards and list rows */
.qsn-verified-pill.sm {
    padding: .12rem .45rem;
    font-size: .66rem;
}

/* ==========================================================================
   REFERRALS
   ========================================================================== */
.qsn-referral-link {
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 12px;
    overflow: hidden;
    max-width: 480px;
}

    .qsn-referral-link input {
        flex: 1 1 auto;
        min-width: 0;
        background: transparent;
        border: 0;
        color: #fff;
        padding: .55rem .8rem;
        font-size: .82rem;
        outline: none;
    }

    .qsn-referral-link input::selection { background: rgba(255, 255, 255, .3); }

.qsn-copy-btn {
    flex: 0 0 auto;
    border: 0;
    background: rgba(255, 255, 255, .9);
    color: #33124f;
    font-size: .8rem;
    font-weight: 600;
    padding: 0 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

    .qsn-copy-btn:hover { background: #fff; }

/* Thin progress bar used on dark panels */
.qsn-mini-progress {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    overflow: hidden;
}

    .qsn-mini-progress > span {
        display: block;
        height: 100%;
        border-radius: 999px;
        background: linear-gradient(90deg, #ffc94d, #9ff2c9);
        transition: width .4s ease;
    }

.btn-hero.disabled,
.btn-hero:disabled {
    opacity: .55;
    pointer-events: none;
}

/* ==========================================================================
   PROFILE COMPLETION
   ========================================================================== */
.qsn-completion {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: .9rem 1.1rem;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #ece4f2;
}

.qsn-completion-ring {
    --pct: 0;
    position: relative;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 50%;
    background: conic-gradient(var(--qsn-purple, #7c3a86) calc(var(--pct) * 1%), #efe8f4 0);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .qsn-completion-ring::after {
        content: '';
        position: absolute;
        inset: 6px;
        border-radius: 50%;
        background: #fff;
    }

    .qsn-completion-ring span {
        position: relative;
        z-index: 1;
        font-size: .78rem;
        font-weight: 700;
        color: #33124f;
    }

.qsn-completion-body {
    flex: 1 1 220px;
    min-width: 0;
}

    .qsn-completion-body strong {
        display: block;
        font-size: .92rem;
        color: #201030;
    }

    .qsn-completion-body span {
        display: block;
        font-size: .8rem;
        color: #6b5578;
        line-height: 1.45;
    }

.qsn-completion-todo {
    display: inline-block;
    background: #f6f1fa;
    border-radius: 6px;
    padding: .08rem .4rem;
    margin: .15rem .2rem 0 0;
    font-size: .74rem;
    color: #6b5578;
}

@media (max-width: 575.98px) {
    .qsn-completion .qsn-btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   VENDOR DIRECTORY
   ========================================================================== */
.qsn-vendor-dir-card {
    display: block;
    height: 100%;
    background: #fff;
    border: 1px solid #ece4f2;
    border-radius: 16px;
    padding: 1.25rem 1rem;
    text-align: center;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .qsn-vendor-dir-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(51, 18, 79, .1);
        border-color: #d9c7e6;
    }

    .qsn-vendor-dir-card .avatar {
        width: 74px;
        height: 74px;
        margin: 0 auto .7rem;
        border-radius: 50%;
        object-fit: cover;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
        font-weight: 700;
        color: #fff;
        background: linear-gradient(135deg, #7c3a86 0%, #d1477a 100%);
        overflow: hidden;
    }

    .qsn-vendor-dir-card .avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .qsn-vendor-dir-card .name {
        font-weight: 600;
        color: #201030;
        margin-bottom: .15rem;
        font-size: .95rem;
        line-height: 1.3;
    }

    .qsn-vendor-dir-card .meta {
        font-size: .78rem;
        color: #6b5578;
        margin-bottom: .35rem;
    }

    .qsn-vendor-dir-card .rating {
        font-size: .8rem;
        color: #8a6100;
        margin-bottom: .3rem;
    }

    .qsn-vendor-dir-card .offers {
        font-size: .76rem;
        color: #6b5578;
    }

/* Inputs rendered by asp:Button can't lay out flex children — keep them block. */
input.qsn-btn,
button.qsn-btn {
    display: inline-block;
    text-align: center;
}

    input.qsn-btn.w-100,
    button.qsn-btn.w-100 { display: block; width: 100%; }

/* A slightly taller variant for primary calls to action on a sidebar card. */
.qsn-btn.qsn-btn-lg {
    padding: .6rem 1.2rem;
    font-size: .9rem;
    border-radius: .65rem;
}

/* Small helper text under a form field. */
.qsn-field-hint {
    display: block;
    margin-top: .25rem;
    font-size: .76rem;
    color: var(--qsn-text-muted, #6b5578);
    line-height: 1.4;
}

/* ==========================================================================
   CATEGORY MANAGER
   ========================================================================== */
.qsn-cat-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem 0;
    border-bottom: 1px solid #f1ecf5;
}

    .qsn-cat-row:last-child { border-bottom: 0; }

    .qsn-cat-row .ico {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--qsn-purple-tint, #f3ecfa);
        color: var(--qsn-purple-tint-text, #7c3a86);
        font-size: 1.05rem;
    }

    .qsn-cat-row .body {
        flex: 1 1 auto;
        min-width: 0;
    }

    .qsn-cat-row .actions {
        flex: 0 0 auto;
        display: flex;
        gap: .3rem;
        align-items: center;
    }

    .qsn-cat-row .actions .qsn-btn {
        padding: .3rem .55rem;
        font-size: .78rem;
    }

    /* A disabled LinkButton renders as a plain span, so style that too. */
    .qsn-cat-row .actions .qsn-btn[disabled],
    .qsn-cat-row .actions span.qsn-btn {
        opacity: .4;
        cursor: not-allowed;
        pointer-events: none;
    }

@media (max-width: 575.98px) {
    .qsn-cat-row {
        flex-wrap: wrap;
    }

    .qsn-cat-row .actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ==========================================================================
   PUBLIC VENDOR PROFILE HERO
   ========================================================================== */
.qsn-vendor-hero {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.qsn-vendor-hero-text {
    flex: 1 1 auto;
    min-width: 0;
}

.qsn-vendor-hero-avatar {
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .14);
    border: 3px solid rgba(255, 255, 255, .35);
    box-shadow: 0 8px 24px rgba(32, 16, 48, .25);
}

    .qsn-vendor-hero-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .qsn-vendor-hero-avatar .initials {
        font-size: 2.4rem;
        font-weight: 600;
        color: #fff;
        letter-spacing: .02em;
        line-height: 1;
    }

/* Stack and centre on phones — a 120px circle beside text is too cramped. */
@media (max-width: 767.98px) {
    .qsn-vendor-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .qsn-vendor-hero-avatar {
        flex-basis: 88px;
        width: 88px;
        height: 88px;
    }

        .qsn-vendor-hero-avatar .initials { font-size: 1.8rem; }

    .qsn-hero h1 { font-size: 1.7rem; }
}

/* ==========================================================================
   PROMOTIONS
   ========================================================================== */

/* ---- Duration switch ---- */
.qsn-duration-switch {
    display: inline-flex;
    gap: .25rem;
    padding: .3rem;
    border-radius: 999px;
    background: #f1ecf6;
    border: 1px solid #e4d9ee;
}

    .qsn-duration-switch a {
        display: inline-block;
        padding: .45rem 1.15rem;
        border-radius: 999px;
        font-size: .85rem;
        font-weight: 600;
        color: #6b5578;
        text-decoration: none;
        transition: background .18s ease, color .18s ease, box-shadow .18s ease;
    }

        .qsn-duration-switch a:hover { color: #33124f; }

        .qsn-duration-switch a.active {
            background: #fff;
            color: #33124f;
            box-shadow: 0 2px 8px rgba(51, 18, 79, .12);
        }

/* ---- Plan cards ---- */
.qsn-plan-grid { align-items: stretch; }

.qsn-plan-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.6rem 1.3rem 1.3rem;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #ece4f2;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

    .qsn-plan-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 40px rgba(51, 18, 79, .14);
        border-color: #ddcbe9;
    }

    /* Soft colour wash bleeding down from the top of the card. */
    .qsn-plan-card .halo {
        position: absolute;
        top: -70px;
        left: -30%;
        width: 160%;
        height: 170px;
        border-radius: 50%;
        opacity: .10;
        pointer-events: none;
    }

    .qsn-plan-card.featured {
        border-color: transparent;
        box-shadow: 0 10px 32px rgba(51, 18, 79, .16);
    }

        .qsn-plan-card.featured::before {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: 20px;
            padding: 2px;
            background: var(--qsn-gradient-brand, linear-gradient(135deg, #33124f, #d1477a));
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            pointer-events: none;
        }

    .qsn-plan-card .pop {
        position: absolute;
        top: 14px;
        right: 14px;
        z-index: 2;
        font-size: .64rem;
        font-weight: 700;
        letter-spacing: .05em;
        text-transform: uppercase;
        color: #fff;
        background: var(--qsn-gradient-brand, linear-gradient(135deg, #33124f, #d1477a));
        padding: .25rem .6rem;
        border-radius: 999px;
    }

    .qsn-plan-card .ico {
        position: relative;
        z-index: 1;
        width: 52px;
        height: 52px;
        border-radius: 15px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 1.4rem;
        margin-bottom: .9rem;
        box-shadow: 0 6px 16px rgba(32, 16, 48, .18);
    }

    .qsn-plan-card .nm {
        position: relative;
        z-index: 1;
        font-size: 1.15rem;
        font-weight: 700;
        color: #201030;
        margin-bottom: .2rem;
    }

    .qsn-plan-card .tag {
        position: relative;
        z-index: 1;
        font-size: .8rem;
        color: #6b5578;
        line-height: 1.45;
        margin-bottom: 1rem;
        min-height: 2.3em;
    }

    .qsn-plan-card .amt {
        position: relative;
        z-index: 1;
        font-size: 1.85rem;
        font-weight: 700;
        color: #201030;
        line-height: 1.1;
        margin-bottom: 1.1rem;
    }

        .qsn-plan-card .amt .per {
            display: block;
            font-size: .76rem;
            font-weight: 500;
            color: #8b7a97;
            margin-top: .15rem;
        }

    .qsn-plan-card .feats {
        position: relative;
        z-index: 1;
        list-style: none;
        padding: 0;
        margin: 0 0 1.2rem;
        flex: 1 1 auto;
    }

        .qsn-plan-card .feats li {
            display: flex;
            align-items: flex-start;
            gap: .45rem;
            font-size: .82rem;
            color: #4a3a55;
            margin-bottom: .45rem;
            line-height: 1.4;
        }

            .qsn-plan-card .feats li i { color: #2fae72; margin-top: .15rem; }

            .qsn-plan-card .feats li.off { color: #b3a6bc; }

                .qsn-plan-card .feats li.off i { color: #cdc2d5; }

    .qsn-plan-card .qsn-plan-btn {
        position: relative;
        z-index: 1;
        display: block;
        width: 100%;
        text-align: center;
        padding: .65rem 1rem;
        border-radius: .7rem;
        font-size: .88rem;
        font-weight: 600;
        text-decoration: none;
        color: #33124f !important;
        background: #f3ecfa;
        border: 1px solid #e2d3ee;
        transition: background .18s ease, color .18s ease;
    }

        .qsn-plan-card .qsn-plan-btn:hover {
            background: var(--qsn-gradient-brand, linear-gradient(135deg, #33124f, #d1477a));
            color: #fff !important;
            border-color: transparent;
        }

    .qsn-plan-card.featured .qsn-plan-btn {
        background: var(--qsn-gradient-brand, linear-gradient(135deg, #33124f, #d1477a));
        color: #fff !important;
        border-color: transparent;
    }

        .qsn-plan-card.featured .qsn-plan-btn:hover { filter: brightness(.93); }

    /* Disabled LinkButton renders as a span. */
    .qsn-plan-card span.qsn-plan-btn {
        opacity: .5;
        pointer-events: none;
    }

/* ---- Active promotion banner ---- */
.qsn-promo-active {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 1.5rem 1.4rem;
    color: #fff;
    box-shadow: 0 12px 32px rgba(32, 16, 48, .22);
}

    .qsn-promo-active .ribbon-glow {
        position: absolute;
        top: -90px;
        right: -60px;
        width: 260px;
        height: 260px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .10);
        pointer-events: none;
    }

    .qsn-promo-active .head {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .qsn-promo-active .badge-icon {
        width: 54px;
        height: 54px;
        flex: 0 0 54px;
        border-radius: 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        background: rgba(255, 255, 255, .18);
        border: 1px solid rgba(255, 255, 255, .3);
    }

    .qsn-promo-active .eyebrow {
        font-size: .68rem;
        letter-spacing: .09em;
        color: rgba(255, 255, 255, .75);
    }

    .qsn-promo-active h3 { font-size: 1.4rem; font-weight: 700; color: #fff; }

    .qsn-promo-active .sub { font-size: .82rem; color: rgba(255, 255, 255, .82); }

    .qsn-promo-active .days {
        text-align: center;
        padding: .5rem .9rem;
        border-radius: 14px;
        background: rgba(255, 255, 255, .15);
        border: 1px solid rgba(255, 255, 255, .25);
    }

        .qsn-promo-active .days .n { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1; }
        .qsn-promo-active .days .l { display: block; font-size: .68rem; color: rgba(255, 255, 255, .8); }

    .qsn-promo-active .slots {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1rem;
        margin-top: 1.25rem;
    }

    .qsn-promo-active .slot .t { font-size: .8rem; color: rgba(255, 255, 255, .85); }
    .qsn-promo-active .slot .v { font-size: .8rem; font-weight: 600; }

    .qsn-promo-active .slot .bar {
        margin-top: .35rem;
        height: 7px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .2);
        overflow: hidden;
    }

        .qsn-promo-active .slot .bar > span {
            display: block;
            height: 100%;
            border-radius: 999px;
            background: #fff;
            transition: width .4s ease;
        }

/* ---- Slot picker ---- */
.qsn-promo-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: .75rem;
}

.qsn-promo-pick {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem;
    border-radius: 14px;
    border: 1px solid #ece4f2;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

    .qsn-promo-pick.on {
        border-color: #b9e6cd;
        background: #f4fdf8;
        box-shadow: inset 3px 0 0 #2fae72;
    }

    .qsn-promo-pick .thumb {
        width: 52px;
        height: 52px;
        flex: 0 0 52px;
        border-radius: 10px;
        background: #f3eef7;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #c1b0cd;
    }

    .qsn-promo-pick .body { flex: 1 1 auto; min-width: 0; }

    .qsn-promo-pick .ttl {
        font-size: .88rem;
        color: #201030;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .qsn-promo-pick .meta {
        font-size: .76rem;
        color: #6b5578;
        display: flex;
        align-items: center;
        gap: .4rem;
    }

    .qsn-promo-pick .chip {
        font-size: .64rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .03em;
        padding: .1rem .4rem;
        border-radius: 5px;
    }

        .qsn-promo-pick .chip.svc { background: var(--qsn-teal-tint, #e2f6f1); color: var(--qsn-teal, #12806c); }
        .qsn-promo-pick .chip.itm { background: var(--qsn-amber-tint, #fdf3d8); color: var(--qsn-amber-tint-text, #8a6100); }

    .qsn-promo-pick .qsn-btn { flex: 0 0 auto; }

.qsn-promo-checkout .ico {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.35rem;
}

/* ---- The Promoted tag shown to buyers ---- */
.qsn-promoted-tag {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .12rem .45rem;
    border-radius: 5px;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: #fdf3d8;
    color: #8a6100;
    border: 1px solid #f0dfae;
    white-space: nowrap;
}

    .qsn-promoted-tag i { font-size: .7rem; }

/* Homepage promoted strip */
.qsn-promo-strip {
    background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
    border-top: 1px solid #f3e6cd;
    border-bottom: 1px solid #f3e6cd;
}

@media (max-width: 575.98px) {
    .qsn-duration-switch { width: 100%; justify-content: center; }
    .qsn-promo-active .days { margin-left: auto; }
    .qsn-promo-pick { flex-wrap: wrap; }
    .qsn-promo-pick .qsn-btn { width: 100%; justify-content: center; }
}

/* Admin promotion tables */
.plan-dot {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .9rem;
}

    .plan-dot.sm {
        width: 10px;
        height: 10px;
        flex: 0 0 10px;
        border-radius: 50%;
        display: inline-block;
        vertical-align: middle;
        margin-right: .35rem;
    }

.qsn-price-matrix input.form-control { min-width: 78px; }

.qsn-social-shot {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    background: #f3eef7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c1b0cd;
    font-size: 1.6rem;
}

.qsn-caption-box {
    background: #faf8fc;
    border: 1px dashed #ddd0e8;
    border-radius: 10px;
    padding: .6rem .75rem;
}

    .qsn-caption-box .lbl {
        font-size: .68rem;
        text-transform: uppercase;
        letter-spacing: .05em;
        color: #8b7a97;
    }

    .qsn-caption-box .cap {
        font-size: .82rem;
        color: #33124f;
        white-space: pre-wrap;
        cursor: text;
        line-height: 1.5;
    }

/* ==========================================================================
   CATEGORY OVERFLOW
   Desktop shows 11 tiles plus a "Show all" tile, keeping two complete rows of
   six however many categories exist. Expanding reveals the rest in place.
   ========================================================================== */
.cats-expanded .qsn-category-extra {
    display: block !important;
}

.cats-expanded .qsn-cat-more {
    display: none !important;
}

.qsn-cat-more .qsn-category-card {
    cursor: pointer;
    border-style: dashed;
    border-color: #d9c7e6;
}

    .qsn-cat-more .qsn-category-card:hover {
        border-style: solid;
        border-color: var(--qsn-purple);
    }

.qsn-cat-more .more-n {
    font-size: .72rem;
    font-weight: 400;
    color: var(--qsn-text-muted, #6b5578);
}

/* ==========================================================================
   JAYDEN - AI assistant widget
   ========================================================================== */
.jayden {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1080;
}

/* Sits above the mobile bottom nav rather than under it. */
@media (max-width: 991.98px) {
    .jayden { bottom: 76px; }
}

.jayden-fab {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 0;
    cursor: pointer;
    padding: .7rem 1.1rem;
    border-radius: 999px;
    color: #fff;
    font-size: .88rem;
    font-weight: 600;
    background: var(--qsn-gradient-brand, linear-gradient(135deg, #33124f, #d1477a));
    box-shadow: 0 8px 24px rgba(51, 18, 79, .35);
    transition: transform .18s ease, box-shadow .18s ease;
}

    .jayden-fab:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(51, 18, 79, .42);
    }

    .jayden-fab i { font-size: 1.05rem; }

@media (max-width: 575.98px) {
    .jayden-fab-label { display: none; }
    .jayden-fab { padding: .8rem; }
}

.is-open .jayden-fab { display: none; }

/* ---- Panel ---- */
.jayden-panel {
    display: none;
    flex-direction: column;
    width: 370px;
    max-width: calc(100vw - 24px);
    height: 520px;
    max-height: calc(100vh - 120px);
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(32, 16, 48, .28);
    border: 1px solid #ece4f2;
}

.is-open .jayden-panel {
    display: flex;
    animation: jaydenIn .18s ease-out;
}

@keyframes jaydenIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

.jayden-head {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .85rem 1rem;
    color: #fff;
    background: var(--qsn-gradient-brand, linear-gradient(135deg, #33124f, #d1477a));
}

.jayden-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .3);
}

.jayden-who { flex: 1 1 auto; line-height: 1.2; }
.jayden-who strong { display: block; font-size: .95rem; }
.jayden-who span { font-size: .72rem; color: rgba(255, 255, 255, .8); }

.jayden-close {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: .85;
}

    .jayden-close:hover { opacity: 1; }

.jayden-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem;
    background: #faf8fc;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

/* ---- Bubbles ---- */
.jayden-msg {
    max-width: 85%;
    padding: .6rem .8rem;
    border-radius: 14px;
    font-size: .86rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

    .jayden-msg.bot {
        align-self: flex-start;
        background: #fff;
        border: 1px solid #ece4f2;
        color: #201030;
        border-bottom-left-radius: 4px;
    }

    .jayden-msg.me {
        align-self: flex-end;
        background: var(--qsn-gradient-brand, linear-gradient(135deg, #33124f, #d1477a));
        color: #fff;
        border-bottom-right-radius: 4px;
    }

.jayden-typing {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: .7rem .85rem;
}

    .jayden-typing span {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #c9b6d6;
        animation: jaydenBlink 1.2s infinite;
    }

    .jayden-typing span:nth-child(2) { animation-delay: .2s; }
    .jayden-typing span:nth-child(3) { animation-delay: .4s; }

@keyframes jaydenBlink {
    0%, 60%, 100% { opacity: .3; }
    30% { opacity: 1; }
}

/* ---- Result links ---- */
.jayden-links {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    align-self: flex-start;
    max-width: 92%;
}

    .jayden-links a {
        display: block;
        padding: .5rem .7rem;
        border-radius: 10px;
        background: #fff;
        border: 1px solid #e2d3ee;
        color: #33124f;
        font-size: .82rem;
        text-decoration: none;
        transition: border-color .15s ease, background .15s ease;
    }

        .jayden-links a:hover {
            border-color: var(--qsn-purple, #7c3a86);
            background: #f8f4fb;
        }

/* ---- Job draft card ---- */
.jayden-draft {
    align-self: flex-start;
    max-width: 92%;
    background: #fff;
    border: 1px solid #b9e6cd;
    border-radius: 14px;
    padding: .75rem .85rem;
}

    .jayden-draft .cap {
        font-size: .68rem;
        text-transform: uppercase;
        letter-spacing: .05em;
        color: #14663c;
        margin-bottom: .35rem;
    }

    .jayden-draft .ttl {
        font-size: .9rem;
        font-weight: 600;
        color: #201030;
        margin-bottom: .45rem;
    }

    .jayden-draft .row {
        display: flex;
        justify-content: space-between;
        font-size: .78rem;
        color: #6b5578;
        margin-bottom: .2rem;
    }

        .jayden-draft .row b { color: #201030; font-weight: 600; }

    .jayden-draft .go {
        display: block;
        margin-top: .6rem;
        text-align: center;
        padding: .5rem;
        border-radius: 9px;
        background: var(--qsn-gradient-brand, linear-gradient(135deg, #33124f, #d1477a));
        color: #fff;
        font-size: .82rem;
        font-weight: 600;
        text-decoration: none;
    }

        .jayden-draft .go:hover { filter: brightness(.94); color: #fff; }

/* ---- Composer ---- */
.jayden-foot {
    display: flex;
    gap: .4rem;
    padding: .65rem;
    border-top: 1px solid #ece4f2;
    background: #fff;
}

    .jayden-foot input {
        flex: 1 1 auto;
        border: 1px solid #e4d9ee;
        border-radius: 999px;
        padding: .55rem .9rem;
        font-size: .86rem;
        outline: none;
    }

        .jayden-foot input:focus { border-color: var(--qsn-purple, #7c3a86); }

    .jayden-foot button {
        flex: 0 0 auto;
        width: 40px;
        border: 0;
        border-radius: 50%;
        cursor: pointer;
        color: #fff;
        background: var(--qsn-gradient-brand, linear-gradient(135deg, #33124f, #d1477a));
    }

    .jayden-foot.is-busy { opacity: .6; pointer-events: none; }

/* Admin transcript viewer */
.jayden-transcript {
    max-height: 320px;
    overflow-y: auto;
    background: #faf8fc;
    border: 1px solid #ece4f2;
    border-radius: 12px;
    padding: .75rem;
}

.jayden-transcript .t-msg {
    display: block;
    margin-bottom: .55rem;
    font-size: .82rem;
    line-height: 1.5;
}

    .jayden-transcript .t-msg .who {
        display: block;
        font-size: .68rem;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: #8b7a97;
        margin-bottom: .1rem;
    }

    .jayden-transcript .t-msg .txt {
        display: block;
        white-space: pre-wrap;
        color: #201030;
    }

    .jayden-transcript .t-msg.user .txt {
        background: #fff;
        border: 1px solid #e2d3ee;
        border-radius: 10px;
        padding: .4rem .6rem;
    }

    /* Tool output is diagnostic, not conversation - de-emphasise it. */
    .jayden-transcript .t-msg.tool .txt {
        color: #6b5578;
        font-family: ui-monospace, Menlo, Consolas, monospace;
        font-size: .74rem;
        max-height: 90px;
        overflow: hidden;
    }

/* ==========================================================================
   "Write with AI" - sits on the label row above a description field
   ========================================================================== */
.qsn-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: .35rem;
}

.qsn-ai-write {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.qsn-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid #e2d3ee;
    background: linear-gradient(135deg, #f6f0fb 0%, #fdeef4 100%);
    color: #6d2f7a;
    font-size: .76rem;
    font-weight: 600;
    padding: .3rem .7rem;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .15s ease, box-shadow .15s ease, color .15s ease;
}

    .qsn-ai-btn:hover {
        border-color: var(--qsn-purple, #7c3a86);
        color: #33124f;
        box-shadow: 0 2px 10px rgba(124, 58, 134, .18);
    }

    .qsn-ai-btn i { font-size: .85rem; }

    .qsn-ai-btn:disabled { opacity: .6; cursor: default; }

    /* Gentle pulse while the model writes, so the wait feels handled. */
    .qsn-ai-btn.is-busy i {
        animation: qsnAiSpin 1.1s linear infinite;
        display: inline-block;
    }

@keyframes qsnAiSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.qsn-ai-note {
    font-size: .74rem;
    color: var(--qsn-text-muted, #6b5578);
    line-height: 1.3;
}

    .qsn-ai-note.ok { color: #14663c; }
    .qsn-ai-note.warn { color: #a32d2d; }

    .qsn-ai-note a {
        color: inherit;
        text-decoration: underline;
    }

@media (max-width: 575.98px) {
    .qsn-label-row { align-items: flex-start; }
    .qsn-ai-write { width: 100%; justify-content: flex-start; }
}

/* Composer is pointless when Jayden can't answer. */
.jayden.is-off .jayden-foot { display: none; }

/* Admin-only failure detail inside the chat. */
.jayden-detail {
    align-self: flex-start;
    max-width: 92%;
    background: #fdecec;
    border: 1px solid #f2c9cf;
    color: #a32d2d;
    border-radius: 10px;
    padding: .45rem .6rem;
    font-size: .74rem;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    white-space: pre-wrap;
}

/* Quick-reply suggestions in the chat. */
.jayden-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-self: flex-start;
    max-width: 95%;
}

.jayden-chip {
    border: 1px solid #e2d3ee;
    background: #fff;
    color: #33124f;
    font-size: .78rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

    .jayden-chip:hover {
        background: var(--qsn-gradient-brand, linear-gradient(135deg, #33124f, #d1477a));
        color: #fff;
        border-color: transparent;
    }
