:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #161d25;
  --muted: #687483;
  --line: #d8dee6;
  --accent: #21e8ff;
  --accent-dark: #0a9ac6;
  --blue: #2e88ff;
  --violet: #8f55ff;
  --brand-ink: #02040b;
  --amber: #a86600;
  --red: #b93b2e;
  --shadow: 0 14px 34px rgba(20, 28, 38, 0.09);
  --brand-shadow: 0 22px 60px rgba(46, 136, 255, 0.18);
  --font-sans: Montserrat, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-brand: Montserrat, "Arial Rounded MT Bold", Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% -10%, rgba(0, 194, 168, 0.16), transparent 32%),
    radial-gradient(circle at 92% 4%, rgba(124, 58, 237, 0.14), transparent 34%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  min-height: 38px;
  padding: 0 15px;
  cursor: pointer;
}

button:hover {
  border-color: #aeb8c4;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--blue));
  border-color: transparent;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(74, 108, 255, 0.18);
}

.primary-button:hover {
  background: linear-gradient(135deg, var(--accent-dark), #3451d5);
}

.primary-button:disabled,
.primary-button.is-disabled {
  background: #d8dee6;
  border-color: #c8d1dc;
  color: #7b8794;
  box-shadow: none;
  cursor: not-allowed;
}

.primary-button:disabled:hover,
.primary-button.is-disabled:hover {
  background: #d8dee6;
  border-color: #c8d1dc;
}

.publish-button-hint {
  display: inline-flex;
}

.publish-button-hint .primary-button {
  width: 100%;
}

.ghost-button {
  background: transparent;
}

.text-button {
  min-height: auto;
  width: fit-content;
  border: 0;
  background: transparent;
  color: #315b8f;
  padding: 0;
  font-weight: 700;
}

.text-button:hover {
  color: #1645d8;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.danger-button {
  color: #a63b2f;
}

.icon-button {
  width: 36px;
  padding: 0;
  font-weight: 800;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto minmax(250px, 1fr);
  gap: 20px;
  align-items: center;
  padding: 12px 28px;
  background: rgba(244, 246, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(16, 24, 39, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.session-badge,
.section-heading p,
.market-hero p,
.product-card p,
.seller-status,
.meta,
.form-message {
  color: var(--muted);
}

.system-notice {
  margin: 14px 0 0;
  border: 1px solid #f0cd8c;
  border-radius: 7px;
  background: #fff7e8;
  color: #7a4a00;
  padding: 10px 12px;
  font-weight: 700;
}

.main-nav,
.account-actions,
.editor-actions,
.auth-mode,
.hero-actions,
.card-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.main-nav {
  justify-content: center;
  padding: 4px;
  border: 1px solid rgba(216, 222, 230, 0.75);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.66);
}

.account-actions {
  justify-content: flex-end;
  min-width: 0;
}

.editor-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #edf1f6;
}

.editor-danger-actions,
.editor-save-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.move-draft-action,
.delete-product-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding-inline: 12px;
  border-radius: 8px;
  font-weight: 850;
}

.move-draft-action {
  border-color: rgba(168, 102, 0, 0.24);
  background: #fffaf0;
  color: #8a5600;
}

.move-draft-action:hover,
.move-draft-action:focus-visible {
  border-color: rgba(168, 102, 0, 0.42);
  background: #fff3d8;
  color: #704500;
  outline: none;
}

.move-draft-icon {
  position: relative;
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.move-draft-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  top: -6px;
  width: 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.move-draft-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  top: -4px;
  width: 2px;
  height: 13px;
  border-radius: 2px;
  background: currentColor;
}

.delete-product-action {
  border-color: rgba(180, 35, 24, 0.22);
  background: #fff8f7;
  color: #a8281d;
}

.delete-product-action:hover,
.delete-product-action:focus-visible {
  border-color: rgba(180, 35, 24, 0.45);
  background: #fff4f2;
  color: #8f1f16;
  outline: none;
}

.delete-product-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(180, 35, 24, 0.2);
  border-radius: 7px;
  background: #fff;
}

.delete-product-icon::before {
  content: "";
  width: 12px;
  height: 13px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 4px 4px;
}

.delete-product-icon::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.delete-product-action .delete-product-icon > span,
.delete-product-icon span {
  display: none;
}

.delete-product-icon + .delete-product-label {
  line-height: 1;
}

.delete-product-icon::before {
  box-shadow: inset 3px 0 0 -2px currentColor, inset -3px 0 0 -2px currentColor;
}

.move-draft-action:disabled .move-draft-icon,
.move-draft-action:disabled .move-draft-label,
.delete-product-action:disabled .delete-product-icon,
.delete-product-action:disabled .delete-product-label {
  opacity: 0.55;
}

.profile-menu-wrap {
  position: relative;
  z-index: 130;
  display: inline-flex;
  min-width: 0;
}

.notification-menu-wrap {
  position: relative;
  z-index: 132;
  display: inline-flex;
  min-width: 0;
}

.notification-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: #536176;
}

.notification-button:hover,
.notification-button:focus-visible,
.notification-button[aria-expanded="true"] {
  border-color: #c5d0df;
  background: rgba(255, 255, 255, 0.82);
}

.bell-icon {
  position: relative;
  width: 22px;
  height: 22px;
  color: currentColor;
}

.bell-icon::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 12px;
  height: 13px;
  border: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-radius: 9px 9px 5px 5px;
  clip-path: polygon(0 32%, 18% 12%, 35% 4%, 50% 0, 65% 4%, 82% 12%, 100% 32%, 100% 84%, 86% 100%, 14% 100%, 0 84%);
}

.bell-icon::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 2px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 -3px 0 -1px #fff, -6px -5px 0 -4px currentColor, 6px -5px 0 -4px currentColor;
}

.notification-badge {
  position: absolute;
  right: -4px;
  top: -4px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #e3382f;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.notification-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 145;
  width: min(360px, calc(100vw - 24px));
  padding: 8px;
  border: 1px solid rgba(191, 203, 218, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(16, 24, 39, 0.16);
}

.notification-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 16px;
  width: 10px;
  height: 10px;
  border-left: 1px solid rgba(191, 203, 218, 0.92);
  border-top: 1px solid rgba(191, 203, 218, 0.92);
  background: #fff;
  transform: rotate(45deg);
}

.notification-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 9px;
  border-bottom: 1px solid #edf1f6;
}

.notification-list {
  display: grid;
  gap: 6px;
  max-height: min(420px, calc(100vh - var(--header-offset, 98px) - 50px));
  overflow: auto;
  padding-top: 7px;
}

.notification-item {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 0;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  text-align: left;
}

.notification-item:hover,
.notification-item:focus-visible {
  border-color: #d6e0ec;
  background: #f7faff;
}

.notification-item.unread {
  border-color: rgba(40, 104, 255, 0.18);
  background: #f4f8ff;
}

.notification-item span {
  color: #172033;
  font-weight: 900;
}

.notification-item p,
.notification-item small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.notification-empty {
  padding: 18px 10px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  min-width: 0;
  max-width: 190px;
  padding: 0 10px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.account-chip:hover,
.account-chip:focus-visible,
.account-chip[aria-expanded="true"] {
  border-color: #c5d0df;
  background: rgba(255, 255, 255, 0.82);
}

.user-icon {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #eef4ff;
  border: 1px solid #cdd9ea;
}

.user-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5f6f83;
  transform: translateX(-50%);
}

.user-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 13px;
  height: 7px;
  border-radius: 8px 8px 4px 4px;
  background: #5f6f83;
  transform: translateX(-50%);
}

.user-icon.has-photo {
  background-color: #eef4ff;
  background-position: center;
  background-size: cover;
}

.user-icon.has-photo::before,
.user-icon.has-photo::after {
  display: none;
}

.account-chip .session-badge {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-caret {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-right: 2px solid #708093;
  border-bottom: 2px solid #708093;
  transform: translateY(-2px) rotate(45deg);
}

.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 140;
  width: 220px;
  padding: 7px;
  border: 1px solid rgba(191, 203, 218, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(16, 24, 39, 0.16);
}

.profile-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 22px;
  width: 10px;
  height: 10px;
  border-left: 1px solid rgba(191, 203, 218, 0.92);
  border-top: 1px solid rgba(191, 203, 218, 0.92);
  background: #fff;
  transform: rotate(45deg);
}

.profile-menu-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 42px;
  gap: 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #253044;
  padding: 0 10px;
  font-weight: 800;
  text-align: left;
}

.profile-menu-item:hover,
.profile-menu-item:focus-visible {
  background: #f2f6fb;
}

.profile-menu-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: currentColor;
}

.manage-icon::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.manage-icon::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  width: 4px;
  height: 18px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.sell-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 14px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.sell-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 5px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}

.orders-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.orders-icon::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  width: 7px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
}

.danger-menu-item {
  margin-top: 5px;
  border-top: 1px solid #f3d5d1;
  border-radius: 0 0 7px 7px;
  color: #b42318;
}

.danger-menu-item:hover,
.danger-menu-item:focus-visible {
  background: #fff1f0;
  color: #9f1f16;
}

.logout-icon::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 3px;
  width: 8px;
  height: 12px;
  border: 2px solid currentColor;
  border-right: 0;
  border-radius: 4px 0 0 4px;
}

.logout-icon::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 8px;
  width: 11px;
  height: 2px;
  background: currentColor;
  box-shadow: 4px -4px 0 -1px currentColor, 4px 4px 0 -1px currentColor;
}

.language-control {
  display: block;
}

.language-control select {
  width: 74px;
  min-height: 38px;
  padding: 0 8px;
  font-weight: 900;
}

.nav-link.active {
  border-color: rgba(74, 108, 255, 0.55);
  color: #2542c7;
  background: #eef2ff;
  font-weight: 800;
}

.nav-link,
.account-actions button {
  white-space: nowrap;
}

main {
  display: flex;
  flex-direction: column;
  width: min(1480px, calc(100vw - 34px));
  margin: 0 auto;
  padding: 22px 0 38px;
}

.market-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px 360px;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 14px;
}

.hero-copy,
.hero-visual,
.hero-metrics,
.toolbar,
.view-section,
.seller-sidebar,
.product-editor,
.modal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-visual,
.hero-metrics {
  padding: 18px;
}

.hero-copy {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  box-shadow: var(--brand-shadow);
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 194, 168, 0.18), rgba(124, 58, 237, 0.16));
}

.hero-visual {
  padding: 0;
  overflow: hidden;
  background: var(--brand-ink);
  box-shadow: var(--brand-shadow);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: cover;
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  margin: 0 0 6px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 10px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
}

h2 {
  margin-bottom: 6px;
  font-size: 20px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.hero-metrics article {
  border: 1px solid #dfe5ee;
  border-radius: 7px;
  padding: 14px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.hero-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.hero-metrics strong {
  font-size: 32px;
}

.hero-actions {
  flex-wrap: wrap;
  margin-top: 18px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px 170px 170px;
  gap: 12px;
  padding: 14px;
  margin-bottom: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfd;
  color: var(--ink);
  padding: 9px 10px;
}

input::placeholder,
textarea::placeholder {
  color: #8a96a8;
  font-style: italic;
  font-weight: 500;
  opacity: 0.82;
}

.field-help {
  display: block;
  min-height: 28px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

textarea {
  resize: vertical;
}

.view-section {
  display: none;
  padding: 16px;
}

#marketView {
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--accent), var(--blue), var(--violet)) 1;
}

.view-section.active {
  display: block;
}

.section-heading,
.panel-title,
.editor-heading,
.modal-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.modal-heading > div:first-child {
  min-width: 0;
}

.detail-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.detail-open-tab-button {
  display: grid;
  place-items: center;
  color: #334155;
  text-decoration: none;
}

.detail-open-tab-button span {
  position: relative;
  width: 16px;
  height: 16px;
}

.detail-open-tab-button span::before {
  content: "";
  position: absolute;
  left: 1px;
  bottom: 1px;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.detail-open-tab-button span::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  box-shadow: 4px 0 0 -2px currentColor, 0 -4px 0 -2px currentColor;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  min-height: 260px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(74, 108, 255, 0.38);
  box-shadow: 0 18px 36px rgba(16, 24, 39, 0.1);
}

.product-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 3;
  border: 1px solid var(--line);
  border-radius: 7px;
  object-fit: cover;
  background: #edf2f7;
}

.product-thumb-empty {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-ink), var(--blue), var(--violet));
  font-size: 28px;
  font-weight: 900;
}

.product-card h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.card-kicker,
.pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  background: #eef2f5;
  color: #4f5a67;
  font-size: 12px;
  font-weight: 900;
}

.card-kicker {
  color: #2542c7;
  background: #eef2ff;
}

.status-published {
  background: #e4f4ee;
  color: var(--accent-dark);
}

.status-draft {
  background: #fff1d6;
  color: var(--amber);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.price-row strong {
  font-size: 24px;
  color: var(--brand-ink);
  white-space: nowrap;
}

.seller-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 14px;
}

.seller-sidebar,
.product-editor {
  padding: 14px;
}

.product-editor {
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--accent), var(--blue), var(--violet)) 1;
}

.seller-products {
  display: grid;
  gap: 8px;
}

.seller-item {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  cursor: pointer;
}

.seller-item:hover {
  border-color: var(--accent);
}

.seller-item strong,
.seller-item small {
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sale-grid {
  align-items: start;
}

.seller-start-panel {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.seller-flow-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.seller-flow-card {
  display: grid;
  gap: 8px;
  min-height: 116px;
  padding: 14px;
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  background: #f9fbfe;
  color: var(--brand-ink);
  text-align: left;
}

.seller-flow-card.active {
  border-color: rgba(40, 104, 255, 0.62);
  background: #f4f8ff;
  box-shadow: 0 0 0 2px rgba(40, 104, 255, 0.12);
}

.seller-flow-card strong {
  font-size: 15px;
}

.seller-flow-card small {
  color: var(--muted);
  line-height: 1.4;
}

.manual-product-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.stripe-create-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.purchase-options-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(180deg, #fff, #f7fbff);
}

.stripe-import-panel {
  display: grid;
  gap: 10px;
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.stripe-import-main-action {
  display: flex;
  justify-content: center;
  padding: 4px 0 8px;
}

.stripe-import-main-action .primary-button {
  min-width: 220px;
  box-shadow: 0 16px 32px rgba(40, 104, 255, 0.18);
}

.stripe-import-results {
  display: grid;
  gap: 10px;
}

.stripe-import-status {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 150px;
  padding: 18px 12px;
  color: var(--muted);
  text-align: center;
}

.stripe-import-status strong {
  color: var(--brand-ink);
  font-size: 18px;
}

.stripe-import-status p {
  max-width: 560px;
  margin: 0;
  line-height: 1.45;
}

.stripe-import-status .ghost-button {
  margin-top: 4px;
}

.stripe-import-status-actions {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.stripe-account-confirm {
  display: grid;
  gap: 8px;
  width: min(100%, 520px);
  margin-top: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  text-align: left;
}

.stripe-account-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  width: min(100%, 640px);
}

.stripe-account-choice {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.stripe-account-choice.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(40, 104, 255, 0.12);
}

.stripe-account-choice strong,
.stripe-account-choice small,
.stripe-account-choice span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.stripe-account-choice small,
.stripe-account-choice span {
  color: var(--muted);
  font-size: 12px;
}

.stripe-accounts-card {
  display: grid;
  gap: 14px;
}

.stripe-accounts-list {
  display: grid;
  gap: 8px;
}

.stripe-accounts-loading {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 170px;
  padding: 24px 12px;
  color: var(--brand-ink);
  text-align: center;
}

.stripe-account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.stripe-account-card > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.stripe-account-card strong,
.stripe-account-card span,
.stripe-account-card small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.stripe-account-card span,
.stripe-account-card small {
  color: var(--muted);
}

.stripe-account-card em {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff8e8;
  color: #8b5c00;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.stripe-account-card em.ready {
  background: #effaf3;
  color: #116b3d;
}

.stripe-account-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.stripe-account-unlink {
  color: #9b1c1c;
  border-color: #ffd6d6;
  background: #fff7f7;
}

.stripe-accounts-actions {
  display: flex;
  justify-content: flex-end;
}

.stripe-import-diagnostics {
  width: min(100%, 620px);
  margin: -6px auto 0;
  padding: 10px 12px;
  border: 1px solid #dbe6f5;
  border-radius: 8px;
  background: #f8fbff;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}

.stripe-account-confirm div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.stripe-account-confirm span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.stripe-account-confirm strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
}

.stripe-import-logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #f7fbff;
}

.stripe-import-logo-wrap img {
  width: 36px;
  height: 36px;
}

.stripe-import-spinner {
  position: absolute;
  inset: 0;
  border: 3px solid rgba(40, 104, 255, 0.16);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: stripeImportSpin 0.9s linear infinite;
}

.stripe-import-status-success .stripe-import-logo-wrap {
  background: #f2fbf6;
  box-shadow: 0 0 0 1px rgba(30, 126, 83, 0.18);
}

.stripe-import-status-empty .stripe-import-logo-wrap,
.stripe-import-status-error .stripe-import-logo-wrap {
  background: #fff8e8;
  box-shadow: 0 0 0 1px rgba(217, 154, 33, 0.22);
}

@keyframes stripeImportSpin {
  to {
    transform: rotate(360deg);
  }
}

.stripe-import-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.stripe-import-item {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 8px;
  text-align: left;
}

.stripe-import-item.selected {
  border-color: rgba(30, 126, 83, 0.5);
  background: #f2fbf6;
  box-shadow: 0 0 0 2px rgba(30, 126, 83, 0.12);
}

.stripe-import-item span {
  min-width: 0;
}

.stripe-import-item strong,
.stripe-import-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stripe-import-item small {
  margin-top: 4px;
  color: var(--muted);
}

.stripe-import-thumb {
  width: 48px;
  height: 48px;
  border: 1px solid #d9e4f2;
  border-radius: 7px;
  background: #eef4ff center / cover no-repeat;
}

.stripe-import-thumb-empty::before {
  content: "ST";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #536176;
  font-weight: 900;
  font-size: 12px;
}

.stripe-import-check {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1e7e53;
  color: #fff;
  font-weight: 900;
}

.stripe-import-item:not(.selected) .stripe-import-check {
  border: 1px solid #c9d7e8;
  background: #fff;
}

.stripe-import-item em {
  grid-column: 2 / -1;
  color: #1e7e53;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.stripe-no-image {
  display: grid;
  place-items: center;
  min-height: 86px;
  border: 1px dashed #d9e4f2;
  border-radius: 8px;
  background: #f7fbff;
  color: var(--muted);
}

.purchase-option-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.purchase-options-list {
  display: grid;
  gap: 10px;
}

.purchase-option-row {
  position: relative;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  padding: 12px 58px 12px 12px;
  background: #fff;
}

.purchase-option-row label {
  min-width: 0;
}

.plan-fields-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(150px, 0.9fr) minmax(140px, 0.7fr) minmax(140px, 0.7fr);
  gap: 10px;
  align-items: start;
}

.plan-fields-grid .option-description-field,
.plan-fields-grid .option-delivery-field {
  grid-column: span 2;
}

.plan-fields-grid .option-internal-delivery-field {
  grid-column: 1 / -1;
}

.plan-fields-grid .option-long-description-field {
  grid-column: 1 / -1;
}

.plan-image-field {
  display: grid;
  align-content: start;
  align-self: start;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.delivery-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.delivery-upload-status {
  margin: 0;
  border: 1px solid #cfd9e8;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(0, 194, 168, 0.2) var(--delivery-progress, 0%), transparent var(--delivery-progress, 0%)),
    #f7fbff;
  color: #42526a;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.35;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.delivery-upload-status-error {
  border-color: rgba(180, 35, 24, 0.3);
  background: #fff4f2;
  color: #9f2a1d;
}

.delivery-upload-status-success {
  border-color: rgba(0, 122, 105, 0.28);
  background: #ecfffb;
  color: #087568;
}

.delivery-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  border: 1px solid #cfd9e8;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 6px 8px 6px 10px;
  font-size: 12px;
}

.delivery-file-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-file-chip small {
  color: var(--muted);
}

.delivery-file-chip button {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(180, 35, 24, 0.2);
  border-radius: 50%;
  background: #fff;
  color: #b42318;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.plan-image-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.plan-image-thumb {
  position: relative;
  min-height: 64px;
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  background-position: center;
  background-size: cover;
}

.purchase-option-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #b42318;
}

.purchase-option-remove:disabled {
  opacity: 0.36;
  cursor: not-allowed;
}

.plan-summary {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 32px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.plan-summary strong {
  color: var(--brand-ink);
  font-size: 18px;
}

.purchase-choice-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.purchase-choice {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f8fbff;
  cursor: pointer;
}

.purchase-choice input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  border: 1.5px solid #9aacbf;
  border-radius: 999px;
  background: #fff;
  outline: 0;
}

.purchase-choice input[type="radio"]:checked {
  border-color: #2868ff;
  background: radial-gradient(circle at center, #2868ff 0 45%, transparent 48%);
}

.purchase-choice input[type="radio"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(40, 104, 255, 0.16);
}

.purchase-choice:has(.purchase-choice-thumb) {
  grid-template-columns: 18px 52px minmax(0, 1fr);
}

.purchase-choice:has(input:checked) {
  border-color: rgba(40, 104, 255, 0.68);
  box-shadow: 0 0 0 3px rgba(40, 104, 255, 0.1);
}

.purchase-choice strong,
.purchase-choice span,
.purchase-choice small {
  display: block;
}

.purchase-choice-price {
  color: var(--brand-ink);
  font-size: 18px;
  font-weight: 900;
}

.purchase-choice-thumb {
  width: 52px;
  height: 42px;
  border: 1px solid #d9e4f2;
  border-radius: 7px;
  background-position: center;
  background-size: cover;
}

.wide {
  grid-column: 1 / -1;
}

.publish-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.publish-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  background: #f7fbff;
  color: var(--muted);
  font-weight: 900;
}

.terms-card {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 60px rgba(13, 27, 42, 0.08);
}

.terms-summary-card {
  gap: 20px;
  padding: 20px;
}

.terms-lead {
  display: grid;
  gap: 8px;
  max-width: 920px;
}

.terms-lead h3 {
  margin: 0;
  font-size: 28px;
}

.terms-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.terms-summary-grid section {
  position: relative;
  min-height: 150px;
  padding: 16px;
  border: 1px solid #dbe6f4;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f7fbff);
}

.terms-summary-grid span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #eaf2ff;
  color: #1f5fe5;
  font-size: 12px;
  font-weight: 900;
}

.terms-action-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(0, 184, 148, 0.24);
  border-radius: 8px;
  background: #f0fdf8;
}

.terms-action-panel p {
  margin: 4px 0 0;
}

.terms-card section {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf2f7;
}

.terms-card section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.terms-card h3 {
  margin: 0;
  color: var(--brand-ink);
}

.terms-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.terms-summary-card .terms-summary-grid section,
.terms-summary-card .terms-summary-grid section:last-child {
  padding: 16px;
  border: 1px solid #dbe6f4;
  background: linear-gradient(180deg, #fff, #f7fbff);
}

.terms-accept-card {
  max-width: 720px;
}

.full-terms-card {
  width: min(980px, calc(100vw - 34px));
  max-height: calc(100vh - 70px);
}

.full-terms-body {
  display: grid;
  gap: 14px;
  max-height: min(58vh, 620px);
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.full-terms-body section {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #e2eaf5;
  border-radius: 8px;
  background: #fff;
}

.full-terms-body h3 {
  margin: 0;
  color: var(--brand-ink);
  font-size: 16px;
}

.full-terms-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.terms-scroll {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  margin: 10px 0 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  color: var(--muted);
  line-height: 1.55;
}

.terms-scroll p {
  margin: 0;
}

.terms-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0 16px;
  color: var(--brand-ink);
  font-weight: 800;
}

.terms-check input {
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 18px;
  border: 1.5px solid #9aacbf;
  border-radius: 5px;
  background: #fff;
  outline: 0;
}

.terms-check input:checked {
  border-color: #1478e8;
  background: #1478e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M2.2 7.4 5.5 10.5 11.8 3.5'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

.terms-check input:focus-visible {
  box-shadow: 0 0 0 3px rgba(40, 104, 255, 0.16);
}

.terms-check input:disabled {
  opacity: 0.72;
}

.terms-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.terms-account-card {
  display: grid;
  gap: 10px;
}

.account-terms-check {
  margin: 2px 0 0;
}

.terms-account-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #edf2f7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 920px) {
  .terms-summary-grid,
  .account-overview-card,
  .account-overview-card .account-status-grid {
    grid-template-columns: 1fr;
  }

  .terms-action-panel {
    align-items: stretch;
    flex-direction: column;
  }
}

.publish-step span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #e8eef8;
  color: #315b8f;
  font-size: 12px;
}

.publish-step.active {
  border-color: rgba(40, 104, 255, 0.44);
  background: #eef4ff;
  color: #1645d8;
  box-shadow: 0 10px 24px rgba(40, 104, 255, 0.1);
}

.publish-step.active span {
  background: var(--blue);
  color: #fff;
}

.product-step-panel {
  display: none;
}

.product-step-panel.active {
  display: block;
}

.step-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #edf1f6;
}

.step-arrow-button {
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 50%;
  border-color: #cbd6e4;
  background: #fff;
  color: #2542c7;
  padding: 0;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(40, 104, 255, 0.1);
}

.step-arrow-button:hover,
.step-arrow-button:focus-visible {
  border-color: rgba(74, 108, 255, 0.64);
  background: #eef4ff;
  outline: none;
}

.step-arrow-button:disabled {
  opacity: 0.36;
  cursor: not-allowed;
  box-shadow: none;
}

.media-uploader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: stretch;
}

.media-uploader h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.upload-dropzone {
  display: grid;
  place-items: center;
  min-height: 160px;
  border: 1px dashed rgba(40, 104, 255, 0.45);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f3f8ff);
  color: var(--brand-ink);
  text-align: center;
  cursor: pointer;
}

.upload-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-dropzone strong,
.upload-dropzone span {
  display: block;
}

.upload-dropzone span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.upload-dropzone.drag-over {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(40, 104, 255, 0.1);
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 14px;
  align-items: start;
}

.image-tile {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(13, 27, 48, 0.07);
  cursor: grab;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.image-tile:active {
  cursor: grabbing;
}

.image-tile.dragging {
  opacity: 0.58;
  transform: scale(0.98);
}

.image-tile.drag-over {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(40, 104, 255, 0.12), 0 18px 42px rgba(13, 27, 48, 0.12);
}

.cover-tile {
  grid-column: span 2;
  border-color: rgba(40, 104, 255, 0.42);
  box-shadow: 0 18px 46px rgba(40, 104, 255, 0.12);
}

.image-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #edf2f8;
}

.cover-tile img {
  aspect-ratio: 16 / 8.6;
}

.image-tile > div {
  padding: 10px;
}

.image-tile strong,
.image-tile small {
  display: block;
}

.image-tile small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-actions {
  display: grid;
  grid-template-columns: 42px 42px minmax(0, 1fr);
  gap: 6px;
  padding-top: 0 !important;
}

.image-actions button {
  min-height: 32px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 800;
}

.image-actions button[aria-label] {
  padding: 0;
  font-size: 18px;
}

.money-input {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
}

.money-input > span {
  display: grid;
  place-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 7px 0 0 7px;
  background: #eef4ff;
  color: #1645d8;
  font-size: 12px;
  font-weight: 900;
}

.money-input input {
  border-radius: 0 7px 7px 0;
}

.setup-time-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
}

.setup-time-input input {
  border-radius: 7px 0 0 7px;
}

.setup-time-input select {
  border-left: 0;
  border-radius: 0 7px 7px 0;
  background: #eef4ff;
  color: #1645d8;
  font-weight: 900;
}

.orders-list {
  display: grid;
  gap: 10px;
}

.account-panel {
  display: grid;
  gap: 14px;
}

.account-gate {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.account-gate p {
  margin: 0;
}

.account-gate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.account-gate-actions button {
  min-width: 150px;
}

.security-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.security-actions button {
  min-width: 132px;
}

.account-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.avatar-upload-field {
  align-content: start;
}

.avatar-upload-control {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 78px;
  border: 1px dashed rgba(40, 104, 255, 0.42);
  border-radius: 8px;
  padding: 10px;
  background: linear-gradient(180deg, #fff, #f3f8ff);
  color: var(--brand-ink);
  cursor: pointer;
}

.avatar-upload-control strong,
.avatar-upload-control small {
  display: block;
}

.avatar-upload-control small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.avatar-preview {
  position: relative;
  display: block;
  width: 58px;
  height: 58px;
  border: 1px solid #cdd9ea;
  border-radius: 50%;
  background: #eef4ff;
  background-position: center;
  background-size: cover;
}

.avatar-preview::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 13px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #5f6f83;
  transform: translateX(-50%);
}

.avatar-preview::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 30px;
  height: 16px;
  border-radius: 18px 18px 8px 8px;
  background: #5f6f83;
  transform: translateX(-50%);
}

.avatar-preview.has-photo::before,
.avatar-preview.has-photo::after {
  display: none;
}

.avatar-upload-field input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.identity-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 18px;
  align-items: center;
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--accent), var(--blue), var(--violet)) 1;
}

.account-overview-card {
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
}

.account-overview-card .account-status-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.connect-country-field {
  display: grid;
  gap: 7px;
  max-width: 360px;
  margin: 14px 0;
  color: var(--ink);
  font-weight: 800;
}

.connect-country-field select {
  width: 100%;
}

.connect-country-field small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.account-status-grid article,
.checklist article {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f9fbfe;
  padding: 12px;
}

.account-status-grid .account-action-tile {
  position: relative;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.account-status-grid .account-action-tile::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 14px;
  width: 7px;
  height: 7px;
  border-right: 2px solid #8ca0bb;
  border-top: 2px solid #8ca0bb;
  opacity: 0;
  transform: rotate(45deg) translateX(-3px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.account-status-grid .account-action-tile:hover,
.account-status-grid .account-action-tile:focus-visible {
  border-color: rgba(74, 108, 255, 0.58);
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 24, 39, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.account-status-grid .account-action-tile:hover::after,
.account-status-grid .account-action-tile:focus-visible::after {
  opacity: 1;
  transform: rotate(45deg) translateX(0);
}

.account-status-grid span,
.checklist span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.account-status-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
}

@media (max-width: 920px) {
  .account-overview-card,
  .account-overview-card .account-status-grid {
    grid-template-columns: 1fr;
  }
}

.checklist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.order-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.order-item-highlight {
  border-color: rgba(40, 104, 255, 0.72);
  background: #f5f8ff;
  box-shadow: 0 0 0 4px rgba(40, 104, 255, 0.12);
}

.order-payment-summary {
  margin-top: 10px;
  max-width: 720px;
  border: 1px solid #d8e3f0;
  border-radius: 8px;
  background: #f8fbff;
  padding: 10px 12px;
}

.order-payment-summary span,
.order-payout-header span {
  display: block;
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
}

.order-payment-summary p {
  margin: 5px 0 0;
  color: #536176;
  font-size: 13px;
  line-height: 1.45;
}

.order-payment-success {
  border-color: rgba(0, 122, 105, 0.25);
  background: #f2fffb;
}

.order-payment-warning {
  border-color: rgba(168, 102, 0, 0.25);
  background: #fffaf1;
}

.order-payment-muted {
  border-color: #dce4ef;
  background: #f7f9fc;
}

.order-payment-pending {
  border-color: rgba(40, 104, 255, 0.22);
  background: #f5f8ff;
}

.order-payout-timeline {
  --payout-progress: 0%;
  margin-top: 10px;
  max-width: 720px;
  border: 1px solid #d8e3f0;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.order-payout-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.order-payout-header strong {
  color: #2868ff;
  font-size: 12px;
}

.order-payout-track {
  position: relative;
  height: 10px;
  margin: 9px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef6;
}

.order-payout-track span {
  display: block;
  width: var(--payout-progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00c2a8, #2868ff);
  transition: width 420ms ease;
}

.order-actions {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.order-note {
  max-width: 680px;
  margin: 8px 0 0;
  color: #536176;
  font-size: 13px;
  line-height: 1.45;
}

.order-delivery-box {
  width: min(520px, 100%);
  border: 1px solid #cfe0f4;
  border-radius: 8px;
  background: #f7fbff;
  padding: 10px 12px;
  text-align: left;
}

.order-delivery-box span {
  display: block;
  color: #087568;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.order-delivery-box p {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.delivery-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  text-decoration: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(10, 14, 20, 0.42);
}

.modal.open {
  display: flex;
}

.modal-card {
  width: min(620px, 100%);
  max-height: min(860px, calc(100vh - 44px));
  overflow: auto;
  padding: 24px;
}

.stripe-redirect-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.98), rgba(245, 247, 251, 0.94) 46%, rgba(235, 242, 248, 0.94)),
    rgba(245, 247, 251, 0.94);
}

.stripe-redirect-loader {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(300px, 100%);
  color: var(--brand-ink);
  text-align: center;
}

.stripe-loader-ring,
.stripe-loader-logo {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
}

.stripe-loader-ring {
  width: 92px;
  height: 92px;
  border: 3px solid rgba(216, 222, 230, 0.95);
  border-top-color: var(--accent);
  border-right-color: var(--blue);
  border-radius: 50%;
  animation: stripeLoaderSpin 0.86s linear infinite;
}

.stripe-loader-logo {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 16px 34px rgba(16, 24, 39, 0.16);
}

.stripe-loader-logo img {
  width: 100%;
  height: 100%;
  display: block;
}

.stripe-redirect-loader strong {
  margin-top: 10px;
  font-size: 18px;
}

.stripe-redirect-loader span:last-child {
  color: var(--muted);
  line-height: 1.45;
}

@keyframes stripeLoaderSpin {
  to {
    transform: rotate(360deg);
  }
}

#detailModal {
  inset: var(--header-offset, 98px) 0 0 0;
  z-index: 110;
  align-items: flex-start;
  padding-top: 12px;
  padding-bottom: 14px;
}

#detailModal .detail-card {
  max-height: calc(100vh - var(--header-offset, 98px) - 26px);
}

.success-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(560px, 100%);
  text-align: center;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 18px 36px rgba(40, 104, 255, 0.18);
}

.success-card h2 {
  margin-bottom: 0;
  font-size: 28px;
}

.success-card p:not(.eyebrow) {
  max-width: 430px;
  margin-bottom: 4px;
  color: var(--muted);
  line-height: 1.55;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.duplicate-card {
  width: min(520px, 100%);
}

.duplicate-product-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f7fafc;
  color: var(--brand-ink);
  font-weight: 900;
}

.duplicate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.mfa-card {
  width: min(620px, 100%);
}

.mfa-setup-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin: 16px 0;
}

.mfa-qr-box,
.mfa-secret-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  padding: 14px;
}

.mfa-qr-box {
  display: grid;
  place-items: center;
  min-height: 220px;
}

.mfa-qr-image {
  display: block;
  width: min(190px, 100%);
  height: auto;
}

.mfa-secret-box {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
}

.mfa-secret-box span {
  display: block;
  max-height: 140px;
  overflow: auto;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.mfa-code-input {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
}

#authForm {
  display: grid;
  gap: 14px;
}

#authForm label {
  gap: 8px;
}

#authForm input {
  min-height: 46px;
}

.wide-button {
  width: 100%;
}

.google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  border-color: #cfd7e3;
  background: #fff;
  color: var(--brand-ink);
  font-weight: 900;
}

.google-button::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background: url("/assets/google-g.svg") center / contain no-repeat;
}

.google-button:disabled {
  border-color: #dce3ec;
  background: #f7f9fc;
  color: var(--muted);
  cursor: default;
  box-shadow: none;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-mode {
  align-items: stretch;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 2px;
}

.auth-mode button {
  min-width: 150px;
}

#resetPasswordButton {
  margin-top: 2px;
}

#authForm .auth-mode {
  justify-content: center;
}

#authForm .auth-mode button {
  flex: 0 1 170px;
}

#authForm #resetPasswordButton {
  display: block;
  justify-self: center;
  margin-left: auto;
  margin-right: auto;
}

.detail-card {
  width: min(900px, 100%);
}

.detail-hero-image {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 14px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.detail-list {
  display: grid;
  gap: 8px;
}

.detail-list article {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 100px;
  z-index: 900;
  display: none;
  max-width: 420px;
  border-radius: 8px;
  background: var(--brand-ink);
  color: #fff;
  padding: 12px 14px;
  box-shadow: 0 18px 48px rgba(16, 24, 39, 0.28);
}

.toast.show {
  display: block;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .app-header,
  .market-hero,
  .toolbar,
  .seller-layout,
  .detail-grid,
  .identity-card {
    grid-template-columns: 1fr;
  }

  .main-nav,
  .account-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .main-nav {
    justify-self: stretch;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .account-status-grid,
  .checklist {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body[data-current-view="market"] .market-hero {
    grid-template-columns: 1fr;
  }

  body[data-current-view="market"] .hero-visual {
    display: none;
  }
}

@media (max-width: 720px) {
  .app-header {
    padding: 10px 14px;
  }

  main {
    width: min(100vw - 18px, 1480px);
    padding-top: 12px;
  }

  .product-grid,
  .form-grid,
  .purchase-option-row,
  .plan-fields-grid,
  .publish-steps,
  .media-uploader,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .purchase-option-row {
    padding-right: 58px;
  }

  .plan-fields-grid .option-description-field,
  .plan-fields-grid .option-delivery-field {
    grid-column: auto;
  }

  .editor-heading,
  .section-heading,
  .modal-heading {
    flex-direction: column;
  }

  .auth-mode button,
  .hero-actions button,
  .editor-bottom-actions button {
    flex: 1 1 160px;
  }

  .editor-bottom-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .editor-danger-actions,
  .editor-save-actions {
    flex: 1 1 100%;
  }

  .editor-save-actions button {
    flex: 1 1 140px;
  }

  .editor-danger-actions .delete-product-action {
    flex: 0 1 auto;
  }
}

/* PRO PRO refinement: more air, clearer contrast, premium marketplace rhythm */
body {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(242, 247, 251, 0.94) 46%, rgba(233, 240, 249, 0.94)),
    radial-gradient(circle at 8% 18%, rgba(0, 184, 148, 0.12), transparent 28%),
    radial-gradient(circle at 88% 22%, rgba(40, 104, 255, 0.1), transparent 30%);
}

.ambient-grid {
  opacity: 0.72;
  background-size: 52px 52px, 52px 52px, 100% 100%;
}

.app-header {
  border-bottom-color: rgba(214, 222, 232, 0.7);
}

main {
  width: min(1420px, calc(100vw - 56px));
  padding-bottom: 70px;
}

.launch-strip,
.market-hero,
.focus-grid,
.discovery-lane,
.toolbar {
  margin-bottom: 22px;
}

.launch-strip {
  min-height: 50px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(242, 249, 255, 0.94) 52%, rgba(235, 250, 245, 0.94));
  color: var(--brand-ink);
  box-shadow: 0 14px 40px rgba(13, 27, 48, 0.07);
}

.launch-strip span:not(.signal-dot) {
  color: var(--muted);
}

.market-hero {
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.78fr) 250px;
  gap: 22px;
  align-items: stretch;
}

.hero-copy {
  min-height: 380px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(11, 18, 32, 0.96), rgba(18, 39, 69, 0.94) 55%, rgba(21, 53, 68, 0.95)),
    linear-gradient(100deg, rgba(0, 184, 148, 0.22), rgba(40, 104, 255, 0.12));
}

.hero-copy h1 {
  max-width: 720px;
  font-size: clamp(44px, 4.1vw, 66px);
}

.hero-copy p:not(.eyebrow):not(.system-notice) {
  max-width: 690px;
}

.hero-visual,
.hero-metrics {
  min-height: 380px;
}

.hero-metrics {
  padding: 16px;
  background: rgba(255, 255, 255, 0.74);
}

.hero-metrics article {
  min-height: 108px;
  display: grid;
  align-content: center;
  padding-left: 18px;
}

.focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.focus-card,
.focus-card-primary {
  min-height: 154px;
  padding: 20px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.92));
  border-color: rgba(214, 222, 232, 0.9);
  box-shadow: 0 16px 44px rgba(13, 27, 48, 0.08);
}

.focus-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--accent), var(--blue));
}

.focus-card-primary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 250, 247, 0.94));
}

.focus-card-primary span,
.focus-card-primary p {
  color: var(--muted);
}

.focus-card span {
  color: #087c69;
}

.focus-card strong {
  font-size: 23px;
}

.discovery-lane {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(214, 222, 232, 0.88);
  border-radius: 8px;
  background: rgba(214, 222, 232, 0.9);
  box-shadow: 0 16px 44px rgba(13, 27, 48, 0.07);
}

.discovery-lane article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 4px;
  min-height: 92px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.discovery-lane span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eef6ff;
  color: #1f4fd2;
  font-size: 12px;
  font-weight: 900;
}

.discovery-lane strong {
  align-self: end;
  font-size: 15px;
}

.discovery-lane p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.toolbar {
  top: 84px;
  padding: 18px;
  border-color: rgba(214, 222, 232, 0.86);
  box-shadow: 0 16px 44px rgba(13, 27, 48, 0.08);
}

.view-section {
  padding: 24px;
}

.section-heading {
  margin-bottom: 22px;
}

.product-grid {
  gap: 20px;
}

.product-card {
  min-height: 440px;
  border-color: rgba(214, 222, 232, 0.92);
}

.product-card > :not(.product-thumb):not(.product-thumb-empty) {
  margin-left: 18px;
  margin-right: 18px;
}

.product-card > .price-row {
  margin: auto 18px 18px;
}

.product-card h3 {
  font-size: 20px;
  line-height: 1.15;
}

.product-card p {
  line-height: 1.5;
}

.tag-row {
  gap: 7px;
}

.pill,
.card-kicker,
.status-pill {
  min-height: 26px;
  padding: 0 10px;
}

.detail-card {
  width: min(1120px, calc(100vw - 36px));
  padding: 28px;
}

.detail-hero-image {
  max-height: 360px;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(13, 27, 48, 0.1);
}

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

.detail-grid aside .product-card {
  min-height: 0;
  position: sticky;
  top: 22px;
  padding-top: 16px;
  padding-bottom: 22px;
  row-gap: 16px;
}

.detail-list {
  margin-top: 18px;
}

.selected-plan-description {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.selected-plan-description strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-ink);
}

.selected-plan-description p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.detail-list article {
  padding: 14px;
  line-height: 1.45;
}

.modal-card {
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.22);
}

@media (max-width: 1200px) {
  main {
    width: min(100vw - 32px, 1420px);
  }

  .market-hero,
  .focus-grid,
  .discovery-lane {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-visual,
  .hero-metrics {
    min-height: auto;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .discovery-lane {
    gap: 1px;
  }
}

@media (max-width: 720px) {
  main {
    width: min(100vw - 20px, 1420px);
  }

  .launch-strip,
  .market-hero,
  .focus-grid,
  .discovery-lane,
  .toolbar {
    margin-bottom: 16px;
  }

  .hero-copy {
    min-height: auto;
    padding: 20px;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .hero-metrics {
    padding: 10px;
  }

  .focus-card,
  .focus-card-primary {
    min-height: 0;
    padding: 17px;
  }

  .discovery-lane article {
    min-height: 82px;
    padding: 14px;
  }

  .toolbar {
    padding: 14px;
  }

  .seller-flow-choice {
    grid-template-columns: 1fr;
  }

  .stripe-create-actions {
    justify-content: stretch;
  }

  .stripe-create-actions button {
    width: 100%;
  }

  .view-section {
    padding: 18px 14px;
  }

  .detail-card {
    width: min(100%, calc(100vw - 20px));
    padding: 18px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .detail-grid aside .product-card {
    position: static;
  }
}

/* PRO visual system pass */
:root {
  --bg: #f1f5fb;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --ink: #111827;
  --muted: #667385;
  --line: #d6dee8;
  --accent: #21e8ff;
  --accent-dark: #0a9ac6;
  --blue: #2e88ff;
  --violet: #8f55ff;
  --magenta: #b45cff;
  --gold: #d99a21;
  --brand-ink: #02040b;
  --shadow: 0 18px 50px rgba(13, 27, 48, 0.12);
  --brand-shadow: 0 28px 90px rgba(46, 136, 255, 0.18);
  --font-sans: Montserrat, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-brand: Montserrat, "Arial Rounded MT Bold", Inter, ui-sans-serif, system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(241, 245, 251, 0.92) 42%, rgba(231, 238, 250, 0.94)),
    linear-gradient(90deg, rgba(33, 232, 255, 0.09), rgba(46, 136, 255, 0.06) 45%, rgba(143, 85, 255, 0.08));
  overflow-x: hidden;
}

body.modal-lock {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.04) 1px, transparent 1px),
    linear-gradient(120deg, rgba(0, 184, 148, 0.1), transparent 38%, rgba(40, 104, 255, 0.09) 64%, rgba(217, 154, 33, 0.08));
  background-size: 44px 44px, 44px 44px, 100% 100%;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.82) 42%, rgba(0, 0, 0, 0.28) 100%);
}

button,
input,
select,
textarea {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

button:active {
  transform: translateY(1px);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(40, 104, 255, 0.58);
  box-shadow: 0 0 0 4px rgba(40, 104, 255, 0.12);
  outline: 0;
}

.primary-button {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--blue) 58%, var(--violet));
}

.primary-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.28) 48%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .5s ease;
}

.primary-button:hover::after {
  transform: translateX(120%);
}

.ghost-button:hover,
.google-button:hover {
  background: #f7fbff;
  box-shadow: 0 10px 24px rgba(13, 27, 48, 0.08);
}

.app-header {
  grid-template-columns: minmax(260px, 1fr) auto minmax(300px, 1fr);
  padding: 14px 30px;
  background: rgba(247, 250, 253, 0.82);
  box-shadow: 0 10px 30px rgba(13, 27, 48, 0.06);
}

.brand-mark {
  border-radius: 8px;
  background: var(--brand-ink);
  box-shadow: 0 12px 28px rgba(11, 18, 32, 0.22);
}

.brand strong {
  font-size: 15px;
  letter-spacing: 0;
}

.brand small {
  font-size: 12px;
}

.main-nav {
  gap: 4px;
  border-color: rgba(214, 222, 232, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.nav-link {
  min-height: 34px;
  border-color: transparent;
  background: transparent;
  font-weight: 800;
}

.nav-link:hover {
  background: #f4f8ff;
}

.nav-link.active {
  border-color: rgba(40, 104, 255, 0.42);
  background: linear-gradient(180deg, #fff, #eaf0ff);
  color: #1645d8;
  box-shadow: 0 8px 18px rgba(40, 104, 255, 0.12);
}

main {
  width: min(1500px, calc(100vw - 42px));
  padding-top: 18px;
}

.launch-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  margin: 0 0 14px;
  border: 1px solid rgba(214, 222, 232, 0.9);
  border-radius: 8px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(11, 18, 32, 0.96), rgba(18, 35, 65, 0.94) 46%, rgba(0, 127, 104, 0.94));
  color: #fff;
  box-shadow: var(--brand-shadow);
  overflow: hidden;
}

.launch-strip strong {
  font-size: 14px;
}

.launch-strip span:not(.signal-dot) {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.signal-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: #40f2ba;
  box-shadow: 0 0 0 6px rgba(64, 242, 186, 0.14), 0 0 24px rgba(64, 242, 186, 0.8);
  animation: pulseDot 2.4s ease-in-out infinite;
}

.market-hero {
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.7fr) 280px;
  gap: 16px;
  margin-bottom: 16px;
}

.hero-copy,
.hero-visual,
.hero-metrics,
.toolbar,
.view-section,
.seller-sidebar,
.product-editor,
.modal-card {
  border-color: rgba(214, 222, 232, 0.88);
  border-radius: 8px;
  backdrop-filter: blur(16px);
}

.hero-copy {
  isolation: isolate;
  min-height: 330px;
  padding: 28px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(11, 18, 32, 0.98), rgba(13, 35, 59, 0.96) 46%, rgba(24, 31, 59, 0.98)),
    linear-gradient(90deg, rgba(0, 184, 148, 0.26), rgba(40, 104, 255, 0.14));
  border-color: rgba(120, 154, 210, 0.28);
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.45;
}

.hero-copy::after {
  width: 420px;
  height: 420px;
  right: -180px;
  bottom: -250px;
  border-radius: 0;
  background: conic-gradient(from 160deg, rgba(0, 184, 148, 0.38), rgba(40, 104, 255, 0.24), rgba(217, 154, 33, 0.16), rgba(0, 184, 148, 0.38));
  filter: blur(24px);
  transform: rotate(10deg);
}

.hero-copy .eyebrow {
  color: #54f0c0;
}

.hero-copy h1 {
  max-width: 780px;
  font-size: clamp(42px, 4.8vw, 72px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow):not(.system-notice) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
  line-height: 1.6;
}

.hero-actions {
  position: relative;
  z-index: 1;
  margin-top: 24px;
}

.hero-actions .ghost-button {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.hero-visual {
  position: relative;
  min-height: 330px;
  background:
    linear-gradient(145deg, #0c1324, #12213a 55%, #0d302d);
  border-color: rgba(59, 130, 246, 0.28);
}

.hero-visual img {
  min-height: 330px;
  opacity: 0.92;
  transform: scale(1.04);
  animation: floatVisual 7s ease-in-out infinite;
}

.visual-card {
  position: absolute;
  display: grid;
  gap: 2px;
  min-width: 116px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.visual-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.visual-card strong {
  font-size: 22px;
}

.visual-card-a {
  top: 22px;
  left: 20px;
  animation: floatCard 5.8s ease-in-out infinite;
}

.visual-card-b {
  right: 20px;
  bottom: 22px;
  animation: floatCard 6.4s ease-in-out infinite reverse;
}

.hero-metrics {
  gap: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.hero-metrics article {
  position: relative;
  overflow: hidden;
  min-height: 96px;
  background: linear-gradient(180deg, #fff, #f4f8ff);
}

.hero-metrics article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(var(--accent), var(--blue));
}

.hero-metrics strong {
  color: var(--brand-ink);
}

.focus-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.focus-card {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  border: 1px solid rgba(214, 222, 232, 0.88);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 34px rgba(13, 27, 48, 0.08);
}

.focus-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--blue), var(--gold));
  transform: scaleX(0.24);
  transform-origin: left;
  transition: transform .28s ease;
}

.focus-card:hover::after {
  transform: scaleX(1);
}

.focus-card span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.focus-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.08;
}

.focus-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.focus-card-primary {
  color: #fff;
  background: linear-gradient(135deg, #0b1220, #163b58 55%, #075f51);
}

.focus-card-primary span,
.focus-card-primary p {
  color: rgba(255, 255, 255, 0.72);
}

.toolbar {
  position: sticky;
  top: 78px;
  z-index: 8;
  padding: 16px;
  background: rgba(255, 255, 255, 0.88);
}

input,
select,
textarea {
  background: rgba(250, 252, 255, 0.96);
}

.view-section {
  padding: 18px;
  background: rgba(255, 255, 255, 0.88);
}

#marketView {
  border-top: 0;
  box-shadow: var(--shadow);
}

.section-heading h2 {
  font-size: 24px;
}

#marketCount {
  align-self: center;
  border: 1px solid rgba(40, 104, 255, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  background: #eef4ff;
  color: #1f4fd2;
  font-size: 13px;
  font-weight: 900;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 14px;
}

.product-card {
  position: relative;
  overflow: hidden;
  min-height: 410px;
  padding: 0;
  background: #fff;
  box-shadow: 0 14px 34px rgba(13, 27, 48, 0.08);
  animation: riseIn .38s ease both;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(40, 104, 255, 0.34);
  box-shadow: 0 24px 60px rgba(13, 27, 48, 0.14);
}

.product-card > :not(.product-thumb):not(.product-thumb-empty) {
  margin-left: 14px;
  margin-right: 14px;
}

.product-card > .price-row {
  margin: auto 14px 14px;
}

.product-thumb,
.product-thumb-empty {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.product-thumb {
  aspect-ratio: 16 / 9;
  background: #e8eef6;
}

.product-thumb-empty {
  aspect-ratio: 16 / 9;
  min-height: 176px;
}

.card-kicker {
  margin-top: 14px;
  color: #0e5d50;
  background: #ddf8ef;
}

.pill {
  min-height: 25px;
  background: #f0f4f8;
}

.price-row {
  padding-top: 8px;
  border-top: 1px solid #edf1f6;
}

.price-row strong {
  font-size: clamp(20px, 1.55vw, 26px);
  letter-spacing: 0;
  white-space: nowrap;
}

.product-card > .price-row {
  align-items: center;
}

.product-card > .price-row .primary-button {
  flex: 0 0 auto;
  border-radius: 8px;
}

.seller-sidebar,
.product-editor,
.account-card,
.order-item {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(13, 27, 48, 0.08);
}

.seller-sidebar {
  position: sticky;
  top: 150px;
  align-self: start;
}

.product-editor,
.identity-card {
  border-top: 0;
  border-image: none;
  box-shadow: inset 0 4px 0 0 var(--blue), 0 12px 34px rgba(13, 27, 48, 0.08);
}

.account-status-grid article,
.checklist article,
.detail-list article {
  background: linear-gradient(180deg, #fff, #f7faff);
}

.modal {
  background: rgba(6, 10, 18, 0.58);
  backdrop-filter: blur(10px);
}

.modal-card {
  border-color: rgba(255, 255, 255, 0.28);
  animation: modalIn .18s ease both;
}

.empty-state {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.58);
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.72); opacity: 0.72; }
}

@keyframes floatVisual {
  0%, 100% { transform: scale(1.04) translateY(0); }
  50% { transform: scale(1.07) translateY(-8px); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

@keyframes modalIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 1200px) {
  .app-header,
  .market-hero,
  .focus-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    top: 128px;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .app-header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 10px;
  }

  .brand {
    flex: 1 1 190px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .account-actions {
    flex: 1 1 150px;
    justify-content: flex-end;
    gap: 8px;
  }

  .session-badge {
    display: none;
  }

  .language-control select {
    width: 62px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    flex: 0 0 auto;
  }

  main {
    width: min(100vw - 20px, 1500px);
    padding-top: 10px;
  }

  .launch-strip {
    min-height: 52px;
    gap: 8px;
    padding: 9px 11px;
  }

  .launch-strip span:not(.signal-dot) {
    display: none;
  }

  .hero-copy {
    min-height: auto;
    padding: 18px;
  }

  .hero-copy h1 {
    font-size: 31px;
    line-height: 1;
  }

  .hero-copy p:not(.eyebrow):not(.system-notice) {
    font-size: 14px;
    line-height: 1.45;
  }

  .hero-visual {
    display: none;
  }

  .visual-card {
    display: none;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .hero-metrics article {
    min-height: 72px;
    padding: 9px 9px 9px 12px;
  }

  .hero-metrics span {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .hero-metrics strong {
    font-size: 22px;
  }

  .focus-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    position: static;
  }

  .product-card {
    min-height: 0;
  }

  .seller-sidebar {
    position: static;
  }
}

/* Final cascade: airy marketplace finish */
.launch-strip {
  min-height: 50px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(242, 249, 255, 0.95) 52%, rgba(235, 250, 245, 0.95));
  color: var(--brand-ink);
  box-shadow: 0 14px 40px rgba(13, 27, 48, 0.07);
}

.launch-strip span:not(.signal-dot) {
  color: var(--muted);
}

.focus-card-primary {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 250, 247, 0.94));
}

.focus-card-primary span,
.focus-card-primary p {
  color: var(--muted);
}

.focus-card-primary span {
  color: #087c69;
}

.focus-card-primary::before {
  background: linear-gradient(var(--accent), var(--gold));
}

.focus-card:hover,
.product-card:hover,
.account-card:hover {
  border-color: rgba(40, 104, 255, 0.28);
}

.view-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: stretch;
  min-height: 210px;
  margin-bottom: 18px;
  border: 1px solid rgba(214, 222, 232, 0.9);
  border-radius: 8px;
  padding: 26px;
  overflow: hidden;
  color: #fff;
  box-shadow: var(--brand-shadow);
}

.view-context h1 {
  max-width: 860px;
  margin-bottom: 12px;
  font-size: clamp(32px, 3.4vw, 54px);
  line-height: 1;
}

.view-context p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
  line-height: 1.55;
}

.view-context .eyebrow {
  color: #54f0c0;
}

.context-visual {
  position: relative;
  min-height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
}

.context-visual span {
  position: absolute;
  display: block;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
}

.context-visual span:nth-child(1) {
  width: 54%;
  height: 34px;
  top: 28px;
  left: 24px;
}

.context-visual span:nth-child(2) {
  width: 72%;
  height: 48px;
  top: 78px;
  right: 22px;
}

.context-visual span:nth-child(3) {
  width: 42%;
  height: 34px;
  right: 56px;
  bottom: 22px;
}

body[data-current-view="sell"] .view-context {
  background:
    linear-gradient(135deg, rgba(7, 95, 81, 0.98), rgba(18, 57, 72, 0.98) 52%, rgba(11, 18, 32, 0.98)),
    linear-gradient(90deg, rgba(0, 184, 148, 0.22), rgba(40, 104, 255, 0.12));
}

body[data-current-view="orders"] .view-context {
  background:
    linear-gradient(135deg, rgba(11, 18, 32, 0.98), rgba(44, 39, 99, 0.98) 52%, rgba(73, 36, 92, 0.98)),
    linear-gradient(90deg, rgba(40, 104, 255, 0.18), rgba(217, 154, 33, 0.12));
}

body[data-current-view="account"] .view-context {
  background:
    linear-gradient(135deg, rgba(13, 27, 48, 0.98), rgba(44, 65, 95, 0.98) 50%, rgba(88, 73, 35, 0.98)),
    linear-gradient(90deg, rgba(217, 154, 33, 0.16), rgba(0, 184, 148, 0.12));
}

body[data-current-view="terms"] .view-context {
  background:
    linear-gradient(135deg, rgba(5, 56, 72, 0.98), rgba(16, 78, 91, 0.98) 48%, rgba(13, 27, 48, 0.98)),
    linear-gradient(90deg, rgba(0, 184, 148, 0.18), rgba(40, 104, 255, 0.14));
}

body[data-current-view="sell"] .market-hero,
body[data-current-view="sell"] .focus-grid,
body[data-current-view="sell"] .discovery-lane,
body[data-current-view="sell"] .toolbar,
body[data-current-view="orders"] .market-hero,
body[data-current-view="orders"] .focus-grid,
body[data-current-view="orders"] .discovery-lane,
body[data-current-view="orders"] .toolbar,
body[data-current-view="account"] .market-hero,
body[data-current-view="account"] .focus-grid,
body[data-current-view="account"] .discovery-lane,
body[data-current-view="account"] .toolbar,
body[data-current-view="terms"] .market-hero,
body[data-current-view="terms"] .focus-grid,
body[data-current-view="terms"] .discovery-lane,
body[data-current-view="terms"] .toolbar {
  display: none;
}

body[data-current-view="market"] .launch-strip {
  order: 1;
}

.operator-badge {
  margin-left: auto;
  padding: 6px 10px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #1d4ed8 !important;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
}

.brand-footnote,
.terms-operator-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.brand-footnote {
  justify-self: center;
  text-align: center;
}

.terms-operator-note {
  color: #1d4ed8;
}

@media (max-width: 720px) {
  .operator-badge {
    margin-left: 0;
  }
}

body[data-current-view="market"] .toolbar {
  order: 3;
  position: relative;
  top: auto;
  z-index: 1;
}

body[data-current-view="market"] #marketView {
  order: 4;
  margin-bottom: 16px;
  padding-top: 14px;
}

body[data-current-view="market"] #marketView .section-heading {
  margin-bottom: 10px;
}

body[data-current-view="market"] .market-hero {
  order: 2;
  margin-top: 0;
  margin-bottom: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.34fr);
  min-height: 220px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(7, 95, 81, 0.98), rgba(18, 57, 72, 0.98) 52%, rgba(11, 18, 32, 0.98)),
    linear-gradient(90deg, rgba(0, 184, 148, 0.22), rgba(40, 104, 255, 0.12));
}

body[data-current-view="market"] .hero-copy {
  min-height: 220px;
  padding: 24px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body[data-current-view="market"] .hero-copy h1 {
  margin-bottom: 10px;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.05;
  max-width: 880px;
}

body[data-current-view="market"] .hero-visual {
  min-height: 220px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body[data-current-view="market"] .hero-visual img,
body[data-current-view="market"] .hero-visual .visual-card {
  display: none;
}

body[data-current-view="market"] .hero-visual::before {
  content: "";
  position: absolute;
  inset: 28px 28px 28px 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
}

body[data-current-view="market"] .hero-visual::after {
  content: "";
  position: absolute;
  right: 82px;
  top: 50%;
  width: 44%;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    -92px -58px 0 rgba(255, 255, 255, 0.16),
    34px 58px 0 rgba(255, 255, 255, 0.16);
}

body[data-current-view="market"] .hero-metrics {
  display: none;
}

body[data-current-view="market"] .hero-actions {
  display: none;
}

body[data-current-view="market"] .focus-grid {
  order: 5;
}

body[data-current-view="market"] .discovery-lane {
  order: 6;
}

.site-footer {
  width: min(100%, 1760px);
  margin: 10px auto 28px;
  padding: 14px 28px 36px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  color: #66748a;
  font-size: 13px;
}

.site-footer > div,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer strong {
  color: var(--brand-ink);
}

.site-footer a {
  color: #315b8f;
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  color: #1645d8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.support-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 760;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  box-shadow: 0 18px 42px rgba(16, 24, 39, 0.24), 0 0 0 6px rgba(255, 255, 255, 0.88);
}

.support-launcher span {
  position: relative;
  display: block;
  width: 26px;
  height: 20px;
  margin: 0 auto;
  border: 3px solid #fff;
  border-radius: 12px;
}

.support-launcher span::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: -8px;
  width: 9px;
  height: 9px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-28deg);
}

.support-widget {
  position: fixed;
  right: 24px;
  bottom: 94px;
  z-index: 770;
  width: min(390px, calc(100vw - 28px));
  max-height: min(660px, calc(100vh - 124px));
  display: grid;
  grid-template-rows: auto auto minmax(180px, 1fr) auto auto;
  overflow: hidden;
  border: 1px solid #cfd9e8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 72px rgba(16, 24, 39, 0.22);
}

.support-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 95, 81, 0.98), rgba(18, 57, 72, 0.98) 52%, rgba(11, 18, 32, 0.98));
}

.support-header .eyebrow {
  margin: 0 0 4px;
  color: #70f0d4;
}

.support-header h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.support-header span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 700;
}

.support-header .icon-button {
  flex: 0 0 auto;
  color: #122033;
  background: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.support-ai-notice {
  margin: 0;
  padding: 10px 16px;
  border-bottom: 1px solid #e3e8ef;
  background: #f7f9fc;
  color: #657286;
  font-size: 12px;
  line-height: 1.45;
}

.support-messages {
  overflow: auto;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(245, 248, 252, 0.98), rgba(255, 255, 255, 0.98));
}

.support-message {
  width: fit-content;
  max-width: 92%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid #d6e0ec;
  border-radius: 8px;
  color: #172033;
  font-size: 13px;
  line-height: 1.45;
}

.support-message-bot {
  background: #fff;
}

.support-message-user {
  margin-left: auto;
  background: #edf4ff;
  border-color: #b9ccff;
}

.support-message p {
  margin: 0;
}

.support-escalation {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #dfe6f0;
}

.support-escalation a {
  color: #1645d8;
  font-weight: 800;
}

.support-escalation small {
  color: #66748a;
}

.support-suggestions {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e4ebf4;
}

.support-suggestions small {
  color: #627086;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.support-suggestions div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.support-suggestions button {
  min-height: 28px;
  border: 1px solid #cdd9ea;
  border-radius: 999px;
  background: #f7fbff;
  color: #1b3558;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.support-suggestions button:hover {
  border-color: #7da2ff;
  background: #edf4ff;
}

.support-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px 0;
  border-top: 1px solid #e6ecf4;
  background: #fff;
}

.support-quick-actions button {
  min-height: 30px;
  border: 1px solid #cdd9ea;
  border-radius: 999px;
  background: #f7fbff;
  color: #1b3558;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.support-quick-actions button:hover {
  border-color: #7da2ff;
  background: #edf4ff;
}

.support-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #dfe6f0;
  background: #fff;
}

.support-form input {
  min-width: 0;
  min-height: 42px;
  border: 1px solid #cbd6e4;
  border-radius: 7px;
  padding: 0 12px;
}

.support-form button {
  min-height: 42px;
}

.hero-metrics {
  align-content: stretch;
}

.account-chip {
  flex: 0 1 190px;
  align-self: center;
  max-height: 34px;
}

.account-chip .user-icon {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px;
  max-width: 22px;
  min-height: 22px;
  max-height: 22px;
}

.detail-card {
  width: min(1160px, calc(100vw - 40px));
  max-height: calc(100vh - 42px);
  padding: 26px;
}

.detail-card .modal-heading {
  align-items: start;
  gap: 18px;
}

.detail-card .modal-heading > div {
  min-width: 0;
}

.detail-card h2,
.detail-description,
.detail-list article,
.detail-grid .meta,
.detail-grid .price-row strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-card h2 {
  max-width: 100%;
  line-height: 1.12;
}

.detail-hero-image {
  aspect-ratio: 21 / 7;
  max-height: 340px;
  object-fit: cover;
}

.detail-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 26px;
}

.detail-description {
  margin: 0 0 18px;
  max-width: 72ch;
  color: #273244;
  line-height: 1.65;
}

.detail-list {
  gap: 10px;
}

.detail-list article {
  min-width: 0;
  background: rgba(255, 255, 255, 0.72);
}

.detail-grid aside .product-card {
  overflow: visible;
  min-height: 280px;
  padding: 24px 16px 22px;
}

.review-section {
  margin-top: 24px;
}

.review-section h3,
.report-section h3 {
  margin: 0;
}

.review-gate {
  color: var(--muted);
  font-weight: 700;
  background: #f7fbff !important;
}

.report-section {
  margin-top: 18px;
  border-top: 1px solid #edf1f6;
  padding-top: 18px;
}

.report-section > .meta {
  max-width: 68ch;
  margin-bottom: 10px;
}

.report-form {
  align-items: end;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfd;
}

.report-form button {
  justify-self: start;
}

.report-empty {
  color: var(--muted);
  font-weight: 700;
}

@media (min-width: 1201px) {
  .market-hero {
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.76fr) 260px;
  }

  .focus-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .discovery-lane {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .launch-strip {
    min-height: 52px;
  }

  .view-context {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 18px;
  }

  .view-context h1 {
    font-size: 30px;
  }

  .context-visual {
    display: none;
  }

  .focus-card,
  .focus-card-primary {
    color: var(--ink);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94));
  }
}

@media (max-width: 900px) {
  body[data-current-view="market"] .market-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body[data-current-view="market"] .hero-copy {
    min-height: 0;
    padding: 18px;
  }

  body[data-current-view="market"] .hero-copy h1 {
    font-size: 30px;
    line-height: 1.05;
  }

  body[data-current-view="market"] .hero-visual {
    display: none;
  }

  .detail-card {
    width: min(100%, calc(100vw - 20px));
    padding: 18px;
  }

  .detail-hero-image {
    aspect-ratio: 16 / 9;
    max-height: 280px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .detail-grid aside .product-card {
    position: static;
  }

  .detail-description {
    max-width: 100%;
  }

  .mfa-setup-grid {
    grid-template-columns: 1fr;
  }

  .security-actions {
    justify-content: flex-start;
  }
}

/* Marketplace top bar and rotating featured banner */
.app-header {
  grid-template-columns: minmax(210px, 270px) minmax(0, 1fr) max-content;
  grid-template-areas:
    "brand search account"
    "nav nav nav";
  gap: 10px 14px;
  align-items: center;
  padding: 10px 22px 12px;
  overflow: visible;
}

.brand {
  grid-area: brand;
}

.header-search {
  grid-area: search;
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.header-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(191, 204, 221, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  padding: 0 46px 0 16px;
  box-shadow: 0 10px 26px rgba(13, 27, 48, 0.08);
}

.header-search input:focus {
  outline: 3px solid rgba(40, 104, 255, 0.16);
  border-color: rgba(40, 104, 255, 0.62);
}

.header-search-icon {
  position: absolute;
  right: 15px;
  width: 17px;
  height: 17px;
  pointer-events: none;
}

.header-search-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #687483;
  border-radius: 50%;
}

.header-search-icon::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: #687483;
  transform: rotate(45deg);
}

.main-nav {
  grid-area: nav;
  justify-self: center;
}

.account-actions {
  grid-area: account;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
}

.account-actions .language-control,
.account-actions .notification-menu-wrap,
.account-actions .profile-menu-wrap,
.account-actions .account-chip,
.account-actions button {
  flex: 0 0 auto;
}

.account-actions .account-chip {
  max-width: 150px;
}

.account-actions .session-badge {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-actions button {
  min-width: 86px;
  padding-left: 14px;
  padding-right: 14px;
}

.account-actions .notification-button {
  min-width: 38px;
  padding: 0;
}

.account-actions .profile-menu-item {
  min-width: 0;
  padding-left: 10px;
  padding-right: 10px;
}

.featured-dots {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
}

.featured-dots button {
  min-height: 0;
  width: 30px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.featured-dots button.active {
  width: 44px;
  background: linear-gradient(90deg, var(--accent), var(--blue), var(--violet));
}

body[data-current-view="market"] .toolbar {
  grid-template-columns: minmax(160px, 1fr) minmax(150px, 0.9fr) minmax(150px, 0.9fr);
}

body[data-current-view="market"] .toolbar label:first-child {
  display: none;
}

body[data-current-view="market"] .market-hero {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.32fr);
  height: 208px;
  min-height: 208px;
  margin-bottom: 14px;
  background:
    linear-gradient(135deg, rgba(6, 89, 77, 0.98), rgba(16, 55, 76, 0.98) 56%, rgba(11, 18, 32, 0.98)),
    linear-gradient(90deg, rgba(0, 184, 148, 0.2), rgba(40, 104, 255, 0.12));
}

body[data-current-view="market"] .hero-copy {
  display: grid;
  align-content: center;
  min-height: 208px;
  padding: 20px 24px;
}

body[data-current-view="market"] .hero-copy .eyebrow {
  margin-bottom: 10px;
}

body[data-current-view="market"] .hero-copy h1 {
  max-width: 760px;
  font-size: clamp(28px, 2.45vw, 40px);
  line-height: 1.08;
  min-height: 2.16em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body[data-current-view="market"] .hero-copy p:not(.eyebrow):not(.system-notice) {
  max-width: 760px;
  min-height: 1.5em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

body[data-current-view="market"] .hero-visual {
  min-height: 208px;
}

body[data-current-view="market"] .hero-visual::before {
  inset: 24px 24px 24px 0;
}

body[data-current-view="market"] .hero-visual::after {
  right: 58px;
  height: 28px;
  box-shadow:
    -72px -46px 0 rgba(255, 255, 255, 0.16),
    24px 48px 0 rgba(255, 255, 255, 0.16);
}

/* Interaction and seller layout fixes */
.account-chip {
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 10px;
  background: transparent;
  cursor: pointer;
}

.account-chip:hover,
.account-chip:focus-visible,
.account-chip[aria-expanded="true"] {
  color: var(--brand-ink);
  background: rgba(238, 244, 255, 0.86);
  border-color: #c5d0df;
  outline: 0;
}

.product-thumb-button {
  display: block;
  width: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  color: inherit;
  text-decoration: none;
}

.product-thumb-button:hover,
.product-thumb-button:focus-visible {
  border: 0;
  outline: 3px solid rgba(74, 108, 255, 0.22);
  outline-offset: -3px;
}

.product-card > .product-thumb-button {
  margin: 0;
}

.product-title-button {
  display: inline;
  min-height: auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: left;
  text-decoration: none;
}

.product-title-button:hover,
.product-title-button:focus-visible {
  color: #1f4fd2;
  outline: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-view-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  text-decoration: none;
}

.seller-layout {
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  align-items: start;
}

.seller-sidebar {
  min-width: 0;
}

.seller-sidebar .panel-title {
  align-items: center;
  gap: 12px;
}

.seller-sidebar .panel-title h2 {
  min-width: 0;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.seller-sidebar .panel-title .primary-button {
  flex: 0 0 auto;
}

.seller-status {
  margin-bottom: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.seller-products .empty-state {
  padding: 28px 18px;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .seller-layout {
    grid-template-columns: 1fr;
  }

  .seller-sidebar {
    position: static;
  }
}

@media (max-width: 520px) {
  .seller-sidebar,
  .product-editor {
    padding: 12px;
  }

  .seller-sidebar .panel-title {
    flex-wrap: wrap;
  }

  .seller-sidebar .panel-title .primary-button {
    width: 100%;
  }

  .seller-products .empty-state {
    padding: 24px 14px;
  }
}

@media (max-width: 1280px) {
  .app-header {
    grid-template-columns: minmax(180px, 230px) minmax(0, 1fr) max-content;
    padding-left: 16px;
    padding-right: 16px;
  }

  .account-actions {
    gap: 8px;
  }

  .account-actions .account-chip {
    max-width: 124px;
  }

  .language-control select {
    width: 64px;
  }

  .account-actions button {
    min-width: 78px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .account-actions .notification-button {
    min-width: 38px;
    padding: 0;
  }

  .account-actions .profile-menu-item {
    min-width: 0;
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 1100px) {
  .app-header {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand account"
      "search search"
      "nav nav";
    padding: 10px 16px 12px;
  }

  .header-search input {
    min-height: 40px;
  }

  .main-nav {
    justify-self: stretch;
    overflow-x: auto;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .app-header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand account"
      "search search"
      "nav nav";
  }

  .header-search {
    width: 100%;
  }

  body[data-current-view="market"] .toolbar {
    grid-template-columns: 1fr;
  }

  body[data-current-view="market"] .market-hero {
    grid-template-columns: 1fr;
    height: 210px;
    min-height: 210px;
  }

  body[data-current-view="market"] .hero-copy {
    width: 100%;
    min-height: 210px;
    padding: 18px;
  }

  body[data-current-view="market"] .hero-copy h1 {
    max-width: 100%;
    font-size: 27px;
    line-height: 1.08;
    min-height: 3.24em;
    -webkit-line-clamp: 3;
  }

  body[data-current-view="market"] .hero-copy p:not(.eyebrow):not(.system-notice) {
    max-width: 100%;
  }

  .featured-dots {
    margin-top: 14px;
  }

  .site-footer {
    margin-bottom: 88px;
    padding: 12px 18px 24px;
    align-items: flex-start;
    flex-direction: column;
  }

  .support-launcher {
    right: 16px;
    bottom: 16px;
  }

  .support-widget {
    right: 12px;
    bottom: 86px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 112px);
  }
}

/* Stripe Connect marketplace upgrade */
.stripe-connect-banner,
.marketplace-flow {
  margin-bottom: 16px;
  border: 1px solid rgba(91, 124, 255, 0.22);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(13, 27, 48, 0.09);
}

.stripe-connect-banner {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1fr);
  gap: 18px;
  padding: 18px;
  color: #f8fbff;
  background:
    linear-gradient(135deg, rgba(99, 91, 255, 0.96), rgba(21, 88, 159, 0.96) 48%, rgba(5, 95, 81, 0.98)),
    #19305a;
}

.stripe-banner-copy {
  display: grid;
  align-content: center;
  min-width: 0;
}

.stripe-banner-copy .eyebrow,
.stripe-connect-banner .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.stripe-banner-copy h2 {
  max-width: 680px;
  margin-bottom: 10px;
  color: #fff;
  font-size: clamp(27px, 2.4vw, 38px);
  line-height: 1.06;
}

.stripe-banner-copy p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.55;
}

.stripe-banner-grid,
.marketplace-flow-grid {
  display: grid;
  gap: 12px;
}

.stripe-banner-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stripe-banner-grid article {
  min-height: 154px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.stripe-banner-grid span,
.marketplace-flow-grid span {
  display: inline-flex;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.stripe-banner-grid strong,
.marketplace-flow-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 17px;
  line-height: 1.15;
}

.stripe-banner-grid p,
.marketplace-flow-grid p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.45;
}

.marketplace-flow {
  padding: 18px;
}

.marketplace-flow .section-heading {
  margin-bottom: 14px;
  padding: 0;
}

.marketplace-flow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.marketplace-flow-grid article {
  min-height: 176px;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #f6f9fd);
}

.marketplace-flow-grid span {
  color: #275bc7;
}

.marketplace-flow-grid strong {
  color: var(--brand-ink);
}

.marketplace-flow-grid p {
  color: var(--muted);
}

.seller-stripe-note {
  border: 1px solid rgba(99, 91, 255, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #f5f7ff, #eefbf7);
}

.seller-stripe-note strong {
  display: block;
  margin-bottom: 5px;
  color: var(--brand-ink);
  font-size: 15px;
}

.seller-stripe-note p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

body[data-current-view="market"] .market-hero {
  height: 236px;
  min-height: 236px;
}

body[data-current-view="market"] .hero-copy {
  min-height: 236px;
}

body[data-current-view="market"] .hero-copy p:not(.eyebrow):not(.system-notice) {
  min-height: 3em;
  -webkit-line-clamp: 2;
}

body[data-current-view="market"] .launch-strip {
  order: 1;
}

body[data-current-view="market"] .market-hero {
  order: 2;
}

body[data-current-view="market"] .stripe-connect-banner {
  order: 3;
}

body[data-current-view="market"] .focus-grid {
  order: 4;
}

body[data-current-view="market"] .marketplace-flow {
  order: 5;
}

body[data-current-view="market"] .discovery-lane {
  order: 6;
}

body[data-current-view="market"] .toolbar {
  order: 7;
}

body[data-current-view="market"] #marketView {
  order: 8;
}

body[data-current-view="market"] .hero-actions {
  display: flex;
}

body[data-current-view="sell"] .stripe-connect-banner,
body[data-current-view="sell"] .marketplace-flow,
body[data-current-view="orders"] .stripe-connect-banner,
body[data-current-view="orders"] .marketplace-flow,
body[data-current-view="account"] .stripe-connect-banner,
body[data-current-view="account"] .marketplace-flow,
body[data-current-view="terms"] .stripe-connect-banner,
body[data-current-view="terms"] .marketplace-flow {
  display: none;
}

@media (max-width: 1180px) {
  .stripe-connect-banner {
    grid-template-columns: 1fr;
  }

  .stripe-banner-grid,
  .marketplace-flow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .stripe-banner-grid,
  .marketplace-flow-grid {
    grid-template-columns: 1fr;
  }

  .stripe-connect-banner,
  .marketplace-flow {
    padding: 14px;
  }

  .stripe-banner-grid article,
  .marketplace-flow-grid article {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  body[data-current-view="market"] .market-hero {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  body[data-current-view="market"] .hero-copy {
    min-height: 0;
    overflow: visible;
  }

  body[data-current-view="market"] .hero-copy::after {
    display: none;
  }

  body[data-current-view="market"] .hero-copy h1,
  body[data-current-view="market"] .hero-copy p:not(.eyebrow):not(.system-notice) {
    display: block;
    min-height: 0;
    overflow: visible;
    -webkit-line-clamp: unset;
  }

  body[data-current-view="market"] .hero-copy p:not(.eyebrow):not(.system-notice) {
    min-height: 0;
  }
}

/* Final marketplace landing trim: products immediately after Stripe story */
body[data-current-view="market"] .focus-grid,
body[data-current-view="market"] .marketplace-flow,
body[data-current-view="market"] .discovery-lane,
body[data-current-view="market"] .stripe-connect-banner {
  display: none;
}

body[data-current-view="market"] .launch-strip {
  order: 1;
}

body[data-current-view="market"] .market-hero {
  order: 2;
  height: auto;
  min-height: 264px;
  overflow: visible;
}

body[data-current-view="market"] .hero-copy {
  min-height: 264px;
  overflow: visible;
  padding-bottom: 28px;
}

body[data-current-view="market"] .hero-copy::before,
body[data-current-view="market"] .hero-copy::after {
  display: none;
}

body[data-current-view="market"] .hero-copy h1,
body[data-current-view="market"] .hero-copy p:not(.eyebrow):not(.system-notice) {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

body[data-current-view="market"] .hero-copy p:not(.eyebrow):not(.system-notice) {
  min-height: 0;
}

body[data-current-view="market"] .hero-actions {
  display: flex;
  margin-top: 18px;
}

body[data-current-view="market"] .hero-visual {
  min-height: 264px;
}

body[data-current-view="market"] .toolbar {
  order: 3;
}

body[data-current-view="market"] #marketView {
  order: 4;
}

body[data-current-view="market"] .hero-visual {
  display: grid;
  place-items: center;
  min-height: 264px;
}

body[data-current-view="market"] .hero-visual::before,
body[data-current-view="market"] .hero-visual::after,
body[data-current-view="market"] .hero-visual img,
body[data-current-view="market"] .hero-visual .visual-card {
  display: none;
}

.stripe-hero-card {
  display: grid;
  align-content: center;
  width: min(280px, calc(100% - 36px));
  min-height: 174px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 20px;
  background: #635bff;
  color: #fff;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.18);
}

.stripe-brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.stripe-mark {
  position: relative;
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 7px;
  background: #635bff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 10px 22px rgba(29, 23, 95, 0.28);
}

.stripe-mark::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 11px;
  width: 16px;
  height: 9px;
  border-radius: 2px;
  background: #fff;
  transform: skew(-12deg);
}

.stripe-wordmark {
  font-size: 42px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
}

.stripe-hero-card span {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.stripe-hero-card strong {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.15;
}

.stripe-hero-card small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.35;
}

.marketplace-review-note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid #c8d9ff;
  border-radius: 8px;
  background: #f4f8ff;
  color: #31527e;
  font-size: 0.84rem;
  line-height: 1.4;
}

@media (max-width: 720px) {
  body[data-current-view="market"] .market-hero,
  body[data-current-view="market"] .hero-copy {
    min-height: 0;
  }

  body[data-current-view="market"] .hero-visual {
    display: none;
  }
}

/* QbitMarketHub identity refresh */
body,
button,
input,
select,
textarea {
  font-family: var(--font-sans);
}

h1,
h2,
h3,
.brand,
.primary-button,
.nav-link,
.eyebrow,
.product-card strong,
.hero-metrics strong {
  font-family: var(--font-brand);
}

.app-header {
  background: rgba(247, 250, 253, 0.9);
}

.brand {
  min-width: 0;
}

.brand-mark {
  display: block;
  width: clamp(176px, 15vw, 236px);
  height: 50px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--blue) 52%, var(--violet));
  box-shadow: 0 12px 28px rgba(46, 136, 255, 0.24);
}

.primary-button:hover {
  background: linear-gradient(135deg, #12cfe8, #1f6ff0 52%, #7b43ef);
}

input:focus,
select:focus,
textarea:focus,
.header-search input:focus {
  border-color: rgba(46, 136, 255, 0.62);
  box-shadow: 0 0 0 4px rgba(46, 136, 255, 0.13);
}

.text-button,
.site-footer a,
.product-title-button:hover,
.product-title-button:focus-visible {
  color: #1f6ff0;
}

.nav-link.active {
  border-color: rgba(46, 136, 255, 0.42);
  background: linear-gradient(180deg, #fff, #ebf3ff);
  color: #1f55d8;
}

.eyebrow,
.support-header .eyebrow {
  color: #0a9ac6;
}

.launch-strip,
.support-header,
body[data-current-view="market"] .market-hero {
  background:
    linear-gradient(135deg, rgba(2, 4, 11, 0.98), rgba(6, 24, 72, 0.98) 50%, rgba(62, 30, 126, 0.98)),
    linear-gradient(90deg, rgba(33, 232, 255, 0.2), rgba(143, 85, 255, 0.16));
}

.launch-strip,
.launch-strip strong,
.launch-strip span:not(.operator-badge) {
  color: #fff;
}

.launch-strip #stripCopy {
  color: rgba(255, 255, 255, 0.74);
}

.featured-dots button.active,
#marketView,
.seller-products,
.orders-list,
.detail-card {
  border-image: linear-gradient(90deg, var(--accent), var(--blue), var(--violet)) 1;
}

.product-thumb-empty,
.support-launcher {
  background: linear-gradient(135deg, var(--brand-ink), var(--blue), var(--violet));
}

.signal-dot {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(33, 232, 255, 0.18), 0 0 22px rgba(33, 232, 255, 0.68);
}

.hero-copy {
  box-shadow: var(--brand-shadow);
}

main {
  width: min(1760px, calc(100vw - 40px));
}

body[data-current-view="market"] .market-hero {
  grid-template-columns: minmax(0, 1fr);
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(46, 136, 255, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 85% 18%, rgba(143, 85, 255, 0.28), transparent 32%),
    radial-gradient(circle at 12% 18%, rgba(33, 232, 255, 0.18), transparent 34%),
    linear-gradient(135deg, #02040b, #061848 54%, #3e1e7e);
  box-shadow: var(--brand-shadow);
}

body[data-current-view="market"] .hero-copy {
  max-width: 980px;
  background: transparent;
  color: #fff;
  box-shadow: none;
}

body[data-current-view="market"] .hero-copy h1,
body[data-current-view="market"] .hero-copy h2,
body[data-current-view="market"] .hero-copy h3 {
  color: #fff;
}

body[data-current-view="market"] .hero-copy p:not(.eyebrow):not(.system-notice) {
  color: rgba(255, 255, 255, 0.78);
}

body[data-current-view="market"] .hero-copy .ghost-button {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body[data-current-view="market"] .hero-visual {
  display: none;
}

.stripe-hero-card {
  background:
    linear-gradient(135deg, rgba(33, 232, 255, 0.22), rgba(46, 136, 255, 0.22) 46%, rgba(143, 85, 255, 0.28)),
    #02040b;
}

.stripe-mark {
  background: linear-gradient(135deg, var(--accent), var(--blue), var(--violet));
}

.stripe-wordmark {
  font-family: var(--font-brand);
}

@media (max-width: 1280px) {
  .brand-mark {
    width: clamp(172px, 22vw, 220px);
  }
}

@media (max-width: 720px) {
  .app-header {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "account"
      "search"
      "nav";
  }

  .brand {
    width: max-content;
    max-width: 100%;
    flex: none;
  }

  .brand-mark {
    width: min(212px, calc(100vw - 32px));
    height: 45px;
  }

  .account-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Store/WebView stability pass: keep the installed app compact and cache-resilient. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.app-header {
  grid-template-columns: minmax(210px, 260px) minmax(260px, 1fr) max-content !important;
  grid-template-areas:
    "brand search account"
    ". nav ." !important;
  gap: 8px 14px !important;
  align-items: center !important;
  min-height: 104px;
  padding: 10px 16px 12px !important;
}

.brand {
  grid-area: brand;
  max-width: 260px;
  min-width: 0;
  overflow: hidden;
}

.brand-mark {
  width: 220px !important;
  height: 50px !important;
  min-width: 172px;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.brand-mark img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.brand-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.header-search {
  grid-area: search;
  width: 100%;
  min-width: 0;
}

.main-nav {
  grid-area: nav;
  justify-self: center;
  max-width: 100%;
}

.account-actions {
  grid-area: account;
  min-width: 0;
}

main {
  width: min(1280px, calc(100vw - 24px)) !important;
  gap: 12px;
}

body[data-current-view="market"] .launch-strip {
  min-height: 42px;
  margin: 10px 0 0;
  padding: 8px 14px;
  overflow: hidden;
}

body[data-current-view="market"] .market-hero {
  grid-template-columns: 1fr !important;
  height: auto !important;
  min-height: 132px !important;
  margin: 0 !important;
  border-radius: 8px !important;
}

body[data-current-view="market"] .hero-copy {
  min-height: 132px !important;
  max-width: none !important;
  padding: 16px 24px !important;
}

body[data-current-view="market"] .hero-copy h1 {
  max-width: 760px !important;
  min-height: 0 !important;
  margin-bottom: 8px;
  font-size: clamp(24px, 2.1vw, 32px) !important;
  line-height: 1.08 !important;
  -webkit-line-clamp: 2;
}

body[data-current-view="market"] .hero-copy p:not(.eyebrow):not(.system-notice) {
  max-width: 820px !important;
  min-height: 0 !important;
  font-size: 15px !important;
  -webkit-line-clamp: 1;
}

body[data-current-view="market"] .hero-actions {
  margin-top: 12px !important;
}

body[data-current-view="market"] .hero-visual,
body[data-current-view="market"] .hero-metrics,
body[data-current-view="market"] .featured-dots,
body[data-current-view="market"] .stripe-connect-banner,
body[data-current-view="market"] .focus-grid,
body[data-current-view="market"] .marketplace-flow,
body[data-current-view="market"] .discovery-lane {
  display: none !important;
}

body[data-current-view="market"] .toolbar {
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 0.5fr) minmax(160px, 0.5fr) minmax(160px, 0.5fr) !important;
  margin: 0 !important;
}

body[data-current-view="market"] .toolbar label:first-child {
  display: grid !important;
}

body[data-current-view="market"] #marketView {
  margin: 0 !important;
  min-height: 360px;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
}

@media (max-width: 900px) {
  .app-header {
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "brand account"
      "search search"
      "nav nav" !important;
    min-height: 132px;
  }

  .brand-mark {
    width: min(212px, calc(100vw - 190px)) !important;
  }

  .main-nav {
    justify-self: stretch;
    justify-content: flex-start;
    overflow-x: auto;
  }

  body[data-current-view="market"] .toolbar {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 560px) {
  .app-header {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "brand"
      "account"
      "search"
      "nav" !important;
    min-height: 0;
  }

  .brand-mark {
    width: min(212px, calc(100vw - 32px)) !important;
  }

  .account-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  body[data-current-view="market"] .toolbar {
    grid-template-columns: 1fr !important;
  }

  body[data-current-view="market"] .hero-copy {
    padding: 16px !important;
  }
}

html.ms-store-shell body[data-current-view="market"] .launch-strip,
html.ms-store-shell body[data-current-view="market"] .market-hero,
html.ms-store-shell body[data-current-view="market"] .stripe-connect-banner,
html.ms-store-shell body[data-current-view="market"] .focus-grid,
html.ms-store-shell body[data-current-view="market"] .marketplace-flow,
html.ms-store-shell body[data-current-view="market"] .discovery-lane {
  display: none !important;
}

html.ms-store-shell .app-header {
  min-height: 104px !important;
}

html.ms-store-shell main {
  gap: 10px !important;
}

html.ms-store-shell body[data-current-view="market"] .toolbar {
  margin-top: 10px !important;
}

html.ms-store-shell body[data-current-view="market"] #marketView {
  min-height: 420px;
}

html.ms-store-shell body[data-current-view="market"] #productGrid {
  min-height: 260px;
}
