:root {
  color-scheme: light;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background: #f7f7f7;
  color: #20242a;
  --flaksam-red: #ff0a0a;
  --flaksam-orange: #f45a16;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

[hidden] {
  display: none !important;
}

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

button,
.vendorHero a,
.buttonLike {
  border: 0;
  border-radius: 6px;
  background: var(--flaksam-red);
  color: white;
  min-height: 40px;
  padding: 10px 14px;
  cursor: pointer;
  text-decoration: none;
}

button:hover,
.vendorHero a:hover,
.buttonLike:hover {
  background: #d90000;
}

.vendorHero .supportLink {
  background: transparent;
  color: white;
  text-decoration: underline;
}

.vendorHero .supportLink:hover {
  background: transparent;
}

button.secondary,
.buttonLike.secondary {
  background: #eef2f6;
  color: #20242a;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.vendorHeader {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(240px, 520px) auto;
  align-items: center;
  gap: 16px;
  min-height: 66px;
  padding: 8px clamp(16px, 3vw, 30px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.brand,
.vendorHeader a {
  color: #20242a;
  text-decoration: none;
}

.brand {
  color: var(--flaksam-orange);
  font-size: 34px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.logoBrand {
  display: inline-flex;
  align-items: center;
  width: clamp(160px, 16vw, 225px);
  height: 52px;
}

.logoBrand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.vendorSearch {
  display: flex;
  min-width: 0;
  gap: 0;
}

.vendorSearch input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--flaksam-red);
  border-right: 0;
  border-radius: 4px 0 0 4px;
  padding: 9px 12px;
}

.vendorSearch button {
  border-radius: 0 4px 4px 0;
}

nav,
.heroActions,
.formActions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

nav {
  justify-content: flex-end;
}

nav a,
nav button,
.vendorUserLabel {
  font-size: 14px;
  white-space: nowrap;
}

.vendorUserLabel {
  max-width: 180px;
  overflow: hidden;
  color: #20242a;
  font-weight: 700;
  text-overflow: ellipsis;
}

.dashboardNavLink {
  color: var(--flaksam-red);
  font-weight: 700;
}

.vendorSignedIn .vendorHeader {
  grid-template-columns: auto 1fr;
}

.vendorLoginRoute .vendorHeader {
  grid-template-columns: auto 1fr;
}

.vendorAuthHeader {
  grid-template-columns: auto 1fr;
}

.vendorSignedIn .vendorHeader nav {
  margin-left: auto;
}

.vendorLoginRoute .vendorHeader nav,
.vendorAuthHeader nav {
  margin-left: auto;
}

nav a.active {
  color: var(--flaksam-red);
  font-weight: 700;
}

.vendorHero {
  min-height: 430px;
  align-items: end;
  padding: 48px clamp(16px, 5vw, 64px);
  background:
    linear-gradient(90deg, rgba(15, 24, 31, 0.82), rgba(15, 24, 31, 0.3)),
    url("https://images.unsplash.com/photo-1556745757-8d76bdb6984b?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  color: white;
}

.vendorHero div {
  max-width: 700px;
}

.vendorHero p,
.sectionHeader p,
.panelHeader p {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.vendorHero h1 {
  margin: 0 0 24px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1;
}

.statsBand,
.section,
.vendorWorkspace {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto;
}

.vendorLoginPage {
  min-height: 420px;
  place-items: center;
}

.vendorLoginPanel {
  width: min(520px, 100%);
  display: grid;
  gap: 16px;
  padding: 24px;
  background: white;
  border: 1px solid #dde2e8;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.vendorLoginPanel input {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #cbd3dd;
  border-radius: 4px;
  padding: 10px 12px;
}

.vendorLoginPanel a {
  color: var(--flaksam-red);
  text-decoration: none;
}

.guestPage {
  display: none;
}

.guestPage.active {
  display: grid;
}

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

.statsBand article,
.stepsGrid article,
.signupShell,
.dashboardPanel,
.toolPanel,
.metrics article {
  background: white;
  border: 1px solid #dde2e8;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.statsBand article {
  padding: 18px;
  text-align: center;
}

.statsBand strong,
.metrics strong {
  display: block;
  font-size: 28px;
}

.statsBand span,
.metrics span,
label,
.muted,
dt {
  color: #68707b;
}

.sectionHeader,
.panelHeader {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

h2,
h3,
p {
  margin: 0;
}

h2 {
  font-size: 26px;
}

.stepsGrid,
.benefitsGrid,
.choiceGrid,
.metrics {
  display: grid;
  gap: 14px;
}

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

.stepsGrid article,
.benefitsGrid article {
  padding: 18px;
}

.stepsGrid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 17px;
  background: var(--flaksam-red);
  color: white;
  font-weight: 800;
  margin-bottom: 12px;
}

.expandSection {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
  align-items: start;
}

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

.signupShell,
.dashboardPanel,
.toolPanel {
  padding: 18px;
}

.signupShell {
  max-height: calc(100vh - 150px);
  overflow: auto;
}

.signupPage {
  max-height: none;
  min-height: calc(100vh - 210px);
}

.signupProgress {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.signupProgress button {
  justify-content: flex-start;
  background: #eef2f6;
  color: #20242a;
}

.signupProgress button.active {
  background: var(--flaksam-red);
  color: white;
}

.signupProgress span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  margin-right: 8px;
}

form,
.signupStep,
.toolPanel,
.dashboardPanel {
  display: grid;
  gap: 14px;
}

.formHint {
  margin: 0;
  color: #68707b;
  font-size: 13px;
  line-height: 1.45;
}

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

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

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

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd6df;
  border-radius: 6px;
  background: white;
  color: #20242a;
  padding: 9px 10px;
}

textarea {
  resize: vertical;
}

fieldset {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0;
  border: 1px solid #edf0f4;
  border-radius: 8px;
  padding: 12px;
}

legend {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 700;
}

.radioLine,
.termsLine {
  display: flex;
  align-items: center;
  gap: 8px;
}

.radioLine input,
.termsLine input {
  width: auto;
}

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

#authStatus,
#formStatus,
#productStatus,
#orderStatus,
#passwordStatus {
  color: var(--flaksam-red);
  font-size: 13px;
  font-weight: 700;
}

.vendorWorkspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-height: 460px;
  margin-top: 16px;
}

.vendorSidebar,
.vendorContent {
  display: grid;
  gap: 12px;
}

.vendorSidebar {
  position: sticky;
  top: 78px;
  background: white;
  border: 1px solid #dde2e8;
  border-radius: 8px;
  padding: 14px 8px;
  box-shadow: none;
}

.vendorSidebar button {
  justify-content: flex-start;
  border-radius: 6px;
  background: white;
  color: var(--flaksam-red);
  text-align: left;
  min-height: 40px;
  width: 100%;
  padding: 9px 10px;
}

.vendorSidebar button.active {
  background: var(--flaksam-red);
  color: white;
}

.vendorIdentity {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf0f4;
  text-align: center;
}

.avatar {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--flaksam-red);
  color: white;
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 8px;
}

.vendorIdentity span {
  color: #68707b;
  font-size: 13px;
}

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

.quickActions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quickActions button {
  min-height: 34px;
  border: 1px solid #dde2e8;
  background: #fff;
  color: #20242a;
  padding: 7px 10px;
}

.quickActions button.active {
  border-color: var(--flaksam-red);
  background: var(--flaksam-red);
  color: #fff;
}

.settlementSummary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.settlementSummary article {
  border: 1px solid #edf0f4;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.settlementSummary span {
  display: block;
  color: #68707b;
  font-size: 12px;
  margin-bottom: 6px;
}

.settlementSummary strong {
  font-size: 20px;
}

.metrics article {
  padding: 14px 16px;
  box-shadow: none;
}

.dashboardPanel {
  display: none;
  min-height: 0;
}

.dashboardPanel.active {
  display: grid;
  box-shadow: none;
}

.productLayout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.vendorWorkspace .dashboardPanel,
.vendorWorkspace .toolPanel {
  padding: 14px;
}

.vendorWorkspace .panelHeader {
  margin-bottom: 12px;
}

.vendorWorkspace .panelHeader h2 {
  font-size: 24px;
}

.tableWrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid #edf0f4;
  text-align: left;
  vertical-align: top;
}

th {
  color: #20242a;
  font-size: 12px;
  text-transform: uppercase;
}

td.empty {
  padding: 18px 12px;
  color: #68707b;
}

td.empty strong,
td.empty span {
  display: block;
}

td.empty strong {
  margin-bottom: 4px;
  color: #20242a;
}

td:last-child {
  white-space: nowrap;
}

button.small {
  min-height: 32px;
  padding: 7px 9px;
  background: #eef2f6;
  color: #20242a;
  font-size: 13px;
}

button.danger {
  color: #a72a2a;
}

.ratingBadge {
  color: #f59e0b;
  font-weight: 800;
  white-space: nowrap;
}

.statusPill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef2f6;
  color: #374151;
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
}

.statusPill.open {
  background: #fff7ed;
  color: #c2410c;
}

.statusPill.pending {
  background: #eff6ff;
  color: #1d4ed8;
}

.statusPill.resolved {
  background: #ecfdf5;
  color: #047857;
}

.statusPill.closed {
  background: #f3f4f6;
  color: #4b5563;
}

.profileList {
  display: grid;
  gap: 10px;
  margin: 0;
}

.storefrontPreview {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid #edf0f4;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.previewAvatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--flaksam-red);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}

.storefrontPreview p,
.storefrontPreview h3 {
  margin: 0;
}

.storefrontPreview p,
.storefrontPreview span {
  color: #68707b;
  font-size: 13px;
}

.storefrontPreview h3 {
  font-size: 20px;
}

.profileList div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  border-bottom: 1px solid #edf0f4;
  padding-bottom: 10px;
}

.profileEditForm {
  margin-top: 18px;
}

.disputeDetails {
  max-width: 540px;
}

.disputeDetails select {
  max-width: 180px;
}

dd {
  margin: 0;
}

.vendorFooter {
  margin-top: 20px;
  background: #dfeafa;
  color: #111827;
}

.vendorFooter section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr 1.2fr;
  gap: 34px;
  padding: 20px 0;
}

.vendorFooter article {
  display: grid;
  align-content: start;
  gap: 8px;
}

.vendorFooter h3 {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.vendorFooter a,
.vendorFooter p {
  color: #374151;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .vendorHeader,
  .sectionHeader,
  .panelHeader {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }

  .vendorHeader nav {
    justify-content: flex-start;
  }

  .statsBand,
  .stepsGrid,
  .benefitsGrid,
  .expandSection,
  .formGrid,
  .formGrid.compact,
  .choiceGrid,
  .vendorWorkspace,
  .metrics,
  .settlementSummary,
  .productLayout,
  .vendorFooter section {
    grid-template-columns: 1fr;
  }

  .storefrontPreview {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .vendorSidebar {
    position: static;
  }

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