/*
 * Seller dashboard, home-page account overlays and shared UI bits
 * (icons, buttons, cards). Uses the design tokens from site.css.
 */

/* ============ ICONS ============ */
.icon { width: 18px; height: 18px; flex: 0 0 auto; }
.icon-sm { width: 14px; height: 14px; vertical-align: -2px; }
.header-cta .icon,
.btn-primary .icon,
.btn-outline .icon,
.btn-ghost .icon { width: 16px; height: 16px; }

/* ============ HOME HERO: logged-in overlays ============
   Positioned like the hotspots in site.css so they sit exactly on top of
   the painted "Sign In" and "Upload Your Company" in the artwork. */
.hero-account,
.hero-cta {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  border-radius: 999px;
  font: inherit;
  font-size: clamp(12px, 1.24vw, 27px);
  font-weight: 800;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.hero-account .icon,
.hero-cta .icon { width: 1.3em; height: 1.3em; stroke-width: 2.2; }

.hero-account {
  left: 74.6%; top: 1.6%; width: 8.4%; height: 5.8%;
  padding: 0 .5em;
  gap: .4em;
  border: 1px solid rgba(255, 255, 255, .9);
  background: rgba(242, 247, 255, .97);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(6, 25, 76, .12);
  backdrop-filter: blur(12px);
}
.hero-account span { overflow: hidden; text-overflow: ellipsis; }
/* Logged in: a round avatar button sits exactly on the painted person icon,
   and a soft patch in the header-bar colours hides the painted "Sign In" text.
   (Percentages are of the 1676x939 artwork, so it scales with the hero.) */
.hero-account-patch {
  position: absolute;
  z-index: 5;
  left: 75.05%; top: 1.75%; width: 7.2%; height: 5.45%;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(188, 200, 218, 0) 55%, rgba(188, 200, 218, .95) 100%),
    linear-gradient(180deg, #cdd2dc 0%, #cfd5df 45%, #c4c9d1 100%);
  filter: blur(3px);
  pointer-events: none;
}
.hero-account {
  left: 75%; top: 1.86%; width: 3.06%; height: 5.45%;
  padding: 0;
  border-radius: 50%;
}
.hero-account .icon { width: 1.35em; height: 1.35em; }
.hero-account:hover,
.hero-account[aria-expanded="true"] { box-shadow: 0 0 0 2px rgba(0, 119, 255, .35), 0 6px 20px rgba(6, 25, 76, .16); }

.hero-cta {
  left: 83.3%; top: 1.7%; width: 14.5%; height: 5.8%;
  border: 0;
  background: linear-gradient(90deg, #0a5dff, #0040f2);
  color: #fff;
  box-shadow: 0 0 22px 4px rgba(0, 90, 255, .45);
}
.hero-cta:hover { transform: translateY(-1px); filter: brightness(1.08); }

/* Seller layout: [ My Company ] ( avatar ) */
.hero-cta { left: 75%; width: 17.4%; }
.hero-account.is-end { left: 94.72%; }
.hero-cta-patch {
  position: absolute;
  z-index: 5;
  left: 91.6%; top: 1%; width: 7.1%; height: 7.2%;
  border-radius: 999px;
  background: radial-gradient(ellipse 60% 60% at 55% 50%, #a9c3ea 0%, #b9c9e2 55%, #bfc8d8 100%);
  filter: blur(4px);
  pointer-events: none;
}

.account-menu {
  left: auto;
  right: 2.2%;
  top: 8.4%;
  width: max(230px, 15vw);
}
.account-menu-email {
  margin: 0 0 6px;
  padding: 6px 12px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-menu form { margin: 0; }
.account-menu button {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 11px;
  background: none;
  color: var(--heart);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.account-menu button:hover { background: #fdf0f0; }

.hero-badge {
  position: absolute;
  z-index: 6;
  left: 69.7%;
  top: 1.7%;
  min-width: 1.6em;
  padding: .1em .4em;
  border-radius: 999px;
  background: var(--heart);
  color: #fff;
  font-size: clamp(9px, .75vw, 16px);
  font-weight: 800;
  text-align: center;
  pointer-events: none;
}

/* ============ BUTTONS ============ */
.btn-outline,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-outline { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--navy); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-primary.btn-light { background: #fff; color: var(--navy); box-shadow: none; }
.btn-primary.btn-light:hover { color: var(--navy); }
.btn-lg { padding: 13px 26px; font-size: 15px; }
.button-row-center { justify-content: center; }

/* ============ DASHBOARD SHELL ============ */
.catalog-dash { background: #f4f7fb; }

.dash-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.dash-sidebar {
  position: sticky;
  top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.dash-company {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.dash-company-logo {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: contain;
  background: #f6f8fb;
}
.dash-company-initial {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}
.dash-company-text { min-width: 0; display: grid; gap: 4px; }
.dash-company-text strong { color: var(--ink); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.pill .icon { width: 12px; height: 12px; }
.pill-success { background: #edf9f1; color: #155c32; }
.pill-warning { background: #fff4d6; color: #7a5500; }

.dash-menu { display: grid; gap: 2px; }
.dash-menu-label {
  margin: 14px 10px 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dash-menu form { margin: 0; }
.dash-menu a,
.dash-menu button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: #3b4357;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.dash-menu a:hover,
.dash-menu button:hover { background: #f1f5fb; color: var(--ink); }
.dash-menu a[aria-current="page"] { background: #e8f1ff; color: var(--blue); font-weight: 700; }
.dash-menu button { color: var(--heart); }

.dash-main { min-width: 0; }
.dash-main > .flash-list { margin-bottom: 20px; }
.dash-main .breadcrumb { margin-bottom: 10px; }

.dash-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.dash-head .page-lead { margin-bottom: 0; }
.dash-head-actions { display: flex; align-items: center; gap: 12px; }

/* ============ CARDS ============ */
.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.card + .card { margin-top: 20px; }
.card h2 { margin: 0; color: var(--ink); font-size: 17px; font-weight: 800; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head .text-link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.muted-sm { color: var(--muted); font-size: 13px; font-weight: 600; }
.muted-italic { font-style: italic; }

/* ============ OVERVIEW ============ */
.dash-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 28px 30px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 85% 20%, rgba(18, 207, 255, .35), transparent 45%),
    linear-gradient(120deg, var(--navy-deep), var(--navy) 45%, #0b4fd6);
  color: #c9d5ef;
}
.dash-welcome h1 { margin: 0 0 6px; color: #fff; font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; }
.dash-welcome p { margin: 0; font-size: 15px; }
.dash-welcome .dash-eyebrow { margin-bottom: 6px; color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.dash-welcome-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.alert {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 14px;
}
.alert p { margin: 2px 0 0; }
.alert-icon { width: 26px; height: 26px; }
.alert-action { margin: 0 0 0 auto; }
.alert-warning { border: 1px solid #f4dc9c; background: #fff8e6; color: #6b4b00; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.kpi {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.kpi:hover { border-color: #b9c6dc; box-shadow: 0 10px 26px rgba(6, 25, 76, .08); transform: translateY(-1px); }
.kpi-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  border-radius: 11px;
}
.kpi-icon .icon { width: 20px; height: 20px; }
.kpi-blue { background: #e8f1ff; color: var(--blue); }
.kpi-green { background: #e6f7ed; color: #1a7f45; }
.kpi-gray { background: #eef1f6; color: #4b5469; }
.kpi-cyan { background: #e2f8ff; color: #0090c0; }
.kpi-label { color: var(--muted); font-size: 13px; font-weight: 600; }
.kpi-value { color: var(--ink); font-size: 28px; font-weight: 800; line-height: 1.1; }

.progress {
  display: block;
  height: 6px;
  margin-top: 6px;
  border-radius: 999px;
  background: #e9eef5;
  overflow: hidden;
}
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.progress-lg { height: 8px; margin: 0 0 14px; }

.dash-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: start;
}

.recent-list { list-style: none; margin: 0; padding: 0; }
.recent-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.recent-list li:first-child { border-top: 0; padding-top: 0; }
.recent-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.recent-name { color: var(--ink); font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-name:hover { color: var(--blue); }
.recent-info span { color: var(--muted); font-size: 13px; }
.recent-actions { display: flex; gap: 4px; }
.thumb-empty { display: grid; place-items: center; color: #8a93a6; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #4b5469;
}
.icon-btn:hover { border-color: var(--blue); color: var(--blue); }
.icon-btn .icon { width: 16px; height: 16px; }

.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quick {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
}
.quick .icon { grid-row: span 2; width: 22px; height: 22px; color: var(--blue); }
.quick strong { font-size: 14px; }
.quick span { color: var(--muted); font-size: 13px; }
.quick:hover { border-color: var(--blue); background: #f7faff; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); }
.checklist a { color: var(--blue); font-weight: 600; text-decoration: none; }
.checklist a:hover { text-decoration: underline; }
.checklist li.done > span:last-child { color: var(--muted); text-decoration: line-through; }
.check-dot {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 2px solid #cfd6e2;
  border-radius: 50%;
}
.checklist li.done .check-dot { border-color: #1a9b54; background: #1a9b54; color: #fff; }
.check-dot .icon { width: 13px; height: 13px; stroke-width: 3; }

.card-help { background: linear-gradient(160deg, #f2f8ff, #fff); }
.card-help h2 { margin-bottom: 6px; }
.card-help p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.55; }

.empty-block { padding: 36px 16px; text-align: center; color: var(--muted); }
.empty-block h3 { margin: 12px 0 6px; color: var(--ink); font-size: 18px; }
.empty-block p { max-width: 420px; margin: 0 auto 18px; font-size: 14px; line-height: 1.55; }
.empty-icon {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: #e8f1ff;
  color: var(--blue);
}
.empty-icon .icon { width: 28px; height: 28px; }
.empty-icon-danger { background: #fdf0f0; color: var(--heart); }

/* ============ PRODUCTS PAGE ============ */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.tabs { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.tabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  color: #4b5469;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.tabs a[aria-current="page"] { background: var(--navy); color: #fff; }
.tab-count { padding: 0 7px; border-radius: 999px; background: rgba(107, 116, 137, .14); font-size: 12px; }
.tabs a[aria-current="page"] .tab-count { background: rgba(255, 255, 255, .2); }

.toolbar-search { position: relative; flex: 0 1 300px; margin: 0; }
.toolbar-search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.toolbar-search input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 14px;
}
.toolbar-search input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(0, 119, 255, .15); }

.seller-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.seller-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(6, 25, 76, .04);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.seller-card:hover { border-color: #c9d4e6; box-shadow: 0 16px 36px rgba(6, 25, 76, .12); transform: translateY(-3px); }

.seller-card-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #eef3fa, #e2e9f4);
  color: #8a93a6;
  overflow: hidden;
}
.seller-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.seller-card:hover .seller-card-media img { transform: scale(1.05); }
.seller-card-noimg { display: grid; justify-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.seller-card-noimg .icon { width: 34px; height: 34px; }

.seller-card-status,
.seller-card-count {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.seller-card-status { top: 12px; left: 12px; background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: 0 2px 8px rgba(6, 25, 76, .12); }
.seller-card-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #98a2b3; }
.seller-card-status.live { color: #146c3a; }
.seller-card-status.live .dot { background: #22a35a; box-shadow: 0 0 0 3px rgba(34, 163, 90, .18); }
.seller-card-count { right: 12px; bottom: 12px; padding: 4px 10px; background: rgba(6, 25, 76, .7); color: #fff; }

.seller-card-body { flex: 1; display: grid; align-content: start; gap: 6px; padding: 16px 18px 14px; }
.seller-card-body h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.seller-card-body h2 a { color: var(--ink); text-decoration: none; }
.seller-card-body h2 a:hover { color: var(--blue); }
.seller-card-price { margin: 2px 0 4px; color: var(--ink); font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.seller-card-price small { color: var(--muted); font-size: 12px; font-weight: 600; }
.seller-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.stock-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1c4fae;
  font-size: 12px;
  font-weight: 700;
}
.stock-chip.is-out { background: #fdf0f0; color: var(--heart); }
.seller-card-date { color: var(--muted); font-size: 12px; }

.seller-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid #edf0f5;
  background: #fafbfd;
}
.seller-card-edit {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.seller-card-edit .icon { width: 15px; height: 15px; }
.seller-card-edit:hover { border-color: var(--blue); background: var(--blue); color: #fff; }
.seller-card-actions .icon-btn { background: #fff; border-radius: 10px; }
.icon-btn-danger:hover { border-color: var(--heart); background: #fdf0f0; color: var(--heart); }

/* ============ PRODUCT & PROFILE FORMS ============ */
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}
.form-side { position: sticky; top: 20px; }
.step-card + .step-card { margin-top: 20px; }
.step-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.step-head p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.step-num {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-weight: 800;
}
.step-num .icon { width: 18px; height: 18px; }
.optional { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #eef1f6; color: var(--muted); font-size: 11px; font-weight: 700; vertical-align: 2px; }

.dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 30px 20px;
  border: 2px dashed #c3cfe2;
  border-radius: 14px;
  background: #f7faff;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.dropzone:hover,
.dropzone:focus-within { border-color: var(--blue); background: #eef5ff; }
.dropzone.has-files { border-style: solid; border-color: #1a9b54; background: #f1fbf5; }
.dropzone strong { color: var(--ink); font-size: 15px; }
.dropzone-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #e1edff; color: var(--blue); }
.dropzone-icon .icon { width: 22px; height: 22px; }
.dropzone-help { color: var(--muted); font-size: 13px; font-weight: 500; }
.dropzone-files { color: var(--ink); font-size: 13px; font-weight: 600; word-break: break-word; }
.dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.form-field.has-error .dropzone { border-color: var(--heart); }

.dash-main .form-field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.dash-main .form-field input[type="file"]::file-selector-button:hover { border-color: var(--blue); color: var(--blue); }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.choice-card:hover { border-color: #b9c6dc; }
.choice-card:has(input:checked) { border-color: var(--blue); background: #f2f8ff; }
.choice-card input { margin-top: 3px; accent-color: var(--blue); }
.choice-body { display: grid; gap: 4px; }
.choice-title { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 800; }
.choice-text { color: var(--muted); font-size: 13px; line-height: 1.45; }
.choice-grid.has-error .choice-card { border-color: var(--heart); }

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.form-actions .text-link { display: inline-flex; align-items: center; gap: 4px; }

.tips-card h2,
.side-title { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 16px; }
.tips-card h2 .icon,
.side-title .icon { color: var(--blue); }
.tips { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 12px; }
.tips li { padding-left: 14px; border-left: 3px solid #d6e6ff; color: var(--muted); font-size: 13px; line-height: 1.5; }
.tips strong { display: block; color: var(--ink); font-size: 14px; }
.tips-card .text-link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.company-card-preview { margin: 0 0 10px; }
.company-card-preview > div { min-width: 0; overflow-wrap: anywhere; }

.logo-upload { display: flex; align-items: center; gap: 18px; padding: 16px; border: 1px dashed #c3cfe2; border-radius: 12px; background: #f7faff; }
.logo-preview { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 14px; object-fit: contain; background: #fff; font-size: 28px; }
.logo-upload-body { display: grid; gap: 6px; min-width: 0; }
.check-label { display: inline-flex; align-items: center; gap: 6px; color: var(--heart); font-size: 14px; font-weight: 600; cursor: pointer; }

.password-grid { max-width: 520px; }
.show-passwords { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; }
.show-passwords input { accent-color: var(--blue); }

.confirm-card { max-width: 560px; margin: 20px auto; text-align: center; }
.confirm-card .page-title { margin-top: 14px; }

/* ============ USER GUIDE ============ */
.guide-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.guide-step {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.guide-step strong { color: var(--ink); font-size: 15px; }
.guide-step:hover { border-color: var(--blue); }
.guide-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; align-items: start; }
.guide-toc { position: sticky; top: 20px; display: grid; gap: 2px; padding: 16px; }
.guide-toc h2 { margin: 0 0 8px; color: var(--muted); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.guide-toc a { padding: 7px 10px; border-radius: 8px; color: #3b4357; font-size: 14px; font-weight: 600; text-decoration: none; }
.guide-toc a:hover { background: #f1f5fb; color: var(--blue); }
.guide-section { scroll-margin-top: 20px; color: #3b4357; font-size: 15px; line-height: 1.7; }
.guide-section h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 19px; }
.guide-section h2 .icon { width: 22px; height: 22px; color: var(--blue); }
.guide-section ol,
.guide-section ul { padding-left: 22px; }
.guide-section li { margin-bottom: 6px; }
.guide-section p { margin: 0 0 12px; }
.note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 10px;
  background: #eef5ff;
  color: var(--navy);
  font-size: 14px;
}
.note .icon { margin-top: 3px; color: var(--blue); }
.guide-table { width: 100%; margin-bottom: 14px; border-collapse: collapse; font-size: 14px; }
.guide-table th,
.guide-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.guide-table th { width: 40%; color: var(--muted); font-weight: 600; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.compare > div { padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.compare p { margin: 8px 0 0; font-size: 14px; }
.guide-section details { border-bottom: 1px solid var(--line); }
.guide-section summary { padding: 12px 0; color: var(--ink); font-weight: 700; cursor: pointer; }
.guide-section details p { margin: 0 0 12px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1180px) {
  .dash-columns,
  .form-layout { grid-template-columns: 1fr; }
  .form-side { position: static; }
  .kpi-grid,
  .guide-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .dash-shell { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; }
  .dash-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-menu-label { grid-column: 1 / -1; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { position: static; }
}

@media (max-width: 600px) {
  .kpi-grid,
  .quick-grid,
  .choice-grid,
  .guide-steps,
  .compare { grid-template-columns: 1fr; }
  .dash-welcome { padding: 22px; }
  .alert { flex-wrap: wrap; }
  .alert-action { margin-left: 0; }
  .toolbar-search { flex-basis: 100%; }
  .recent-actions { display: none; }
}

/* ============ HOME HERO: search box ============
   The search box is painted into the artwork, with an invisible input on top.
   Once it holds text (e.g. after a search) or has focus, cover the painted
   placeholder with a solid box and draw our own search icon. */
.search-hotspot:focus,
.search-hotspot:not(:placeholder-shown) {
  padding-left: 2.9em;
  color: var(--navy);
  caret-color: var(--blue);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306194c' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") no-repeat 1.05em center / 1.2em;
}
.search-hotspot:not(:placeholder-shown):not(:focus) {
  box-shadow: 0 4px 18px rgba(1, 27, 72, .14), 0 0 0 1px rgba(0, 119, 255, .18);
}


/* ============ PAYWALL (unpaid sellers) & PAYMENT RESULT ============ */
.paywall {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
}
.paywall-single { grid-template-columns: minmax(0, 680px); justify-content: center; }
.paywall-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 40px 36px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 44px rgba(6, 25, 76, .08);
}
.paywall-card h1 { margin: 0; color: var(--ink); font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; line-height: 1.2; }
.paywall-card .section-eyebrow { margin: 0; }
.paywall-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; box-shadow: 0 12px 26px rgba(0, 119, 255, .3); }
.paywall-icon.is-success { background: linear-gradient(135deg, #14915a, #22c27a); box-shadow: 0 12px 26px rgba(34, 194, 122, .3); }
.paywall-icon .icon { width: 30px; height: 30px; }
.paywall-lead { max-width: 520px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.paywall-steps { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 6px 0; padding: 0; list-style: none; }
.paywall-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: #f1f4f9; color: var(--muted); font-size: 13px; font-weight: 700; }
.paywall-steps li > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #dfe5ee; color: var(--muted); font-size: 12px; }
.paywall-steps li > span .icon { width: 13px; height: 13px; stroke-width: 3; }
.paywall-steps li.done { background: #e6f6ec; color: #146c3a; }
.paywall-steps li.done > span { background: #1a9b54; color: #fff; }
.paywall-steps li.current { background: #e8f1ff; color: var(--blue); }
.paywall-steps li.current > span { background: var(--blue); color: #fff; }
.paywall-fee {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 18px 22px;
  border: 1px solid #dfe8f7;
  border-radius: 14px;
  background: #f7faff;
  text-align: left;
}
.paywall-fee > div { display: grid; gap: 2px; }
.paywall-fee strong { color: var(--ink); font-size: 30px; font-weight: 800; }
.paywall-fee strong small { color: var(--muted); font-size: 13px; }
.paywall-fee ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; color: #3b4357; font-size: 13px; }
.paywall-fee li { display: flex; align-items: center; gap: 6px; }
.paywall-fee .icon { color: #1a9b54; stroke-width: 3; }
.paywall-card form { width: 100%; margin: 0; }
.paywall-pay { width: 100%; }
.paywall-note { margin: 0; color: var(--muted); font-size: 14px; }
.paywall-secure { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 12px; }
.paywall-side { display: grid; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.paywall-side h2 { margin: 0 0 4px; color: var(--ink); font-size: 16px; font-weight: 800; }
.paywall-side a { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid #edf0f5; border-radius: 12px; color: var(--ink); text-decoration: none; }
.paywall-side a:hover { border-color: #b9d2ff; background: #f7faff; }
.paywall-side a > .icon { flex: 0 0 auto; margin-top: 2px; color: var(--blue); }
.paywall-side a > span { display: grid; gap: 2px; }
.paywall-side a strong { font-size: 14px; }
.paywall-side a span span { color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .paywall { grid-template-columns: 1fr; }
  .paywall-fee { flex-direction: column; align-items: flex-start; }
  .paywall-card { padding: 30px 20px; }
}

/* ============ HOME HERO: cart & bell hotspots ============
   Centred on the icons painted in the artwork (cart centre 68.50% / 4.58%,
   bell centre 71.87% / 4.63%) and sized as true circles: the hero is
   1676×939, so a 3.4% width equals a 6.07% height. */
.hotspot.cart,
.hotspot.alerts { width: 3.4%; height: 6.07%; border-radius: 50%; }
.hotspot.cart { left: 66.8%; top: 1.55%; }
.hotspot.alerts { left: 70.17%; top: 1.6%; }
.hero-badge { left: 69.15%; top: 1.9%; }
.hero-badge.hero-badge-alerts { left: 72.35%; }

/* Account dropdown: opens right under the round account button, with a pointer.
   Buyers: centred under the circle (circle centre = 76.53% of the hero).
   Sellers: the circle is at the far right, so the menu lines up with its right edge. */
.hero-account + .account-menu {
  --menu-w: max(240px, 15vw);
  left: calc(76.53% - var(--menu-w) / 2);
  right: auto;
  top: 8.6%;
  width: var(--menu-w);
}
.hero-account.is-end + .account-menu { left: auto; right: 2.22%; }
.hero-account + .account-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  left: calc(50% - 7px);
  width: 14px;
  height: 14px;
  border-top: 1px solid rgba(255, 255, 255, .9);
  border-left: 1px solid rgba(255, 255, 255, .9);
  border-radius: 3px 0 0 0;
  background: rgba(246, 251, 255, .98);
  transform: rotate(45deg);
}
/* Seller: point at the circle's centre, 1.53% of the hero width from the menu's right edge. */
.hero-account.is-end + .account-menu::before { left: auto; right: calc(min(100vw, 2200px) * .0153 - 7px); }

.account-menu-head { display: flex; align-items: center; gap: 10px; margin: 2px 4px 8px; padding: 6px 8px 12px; border-bottom: 1px solid #e3e8f0; }
.account-menu-head > span:last-child { display: grid; gap: 1px; min-width: 0; }
.account-menu-avatar { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #0a5dff, #00a3ff); color: #fff; font-size: 15px; font-weight: 800; }
.account-menu-name { overflow: hidden; color: var(--navy); font-size: 15px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.account-menu-company { overflow: hidden; color: #3b4357; font-size: 12px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.account-menu-head .account-menu-email { margin: 0; padding: 0; border: 0; overflow: hidden; color: var(--muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
