:root {
  --bg: #f3efe7;
  --paper: rgba(255, 252, 246, 0.82);
  --ink: #10233b;
  --muted: #536172;
  --line: rgba(16, 35, 59, 0.12);
  --accent: #0b8f77;
  --accent-2: #ff8c42;
  --accent-3: #e0f2ea;
  --shadow: 0 24px 70px rgba(16, 35, 59, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 140, 66, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(11, 143, 119, 0.16), transparent 28%),
    linear-gradient(180deg, #fbf8f1 0%, #efe8dc 100%);
}

[hidden] {
  display: none !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 35, 59, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 35, 59, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 90%);
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 20px auto 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: var(--paper);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 14px;
  z-index: 10;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.home-link {
  color: inherit;
  text-decoration: none;
}

.brand strong,
h1, h2, h3 {
  font-family: "Space Grotesk", sans-serif;
}

.brand span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #0f5f66);
  color: #fff;
  font-weight: 800;
}

.carrot-mark {
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(135deg, #fff7ec, #ffd6a9 100%);
  box-shadow: 0 14px 28px rgba(255, 107, 44, 0.18);
}

.topnav {
  display: flex;
  gap: 24px;
}

.topbar-actions,
.auth-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-actions {
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.auth-links {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.role-badge {
  min-width: 92px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(39, 191, 116, 0.2);
  background: rgba(39, 191, 116, 0.12);
}

.role-badge strong {
  display: block;
  color: #52d884;
  font-size: 14px;
  line-height: 1.3;
  text-transform: uppercase;
}

.settings-link {
  gap: 8px;
}

.messages-link {
  gap: 8px;
}

.icon-only-link {
  min-width: 44px;
  width: 44px;
  padding: 0;
  gap: 0;
}

.favorites-menu {
  position: relative;
}

.favorites-menu-toggle {
  min-width: 44px;
  padding: 0 14px;
  font-size: 18px;
  line-height: 1;
}

.undo-button {
  min-width: 44px;
  padding: 0 14px;
  font-size: 18px;
  line-height: 1;
}

.trash-link {
  min-width: 44px;
  padding: 0 14px;
  gap: 6px;
}

.notifications-link {
  min-width: 44px;
  width: 44px;
  padding: 0;
  gap: 6px;
}

.trash-icon {
  font-size: 16px;
  line-height: 1;
}

.message-link-icon {
  font-size: 16px;
  line-height: 1;
}

.notifications-icon {
  font-size: 16px;
  line-height: 1;
}

.favorites-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 244, 228, 0.14);
  background: rgba(7, 14, 27, 0.96);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.32);
  z-index: 20;
}

.favorites-dropdown-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff4e4;
  font-weight: 700;
}

.favorites-dropdown-link:hover,
.favorites-dropdown-link:focus-visible {
  background: rgba(255, 244, 228, 0.08);
}

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

.favorites-hub-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 40, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  box-shadow: var(--shadow);
}

.favorites-hub-card strong {
  font-size: 22px;
  line-height: 1.2;
}

.favorites-hub-card:hover,
.favorites-hub-card:focus-visible {
  transform: translateY(-2px);
}

.messages-link.has-unread {
  border-color: rgba(255, 107, 44, 0.28);
  box-shadow: 0 0 0 1px rgba(255, 107, 44, 0.12), 0 16px 30px rgba(255, 107, 44, 0.16);
}

.trash-link.has-unread {
  border-color: rgba(255, 107, 44, 0.28);
  box-shadow: 0 0 0 1px rgba(255, 107, 44, 0.12), 0 16px 30px rgba(255, 107, 44, 0.16);
}

.notifications-link.has-unread {
  border-color: rgba(255, 107, 44, 0.28);
  box-shadow: 0 0 0 1px rgba(255, 107, 44, 0.12), 0 16px 30px rgba(255, 107, 44, 0.16);
}

.notifications-popover {
  position: absolute;
  z-index: 90;
  width: min(320px, calc(100vw - 24px));
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 40, 0.08);
  background: rgba(255, 252, 246, 0.98);
  box-shadow: 0 24px 48px rgba(16, 35, 59, 0.2);
  overflow: hidden;
}

.notifications-popover-head {
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(15, 23, 40, 0.08);
}

.notifications-popover-list {
  display: grid;
  max-height: 420px;
  overflow: auto;
}

.notifications-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 40, 0.06);
  background: transparent;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
}

.notifications-item:last-child {
  border-bottom: 0;
}

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

.notifications-item strong {
  color: var(--ink);
  margin-bottom: 4px;
}

.notifications-item span,
.notifications-item small {
  color: var(--muted);
}

.notifications-item.unread {
  background: rgba(255, 140, 66, 0.08);
}

.notifications-item.unread strong {
  color: #9d4b1a;
}

.notifications-item.read {
  opacity: 0.6;
}

.notifications-empty {
  padding: 18px 16px;
  color: var(--muted);
  text-align: center;
}

.messages-badge {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff6b2c;
  color: #fff7ec;
  font-size: 12px;
  font-weight: 800;
}

.settings-icon {
  font-size: 15px;
  line-height: 1;
}

.session-badge {
  min-width: 220px;
  max-width: 320px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 244, 228, 0.12);
  background: rgba(255, 244, 228, 0.06);
}

.session-badge strong,
.session-badge span {
  display: block;
}

.session-badge strong {
  color: #fff4e4;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-badge span {
  color: rgba(248, 240, 223, 0.68);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topnav a,
.lang {
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
}

.lang-switch {
  display: flex;
  gap: 8px;
}

.lang {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 10px 12px;
}

.lang.active {
  background: var(--ink);
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 56px 0 34px;
}

.hero-copy,
.hero-panel,
.feature-card,
.supplier-card,
.cta,
.flow-step {
  animation: rise 0.8s ease both;
}

.hero-copy {
  padding: 28px 8px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-text,
.section-heading p:last-child,
.feature-card p,
.supplier-card p,
.supplier-card li,
.flow-step p,
.cta p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-text {
  max-width: 640px;
  margin: 22px 0 28px;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 700;
}

.button.primary {
  background: var(--ink);
  color: #fff;
}

.button.tertiary {
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink);
  border-color: var(--line);
}

.button.small {
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  border-color: var(--line);
}

.button.wide {
  width: 100%;
  margin-top: 10px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
}

.metrics li {
  padding: 18px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.metrics strong {
  display: block;
  font-size: 22px;
  font-family: "Space Grotesk", sans-serif;
}

.metrics span {
  color: var(--muted);
  font-size: 13px;
}

.hero-panel {
  position: relative;
}

.search-card {
  padding: 26px;
  background: linear-gradient(180deg, rgba(10, 22, 39, 0.96), rgba(12, 43, 61, 0.92));
  color: #fff;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(11, 30, 45, 0.35);
}

.search-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.pill {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 12px;
  font-size: 12px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #89f7bf;
  box-shadow: 0 0 0 6px rgba(137, 247, 191, 0.15);
}

.search-card h2 {
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1.1;
}

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

.search-grid label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.search-grid input {
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 16px;
  padding: 14px 16px;
}

section {
  margin-top: 34px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

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

.feature-card,
.supplier-card,
.cta,
.flow-step {
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.feature-card span,
.flow-step strong {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--accent);
  font-weight: 800;
  font-family: "Space Grotesk", sans-serif;
}

.feature-card h3,
.supplier-card h3,
.flow-step h3,
.cta h2 {
  margin: 0 0 10px;
}

.accent-a {
  background: linear-gradient(180deg, rgba(224, 242, 234, 0.95), rgba(255, 255, 255, 0.8));
}

.accent-b {
  background: linear-gradient(180deg, rgba(255, 235, 223, 0.95), rgba(255, 255, 255, 0.8));
}

.accent-c {
  background: linear-gradient(180deg, rgba(227, 236, 247, 0.95), rgba(255, 255, 255, 0.8));
}

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

.supplier-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.country,
.verified {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.country {
  background: rgba(16, 35, 59, 0.08);
}

.verified {
  background: rgba(11, 143, 119, 0.12);
  color: #0b715e;
}

.supplier-card ul {
  padding-left: 18px;
  margin: 14px 0 0;
}

.cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, rgba(16, 35, 59, 0.96), rgba(11, 143, 119, 0.92));
  color: #fff;
}

.cta p,
.cta .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.inline-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.home-link {
  text-decoration: none;
  color: inherit;
}

.active-link {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.auth-shell {
  min-height: calc(100vh - 40px);
}

.auth-layout {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 20px;
  align-items: stretch;
  padding: 34px 0 0;
}

.auth-panel {
  padding: 28px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
}

.auth-lead {
  background:
    radial-gradient(circle at top left, rgba(255, 140, 66, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 249, 242, 0.85));
}

.accent-surface {
  background:
    radial-gradient(circle at top right, rgba(11, 143, 119, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(244, 251, 248, 0.9), rgba(255, 255, 255, 0.76));
}

.auth-text {
  max-width: 560px;
}

.auth-benefits,
.role-showcase {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.mini-card,
.role-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
}

.mini-card strong,
.role-card strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 8px;
}

.role-card span {
  display: inline-flex;
  margin-bottom: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 800;
}

.auth-form-wrap {
  background: linear-gradient(180deg, rgba(10, 22, 39, 0.96), rgba(12, 43, 61, 0.92));
  color: #fff;
}

.form-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.inline-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dark-pill {
  background: rgba(255, 255, 255, 0.12);
}

.muted-link {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 14px;
}

.auth-form-wrap h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 44px);
}

.form-intro {
  margin: 10px 0 24px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.auth-form input {
  width: 100%;
  min-height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0 16px;
  font: inherit;
}

.auth-form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.inline-row,
.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.check-row {
  justify-content: flex-start;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 0;
}

.submit-button {
  min-height: 54px;
  font-size: 15px;
}

.form-feedback {
  min-height: 22px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.form-feedback.error {
  color: #ffb6b6;
}

.form-feedback.success {
  color: #9af0bf;
}

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 22px 0 16px;
  color: rgba(255, 255, 255, 0.52);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

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

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

.social-button {
  width: 100%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

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

.role-option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.role-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-option.selected {
  background: rgba(11, 143, 119, 0.18);
  border-color: rgba(137, 247, 191, 0.28);
}

.verification-layout {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 150px);
  padding-top: 34px;
}

.verification-card {
  width: min(860px, 100%);
  padding: 34px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(11, 143, 119, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 251, 248, 0.9));
  box-shadow: var(--shadow);
}

.verification-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--accent), #0f5f66);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 22px;
}

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

.verification-links {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.muted-dark-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.dashboard-shell {
  width: min(1380px, calc(100% - 24px));
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 20px;
  padding-top: 26px;
}

.dashboard-sidebar {
  padding: 24px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(255, 140, 66, 0.15), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 249, 242, 0.9));
  box-shadow: var(--shadow);
}

.seller-sidebar {
  background:
    radial-gradient(circle at top right, rgba(11, 143, 119, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(244, 251, 248, 0.9), rgba(255, 255, 255, 0.82));
}

.side-nav {
  display: grid;
  gap: 10px;
  margin: 22px 0 28px;
}

.side-link {
  padding: 14px 16px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--line);
  font-weight: 700;
}

.active-side {
  background: var(--ink);
  color: #fff;
}

.sidebar-note {
  padding: 18px;
  border-radius: 22px;
  background: rgba(16, 35, 59, 0.94);
  color: #fff;
}

.sidebar-note strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Space Grotesk", sans-serif;
}

.sidebar-note p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.6;
  margin: 0 0 16px;
}

.dashboard-main {
  display: grid;
  gap: 18px;
}

.dashboard-hero,
.panel-card,
.stat-card {
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.dashboard-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  align-items: flex-start;
}

.dashboard-hero-compact {
  align-items: center;
  padding: 18px 22px;
}

.dashboard-hero-copy {
  min-width: 0;
}

.dashboard-summary {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
}

.buyer-hero {
  background:
    radial-gradient(circle at top right, rgba(255, 140, 66, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 249, 242, 0.92));
}

.seller-hero {
  background:
    radial-gradient(circle at top right, rgba(11, 143, 119, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(244, 251, 248, 0.9), rgba(255, 255, 255, 0.88));
}

.hero-chip-grid {
  display: grid;
  gap: 10px;
}

.dash-chip {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  font-weight: 700;
}

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

.stat-card,
.panel-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.74);
}

.stat-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 14px;
}

.stat-card strong {
  display: block;
  font-size: 38px;
  line-height: 1;
  margin-bottom: 10px;
  font-family: "Space Grotesk", sans-serif;
}

.stat-card p {
  margin: 0;
  color: var(--muted);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.panel-head h3 {
  margin: 0;
}

.list-stack {
  display: grid;
  gap: 12px;
}

.list-row,
.supplier-mini,
.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
}

.list-row strong,
.supplier-mini strong {
  display: block;
  margin-bottom: 4px;
}

.list-row p,
.supplier-mini p,
.metric-row span {
  margin: 0;
  color: var(--muted);
}

.status-badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(11, 143, 119, 0.14);
  color: #0b715e;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.muted-status {
  background: rgba(16, 35, 59, 0.08);
  color: var(--ink);
}

.metric-row strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
}

.full-width-button {
  width: 100%;
}

.directory-shell,
.product-shell {
  width: min(1320px, calc(100% - 24px));
}

.directory-layout,
.product-layout {
  display: grid;
  gap: 20px;
  padding-top: 26px;
}

.directory-hero,
.product-stage {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 18px;
  align-items: start;
}

.directory-hero,
.filter-panel,
.results-panel,
.product-gallery,
.product-summary,
.spec-card,
.directory-card {
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.directory-hero {
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 140, 66, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 249, 242, 0.9));
}

.directory-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
}

.filter-panel,
.results-panel,
.product-gallery,
.product-summary {
  padding: 24px;
  background: rgba(255, 255, 255, 0.76);
}

.filter-group {
  display: grid;
  gap: 14px;
}

.filter-group label,
.body-copy {
  color: var(--muted);
  line-height: 1.7;
}

.filter-group input {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  padding: 0 14px;
  font: inherit;
}

.check-stack {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.directory-cards {
  display: grid;
  gap: 16px;
}

.directory-card {
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 252, 0.88));
}

.meta-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.meta-pill {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(16, 35, 59, 0.08);
  font-size: 12px;
  font-weight: 700;
}

.card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.product-gallery {
  background:
    radial-gradient(circle at top left, rgba(255, 140, 66, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 249, 242, 0.9));
}

.product-main-visual {
  min-height: 340px;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(16, 35, 59, 0.96), rgba(12, 43, 61, 0.92));
  color: #fff;
}

.product-main-visual p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 360px;
}

.thumb-grid,
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.thumb-card,
.spec-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
  font-weight: 700;
}

.product-summary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 251, 248, 0.84));
}

.spec-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.spec-card strong {
  font-family: "Space Grotesk", sans-serif;
}

.dark-textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 14px 16px;
  font: inherit;
  resize: vertical;
}

.dark-textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.admin-sidebar {
  background:
    radial-gradient(circle at top right, rgba(227, 236, 247, 0.8), transparent 30%),
    linear-gradient(180deg, rgba(253, 254, 255, 0.9), rgba(245, 248, 252, 0.88));
}

.admin-hero {
  background:
    radial-gradient(circle at top right, rgba(227, 236, 247, 0.86), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(245, 248, 252, 0.9));
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .topbar,
  .hero,
  .auth-layout,
  .dashboard-layout,
  .dashboard-stats,
  .dashboard-grid,
  .messages-shell,
  .directory-grid,
  .directory-hero,
  .product-stage,
  .entry-grid,
  .card-grid,
  .supplier-grid,
  .flow-line,
  .cta {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .topbar {
    position: static;
  }

  .topnav {
    flex-wrap: wrap;
  }

  .search-grid,
  .metrics,
  .field-grid,
  .radio-grid,
  .social-row,
  .action-grid,
  .verification-steps,
  .thumb-grid,
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero,
  .list-row,
  .supplier-mini,
  .metric-row,
  .messages-thread-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 18px, 1240px);
  }

  .topbar {
    padding: 16px;
  }

  .topbar-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .auth-links,
  .lang-switch,
  .role-badge,
  .session-badge {
    width: 100%;
  }

  .auth-links .button,
  .lang-switch .lang {
    flex: 1;
    justify-content: center;
  }

  .topbar-actions {
    gap: 10px;
  }

  .topbar-actions > .lang-switch {
    width: auto;
    align-self: flex-end;
  }

  .topbar-actions > .lang-switch .lang {
    flex: 0 0 auto;
    min-width: 44px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .topbar-actions > .auth-links {
    gap: 8px;
  }

  .topbar-actions > .auth-links [data-auth-logout] {
    flex: 0 0 auto;
    min-width: 74px;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.2;
  }

  .favorites-hub-grid {
    grid-template-columns: 1fr;
  }

  .messages-upload-row {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 42px;
  }

  .search-card h2 {
    font-size: 24px;
  }

  .form-badge-row,
  .inline-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .inline-tools {
    width: 100%;
  }
}

/* Visual refresh */
:root {
  --bg: #09111f;
  --paper: rgba(248, 239, 223, 0.92);
  --paper-strong: #f3ead9;
  --ink: #0f1728;
  --muted: #5b6579;
  --line: rgba(15, 23, 40, 0.12);
  --accent: #ff6b2c;
  --accent-2: #1dbf9a;
  --accent-3: #ffe0ba;
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.24);
  --dark-surface: rgba(9, 17, 31, 0.88);
}

body {
  color: #f8f0df;
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 107, 44, 0.22), transparent 24%),
    radial-gradient(circle at 82% 14%, rgba(29, 191, 154, 0.14), transparent 20%),
    radial-gradient(circle at 50% 120%, rgba(255, 224, 186, 0.12), transparent 34%),
    linear-gradient(180deg, #08101d 0%, #0d1830 48%, #08111f 100%);
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.8;
}

body::after {
  content: "";
  position: fixed;
  inset: auto -10% -18% 40%;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 107, 44, 0.18), transparent 62%);
  filter: blur(48px);
}

.page-shell {
  width: min(1360px, calc(100% - 34px));
  margin: 24px auto 60px;
}

.topbar {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 14, 27, 0.74);
  backdrop-filter: blur(22px);
  border-radius: 30px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.brand {
  gap: 16px;
}

.brand strong {
  color: #fff4e4;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.brand span {
  color: rgba(248, 240, 223, 0.58);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  transform: rotate(-8deg);
  background: linear-gradient(135deg, #ff7d41, #ff4d2a 55%, #eab676 100%);
  box-shadow: 0 14px 28px rgba(255, 107, 44, 0.28);
}

.topnav {
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.topnav a,
.lang {
  color: rgba(248, 240, 223, 0.82);
}

.topnav a {
  padding: 10px 14px;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff4e4;
  transform: translateY(-1px);
}

.lang-switch {
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.lang {
  border: 0;
  min-width: 50px;
  font-weight: 700;
  cursor: pointer;
}

.lang.active {
  background: #fff4e4;
  color: var(--ink);
}

.button {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button[disabled] {
  opacity: 0.46;
  cursor: not-allowed;
  transform: none;
}

.button.primary {
  background: linear-gradient(135deg, #ff7b40, #ff5d2f 60%, #ffb173 100%);
  color: #fff;
  box-shadow: 0 18px 30px rgba(255, 107, 44, 0.26);
}

.button.secondary,
.button.tertiary {
  background: rgba(255, 244, 228, 0.08);
  color: #fff4e4;
  border-color: rgba(255, 244, 228, 0.14);
}

.button.small {
  min-height: 44px;
  border-radius: 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 44px;
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 42px;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 36%),
    linear-gradient(180deg, rgba(7, 14, 27, 0.84), rgba(10, 18, 35, 0.94));
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.28);
}

.hero::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -30px;
  width: 260px;
  height: 260px;
  border-radius: 38px;
  background: linear-gradient(135deg, rgba(255, 107, 44, 0.24), rgba(255, 107, 44, 0));
  transform: rotate(12deg);
}

.hero::after {
  content: "";
  position: absolute;
  left: 44px;
  bottom: 34px;
  width: 120px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff6b2c, transparent);
}

.hero-copy {
  padding: 0;
}

.eyebrow {
  color: #ffb173;
  letter-spacing: 0.14em;
}

h1 {
  color: #fff4e4;
  font-size: clamp(46px, 6.4vw, 92px);
  line-height: 0.92;
}

.hero-text,
.section-heading p:last-child,
.feature-card p,
.supplier-card p,
.supplier-card li,
.flow-step p,
.cta p,
.body-copy {
  color: rgba(248, 240, 223, 0.72);
}

.hero-text {
  font-size: 19px;
  max-width: 620px;
}

.metrics li,
.feature-card,
.supplier-card,
.flow-step,
.panel-card,
.stat-card,
.directory-card,
.filter-panel,
.results-panel,
.product-gallery,
.product-summary,
.spec-card,
.auth-panel,
.verification-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.metrics li {
  border-radius: 24px;
  background: rgba(255, 244, 228, 0.12);
  backdrop-filter: blur(16px);
}

.metrics strong {
  color: #fff4e4;
  font-size: 28px;
}

.metrics span {
  color: rgba(248, 240, 223, 0.7);
}

.search-card {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  background: linear-gradient(180deg, #f7edde 0%, #efe2cc 100%);
  color: var(--ink);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
}

.search-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(15, 23, 40, 0.12);
  border-radius: 24px;
  pointer-events: none;
}

.pill {
  background: rgba(15, 23, 40, 0.08);
  color: var(--ink);
  font-weight: 800;
}

.search-card h2 {
  color: var(--ink);
  font-size: 34px;
}

.search-grid label {
  color: var(--muted);
  font-weight: 700;
}

.search-grid input {
  border: 1px solid rgba(15, 23, 40, 0.12);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
}

.network,
.flows,
.suppliers {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 34px;
  background: rgba(8, 16, 29, 0.56);
  backdrop-filter: blur(18px);
}

.section-heading h2 {
  color: #fff4e4;
  font-size: clamp(34px, 4.6vw, 56px);
}

.feature-card,
.supplier-card,
.flow-step {
  border-radius: 28px;
}

.auth-entry-heading {
  margin-bottom: 24px;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.entry-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #f5e8d3 0%, #eadac1 100%);
  box-shadow: var(--shadow);
}

.entry-card::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -22px;
  width: 140px;
  height: 140px;
  border-radius: 28px;
  transform: rotate(18deg);
  background: linear-gradient(135deg, rgba(255, 107, 44, 0.22), rgba(255, 107, 44, 0));
}

.entry-seller::after {
  background: linear-gradient(135deg, rgba(29, 191, 154, 0.2), rgba(29, 191, 154, 0));
}

.entry-card h3,
.entry-card p:not(.eyebrow) {
  position: relative;
  z-index: 1;
}

.entry-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 32px;
}

.entry-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 22px;
}

.feature-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-card span,
.flow-step strong {
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(15, 23, 40, 0.08);
  color: var(--ink);
}

.feature-card h3,
.supplier-card h3,
.flow-step h3,
.cta h2,
.panel-head h3,
.directory-card h3,
.auth-form-wrap h2,
.product-main-visual h2 {
  color: var(--ink);
}

.accent-a {
  background: linear-gradient(180deg, #ffe3cc, #f6ebdc);
}

.accent-b {
  background: linear-gradient(180deg, #dff5ec, #f2eadb);
}

.accent-c {
  background: linear-gradient(180deg, #f7d6ca, #f3ead9);
}

.inline-link,
.muted-dark-link {
  color: var(--ink);
  font-weight: 800;
}

.country,
.verified,
.meta-pill,
.dash-chip,
.status-badge {
  border: 1px solid rgba(15, 23, 40, 0.08);
  background: rgba(15, 23, 40, 0.06);
  color: var(--ink);
}

.verified,
.status-badge {
  background: rgba(29, 191, 154, 0.12);
  color: #0f715d;
}

.cta {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 36px;
  background:
    radial-gradient(circle at right top, rgba(255, 107, 44, 0.22), transparent 25%),
    linear-gradient(135deg, rgba(8, 16, 29, 0.9), rgba(14, 28, 50, 0.92));
}

.cta h2 {
  color: #fff4e4;
}

.cta p,
.cta .eyebrow {
  color: rgba(248, 240, 223, 0.76);
}

.auth-panel,
.verification-card,
.filter-panel,
.results-panel,
.product-gallery,
.product-summary,
.panel-card,
.stat-card,
.dashboard-sidebar,
.dashboard-hero {
  border-radius: 32px;
}

.auth-layout,
.dashboard-layout,
.directory-grid,
.product-stage {
  gap: 22px;
}

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

.auth-lead,
.dashboard-sidebar,
.directory-hero,
.product-gallery,
.buyer-hero,
.seller-hero,
.admin-hero {
  background: linear-gradient(180deg, #f6ead8 0%, #ebdcc4 100%);
}

.auth-lead {
  padding: 20px 22px;
  min-height: auto;
}

.auth-lead .eyebrow {
  margin-bottom: 6px;
}

.auth-compact-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-lead h1,
.directory-hero h1,
.dashboard-hero h1,
.product-summary h1,
.verification-card h1,
.dashboard-sidebar h2,
.directory-hero .dash-chip,
.dashboard-hero .dash-chip {
  color: var(--ink);
}

.auth-lead .hero-text,
.directory-hero .hero-text,
.dashboard-hero .hero-text,
.product-summary .hero-text,
.verification-card .hero-text,
.feature-card p,
.supplier-card p,
.supplier-card li,
.flow-step p,
.panel-card p,
.panel-card span,
.stat-card p,
.stat-card span,
.filter-group label,
.body-copy,
.mini-card p,
.role-card strong,
.role-card span,
.verification-card .mini-card p,
.verification-card .mini-card strong {
  color: var(--muted);
}

.feature-card h3,
.supplier-card h3,
.flow-step h3,
.panel-card h3,
.stat-card strong,
.directory-card h3,
.product-summary h1,
.verification-card h1,
.dashboard-sidebar h2 {
  color: var(--ink);
}

.auth-form-wrap {
  background: linear-gradient(180deg, #121c2d 0%, #15243f 100%);
  color: #fff4e4;
}

.auth-form-wrap h2,
.auth-form-wrap .muted-link,
.auth-form-wrap .form-intro,
.auth-form label {
  color: #fff4e4;
}

.auth-form input,
.dark-textarea {
  border: 1px solid rgba(255, 244, 228, 0.18);
  background: rgba(255, 244, 228, 0.08);
  color: #fff;
}

.sidebar-note {
  background: linear-gradient(135deg, #ff6b2c, #ff8f50);
  color: #fff;
}

.sidebar-note p {
  color: rgba(255, 255, 255, 0.82);
}

.side-link {
  background: rgba(255, 255, 255, 0.62);
}

.active-side {
  background: linear-gradient(135deg, #101a2d, #182946);
}

.stat-card strong {
  color: var(--ink);
}

.directory-hero,
.dashboard-hero,
.product-summary {
  position: relative;
  overflow: hidden;
}

.directory-hero::after,
.dashboard-hero::after,
.product-summary::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 180px;
  height: 180px;
  border-radius: 36px;
  transform: rotate(18deg);
  background: linear-gradient(135deg, rgba(255, 107, 44, 0.18), rgba(255, 107, 44, 0));
}

.product-main-visual {
  background:
    radial-gradient(circle at top right, rgba(255, 107, 44, 0.25), transparent 30%),
    linear-gradient(135deg, #121c2d, #182946 55%, #0c1424);
}

.product-main-visual h2 {
  color: #fff4e4;
}

.thumb-card,
.spec-card {
  background: #f9f0e3;
}

.filter-group input {
  background: #fff8ef;
}

.admin-sidebar,
.admin-hero {
  background: linear-gradient(180deg, #e7edf8 0%, #dbe4f0 100%);
}

.form-feedback.error {
  color: #ff9b9b;
}

.form-feedback.success {
  color: #15734f;
}

@media (max-width: 980px) {
  .hero,
  .network,
  .flows,
  .suppliers,
  .cta {
    padding: 24px;
  }

  .auth-layout {
    grid-template-columns: 1fr;
  }

  .topnav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }
}

@media (max-width: 720px) {
  body::after {
    display: none;
  }

  .hero {
    padding: 24px;
    border-radius: 30px;
  }

  h1 {
    font-size: 40px;
  }

  .metrics li,
  .feature-card,
  .supplier-card,
  .flow-step,
  .panel-card,
  .stat-card {
    border-radius: 24px;
  }
}

.home-page .topbar {
  width: min(1040px, 100%);
  margin-inline: auto;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.home-page .topbar-actions {
  flex: 0 1 auto;
  justify-content: center;
  max-width: 780px;
}

.home-page .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  transform: none;
}

.home-page .hero {
  grid-template-columns: 1fr;
  max-width: 980px;
  margin-inline: auto;
  padding: 32px 32px 40px;
}

.home-page .hero::before,
.home-page .hero::after {
  display: none;
}

.home-page .hero-copy {
  max-width: 860px;
}

.harbor-scene {
  position: relative;
  height: 330px;
  margin: 28px 0 10px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 244, 228, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 182, 124, 0.18) 0%, rgba(255, 182, 124, 0) 20%),
    linear-gradient(180deg, #16233c 0%, #22385b 44%, #1a2d4b 65%, #10213a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 28px 50px rgba(0, 0, 0, 0.24);
}

.scene-sky {
  position: absolute;
  inset: 0 0 42% 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 193, 134, 0.42), transparent 18%),
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.08), transparent 12%),
    linear-gradient(180deg, rgba(255, 170, 110, 0.22), rgba(255, 170, 110, 0));
}

.scene-sun {
  position: absolute;
  top: 30px;
  right: 96px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd7a1 0%, #ffb364 58%, rgba(255, 179, 100, 0.12) 100%);
  box-shadow: 0 0 60px rgba(255, 179, 100, 0.32);
}

.crane {
  position: absolute;
  bottom: 104px;
  width: 16px;
  height: 150px;
  background: linear-gradient(180deg, #2a3748, #18222f);
}

.crane::before {
  content: "";
  position: absolute;
  left: -8px;
  bottom: 0;
  width: 32px;
  height: 10px;
  border-radius: 4px;
  background: #243446;
}

.crane-left {
  left: 86px;
}

.crane-right {
  right: 130px;
  height: 168px;
}

.crane-top {
  position: absolute;
  top: 22px;
  left: 4px;
  width: 142px;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #31465e, #1d2a39);
}

.crane-right .crane-top {
  width: 124px;
  left: -108px;
}

.crane-cable {
  position: absolute;
  top: 34px;
  left: 112px;
  width: 2px;
  height: 76px;
  background: rgba(232, 238, 245, 0.58);
}

.crane-right .crane-cable {
  left: -26px;
  height: 64px;
}

.crane-load {
  position: absolute;
  top: 104px;
  left: 92px;
  width: 42px;
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(135deg, #ff7b40, #d95b2a);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.crane-right .crane-load {
  left: -44px;
  top: 92px;
  background: linear-gradient(135deg, #1dbf9a, #138d73);
}

.dock-stacks {
  position: absolute;
  left: 56px;
  bottom: 92px;
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.stack {
  width: 54px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #f4ad69, #df7c3d);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.stack.a {
  height: 48px;
}

.stack.b {
  height: 76px;
  background: linear-gradient(180deg, #1dbf9a, #108a70);
}

.stack.c {
  height: 62px;
}

.stack.d {
  height: 88px;
  background: linear-gradient(180deg, #d8e0ec, #93a4bd);
}

.ship {
  position: absolute;
  right: 84px;
  bottom: 62px;
  width: 360px;
  height: 134px;
}

.ship-containers {
  position: absolute;
  left: 44px;
  bottom: 42px;
  display: flex;
  gap: 8px;
}

.ship-containers span {
  width: 52px;
  height: 34px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #ff8f54, #cf5e2b);
}

.ship-containers span:nth-child(2) {
  background: linear-gradient(180deg, #1dbf9a, #118d73);
}

.ship-containers span:nth-child(3) {
  background: linear-gradient(180deg, #dbe2ee, #9ba8ba);
}

.ship-containers span:nth-child(4) {
  background: linear-gradient(180deg, #ffb570, #e27839);
}

.ship-body {
  position: absolute;
  inset: auto 0 0 0;
  height: 48px;
  border-radius: 0 18px 30px 30px;
  background: linear-gradient(180deg, #111926, #050a12);
}

.ship-body::before {
  content: "";
  position: absolute;
  right: -8px;
  bottom: 0;
  width: 110px;
  height: 48px;
  clip-path: polygon(0 0, 82% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #111926, #050a12);
}

.ship-cabin {
  position: absolute;
  right: 64px;
  bottom: 46px;
  width: 46px;
  height: 36px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #ebf1fa, #c6d0e0);
}

.waterline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 84px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 12%),
    radial-gradient(circle at 74% 34%, rgba(255, 255, 255, 0.08), transparent 14%),
    linear-gradient(180deg, #11426a 0%, #0b3150 48%, #08253f 100%);
}

.waterline::before,
.waterline::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.waterline::before {
  bottom: 44px;
}

.waterline::after {
  bottom: 20px;
}

.simple-auth-row,
.hero-subactions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.simple-auth-row {
  margin-top: 22px;
}

.hero-subactions {
  margin-top: 12px;
}

.home-page .cta {
  max-width: 980px;
  margin-inline: auto;
}

.home-page .cta > div {
  max-width: 620px;
}

@media (max-width: 720px) {
  .simple-auth-row,
  .hero-subactions {
    flex-direction: column;
  }

  .home-page .hero {
    padding: 32px 22px;
  }

  .harbor-scene {
    height: 250px;
  }

  .scene-sun {
    right: 38px;
    width: 52px;
    height: 52px;
  }

  .crane-left {
    left: 30px;
  }

  .crane-right {
    right: 42px;
  }

  .dock-stacks {
    left: 20px;
    gap: 6px;
  }

  .stack {
    width: 34px;
  }

  .ship {
    right: 20px;
    width: 220px;
    height: 100px;
  }

  .ship-containers {
    left: 26px;
    gap: 4px;
  }

    .ship-containers span {
      width: 30px;
      height: 24px;
    }
  }

.dashboard-minimal {
  max-width: 880px;
  margin: 28px auto 0;
  display: grid;
  gap: 16px;
}

.dashboard-empty {
  min-height: calc(100vh - 180px);
}

.seller-products-shell {
  max-width: 1120px;
}

.products-card {
  padding: 20px 22px;
}

.products-table-wrap {
  overflow-x: auto;
}

.products-table {
  width: 100%;
  border-collapse: collapse;
}

.products-table th,
.products-table td {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(15, 23, 40, 0.08);
  text-align: left;
  color: var(--ink);
  vertical-align: middle;
}

.products-table th {
  font-size: 13px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.products-table tbody tr:last-child td {
  border-bottom: 0;
}

.products-table tbody tr {
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.products-table tbody tr:hover,
.products-table tbody tr:focus-within {
  background: rgba(255, 255, 255, 0.42);
}

.products-table td:nth-child(1),
.products-table td:nth-child(5) {
  white-space: nowrap;
  font-weight: 700;
}

.products-table td:nth-child(4) {
  min-width: 320px;
  color: var(--muted);
}

.table-thumb-frame {
  width: 74px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 40, 0.08);
  background: rgba(255, 255, 255, 0.68);
}

.table-thumb-frame .product-thumb,
.table-thumb-frame .gallery-image-preview,
.table-thumb-frame .dashboard-image-preview {
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
  border-radius: 0;
}

.table-thumb-frame .gallery-image-preview,
.table-thumb-frame .dashboard-image-preview {
  display: block;
  object-fit: contain !important;
  background: rgba(255, 255, 255, 0.45);
}

.mini-thumb-strip {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-thumb {
  width: 52px;
  height: 40px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 40, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.mini-thumb .product-thumb,
.mini-thumb .gallery-image-preview,
.mini-thumb .dashboard-image-preview {
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
  border-radius: 0;
}

.mini-thumb .gallery-image-preview,
.mini-thumb .dashboard-image-preview {
  display: block;
  object-fit: contain !important;
  background: rgba(255, 255, 255, 0.45);
}

.dashboard-thumb {
  box-shadow: none;
}

.mini-thumb-more,
.mini-thumb-empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.product-thumb {
  width: 74px;
  height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 40, 0.08);
  background-color: #f5efe4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.thumb-valve {
  background:
    radial-gradient(circle at 26px 27px, #dce6f0 0 7px, transparent 8px),
    linear-gradient(90deg, transparent 18px, #314258 18px 54px, transparent 54px),
    linear-gradient(180deg, transparent 21px, #1f2d40 21px 34px, transparent 34px),
    linear-gradient(135deg, #f8f0df, #ead8be);
}

.thumb-pump {
  background:
    radial-gradient(circle at 24px 27px, #ff8b4e 0 11px, transparent 12px),
    linear-gradient(90deg, #2f3f57 36px, transparent 36px),
    linear-gradient(180deg, transparent 16px, #223246 16px 40px, transparent 40px),
    linear-gradient(135deg, #f8f0df, #ead8be);
}

.thumb-filter {
  background:
    repeating-linear-gradient(90deg, #c79354 0 4px, #f0c88d 4px 8px),
    linear-gradient(180deg, transparent 10px, rgba(22, 34, 53, 0.14) 10px 44px, transparent 44px),
    linear-gradient(135deg, #f8f0df, #ead8be);
}

.product-row-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.seller-editor-shell {
  max-width: 1120px;
}

.editor-card {
  padding: 22px 24px;
}

.editor-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
}

.editor-images-panel,
.editor-fields-panel {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 40, 0.08);
  background: rgba(255, 255, 255, 0.44);
}

.upload-trigger {
  cursor: pointer;
}

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

.gallery-card {
  position: relative;
  display: grid;
}

.gallery-card-dragging {
  opacity: 0.58;
}

.gallery-card-drop-target .gallery-card-media {
  outline: 2px dashed rgba(255, 107, 44, 0.7);
  outline-offset: 4px;
}

.gallery-drag-handle {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 40, 0.84);
  cursor: grab;
  z-index: 1;
}

.gallery-drag-handle:active {
  cursor: grabbing;
}

.gallery-drag-handle span,
.gallery-drag-handle::before,
.gallery-drag-handle::after {
  content: "";
  width: 11px;
  height: 2px;
  border-radius: 999px;
  background: #fff4e4;
  display: block;
}

.gallery-drag-handle span {
  position: relative;
}

.gallery-drag-handle::before {
  position: absolute;
  transform: translateY(-4px);
}

.gallery-drag-handle::after {
  position: absolute;
  transform: translateY(4px);
}

.gallery-card-media {
  min-height: 160px;
  padding: 14px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 40, 0.08);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.gallery-card-media .product-thumb {
  width: 100%;
  max-width: 220px;
  height: 140px;
}

.gallery-image-preview {
  width: 100%;
  height: 132px;
  object-fit: cover;
  border-radius: 16px;
}

.gallery-remove-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #d84b4b;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(216, 75, 75, 0.24);
  z-index: 1;
}

.gallery-remove-button:hover,
.gallery-remove-button:focus-visible {
  background: #bf3939;
}

.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 16, 0.82);
  backdrop-filter: blur(8px);
}

.lightbox-dialog {
  position: relative;
  width: min(920px, calc(100% - 32px));
  margin: 40px auto;
  padding: 20px;
  border-radius: 28px;
  background: rgba(246, 234, 216, 0.96);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.38);
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 40, 0.1);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-media {
  min-height: 520px;
  display: grid;
  place-items: center;
}

.lightbox-image-preview {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 20px;
}

.lightbox-thumb {
  width: min(100%, 720px) !important;
  height: 420px !important;
  max-width: 720px;
}

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

.editor-full-field {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.editor-no-top-margin {
  margin-top: 0;
}

.editor-fields-panel label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.editor-fields-panel input,
.editor-textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 40, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
}

.editor-textarea {
  min-height: 180px;
  padding: 14px;
  resize: vertical;
}

.editor-docs-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 40, 0.08);
}

.document-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.document-tile {
  position: relative;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 40, 0.08);
  background: rgba(255, 255, 255, 0.66);
}

.document-link {
  display: grid;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.document-link strong {
  color: var(--ink);
  line-height: 1.4;
  word-break: break-word;
}

.document-link span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.document-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #1f2d40, #35506e);
  color: #fff4e4;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.document-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.document-open-link {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.compact-empty-state {
  padding: 16px;
  text-align: left;
}

.users-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(180px, 0.55fr));
  gap: 12px;
  margin-top: 18px;
}

.users-search,
.users-select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
}

.users-list {
  display: grid;
  gap: 12px;
}

.user-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}

.user-main strong,
.user-main p,
.user-main span {
  display: block;
}

.user-main strong {
  color: var(--ink);
  margin-bottom: 6px;
}

.user-main p,
.user-main span {
  margin: 0;
  color: var(--muted);
}

.user-main span {
  margin-top: 4px;
  font-size: 13px;
}

.user-meta,
.user-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button.danger-button {
  background: rgba(203, 81, 81, 0.12);
  border-color: rgba(180, 60, 60, 0.22);
  color: #8f2f2f;
}

.button.danger-button:hover,
.button.danger-button:focus-visible {
  background: rgba(203, 81, 81, 0.18);
  color: #7c2222;
}

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

.empty-state-actions {
  margin-top: 14px;
}

.dashboard-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-tab {
  padding: 11px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(248, 240, 223, 0.82);
  background: rgba(255, 244, 228, 0.08);
  border: 1px solid rgba(255, 244, 228, 0.12);
  font-size: 14px;
  font-weight: 700;
}

.dashboard-tab.active-tab {
  background: var(--paper);
  color: var(--ink);
}

.minimal-card {
  padding: 22px 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.minimal-card .button.tertiary {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  border-color: var(--line);
}

.minimal-card .button.tertiary:hover,
.minimal-card .button.tertiary:focus-visible {
  background: rgba(255, 255, 255, 0.82);
}

.minimal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.minimal-head h3 {
  margin: 0;
  color: var(--ink);
}

.minimal-meta,
.minimal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.simple-list {
  display: grid;
  gap: 12px;
}

.simple-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.simple-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.simple-item p {
  margin: 0;
  color: var(--muted);
}

.simple-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.supplier-database-list {
  gap: 16px;
}

.supplier-db-card {
  align-items: stretch;
  gap: 20px;
}

.supplier-db-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.supplier-db-actions .message-button {
  white-space: nowrap;
}

.offer-card-actions {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.buyer-card-link {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.buyer-card-link:hover,
.buyer-card-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(16, 35, 59, 0.12);
  background: rgba(255, 255, 255, 0.72);
  outline: none;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover,
.clickable-row:focus-visible {
  background: rgba(255, 255, 255, 0.52);
  outline: none;
}

.offer-button {
  gap: 8px;
  cursor: pointer;
}

.message-button {
  gap: 8px;
  cursor: pointer;
}

.favorite-star-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 40, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: #b28b2c;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.favorite-star-button.active {
  background: rgba(255, 196, 48, 0.18);
  border-color: rgba(201, 155, 16, 0.26);
  color: #a86b00;
}

.supplier-db-card.is-blacklisted {
  opacity: 0.46;
  filter: grayscale(0.22);
}

.supplier-db-card.is-blacklisted:hover,
.supplier-db-card.is-blacklisted:focus-visible {
  opacity: 0.62;
}

.message-icon {
  width: 20px;
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(25, 104, 186, 0.14);
  color: #1f5f9e;
  font-size: 12px;
  line-height: 1;
}

.offer-button.has-offer {
  color: var(--ink);
}

.offer-icon {
  width: 20px;
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 107, 44, 0.14);
  color: #b45424;
  font-weight: 800;
  line-height: 1;
}

.offer-icon.edit-offer-icon {
  background: rgba(21, 115, 71, 0.12);
  color: #14653f;
}

.offer-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.offer-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 16, 0.68);
  backdrop-filter: blur(6px);
}

.offer-modal-card {
  position: relative;
  width: min(560px, calc(100% - 24px));
  margin: 48px auto;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 252, 246, 0.96);
  color: var(--ink);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
  max-height: calc(100vh - 96px);
  overflow: auto;
}

.offer-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 40, 0.08);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.offer-modal-card h3 {
  margin: 0 0 8px;
}

.offer-modal-copy {
  margin: 0 0 18px;
  color: var(--muted);
}

.offer-existing-files {
  display: grid;
  gap: 10px;
}

.offer-upload-group {
  display: grid;
  gap: 8px;
}

.offer-upload-label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.offer-upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.offer-upload-row input[type="file"] {
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 40, 0.12);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font: inherit;
}

.offer-upload-actions {
  display: flex;
  justify-content: flex-start;
  flex-shrink: 0;
}

.offer-upload-actions .button {
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(15, 23, 40, 0.12);
  background: linear-gradient(135deg, #1a2740 0%, #23395d 100%);
  color: #fff7ec;
  box-shadow: 0 14px 28px rgba(24, 39, 66, 0.22);
}

.offer-upload-actions .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(24, 39, 66, 0.28);
}

.offer-existing-files strong {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.offer-current-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.offer-attachment-card {
  position: relative;
}

.offer-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 10px 12px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 40, 0.1);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.offer-file-chip:hover {
  border-color: rgba(255, 107, 44, 0.24);
}

.offer-image-chip,
.offer-document-chip {
  position: relative;
  min-width: 220px;
  justify-content: flex-start;
  text-align: left;
}

.offer-chip-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 24px;
  height: 24px;
  border: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #d94b4b;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(217, 75, 75, 0.24);
}

.offer-chip-delete:hover {
  background: #bf3939;
}

.offer-chip-preview {
  width: 64px;
  height: 64px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(16, 35, 59, 0.08);
  border: 1px solid rgba(15, 23, 40, 0.08);
}

.offer-chip-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.offer-chip-meta {
  display: grid;
  gap: 4px;
}

.offer-chip-meta strong {
  font-size: 14px;
  line-height: 1.3;
}

.offer-chip-meta span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.offer-chip-badge {
  min-width: 64px;
  height: 64px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(29, 56, 94, 0.92);
  color: #fff7ec;
  font-size: 16px;
  font-weight: 800;
}

.offer-attachment-lightbox {
  z-index: 72;
}

.offer-form {
  display: grid;
  gap: 14px;
}

.offer-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.offer-form input,
.offer-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 40, 0.12);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font: inherit;
}

.offer-form textarea {
  min-height: 140px;
  padding: 14px;
  resize: vertical;
}

.offer-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  position: sticky;
  bottom: 0;
  padding-top: 12px;
  background: rgba(255, 252, 246, 0.96);
}

.offer-modal-actions .button.tertiary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border-color: rgba(15, 23, 40, 0.18);
}

.offer-modal-actions .button.tertiary:hover,
.offer-modal-actions .button.tertiary:focus-visible {
  background: rgba(255, 255, 255, 1);
  color: var(--ink);
}

.message-compose-history {
  max-height: 280px;
  overflow: auto;
  padding: 6px 4px 6px 0;
  margin-bottom: 8px;
  border-top: 1px solid rgba(15, 23, 40, 0.08);
  border-bottom: 1px solid rgba(15, 23, 40, 0.08);
}

.offer-attachment-summary {
  display: grid;
  gap: 4px;
}

.offer-attachment-summary strong {
  font-size: 16px;
}

.offer-attachment-summary span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.offer-media-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.offer-media-thumb {
  width: 56px;
  height: 56px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 40, 0.08);
  background: rgba(255, 255, 255, 0.86);
}

.offer-media-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.offer-media-more {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.messages-shell {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.messages-card {
  min-height: 680px;
}

.messages-conversation-list {
  display: grid;
  gap: 10px;
  max-height: 600px;
  overflow: auto;
}

.conversation-item {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(15, 23, 40, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.conversation-item.active {
  border-color: rgba(25, 104, 186, 0.22);
  background: rgba(216, 234, 250, 0.62);
}

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

.conversation-item span,
.conversation-item small {
  margin-top: 6px;
  color: var(--muted);
}

.messages-thread-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
}

.messages-thread-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.messages-thread-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.message-bubble {
  max-width: 76%;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(15, 23, 40, 0.08);
}

.message-bubble.outgoing {
  align-self: flex-end;
  background: rgba(225, 239, 255, 0.88);
}

.message-bubble.incoming {
  align-self: flex-start;
}

.message-bubble p {
  margin: 0;
  line-height: 1.55;
  white-space: pre-wrap;
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.message-status {
  font-weight: 800;
  letter-spacing: -0.04em;
}

.message-status.sent {
  color: #6b7280;
}

.message-status.read {
  color: #2070d6;
}

.message-edited {
  text-transform: lowercase;
}

.message-context-menu {
  position: fixed;
  z-index: 80;
  display: grid;
  gap: 6px;
  min-width: 140px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 40, 0.08);
  background: rgba(255, 252, 246, 0.98);
  box-shadow: 0 18px 40px rgba(16, 35, 59, 0.18);
}

.message-context-action {
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(16, 35, 59, 0.06);
  color: var(--ink);
  text-align: left;
  padding: 0 12px;
  cursor: pointer;
}

.message-context-action.danger {
  color: #b33636;
}

.messages-compose {
  display: grid;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 23, 40, 0.08);
}

.messages-compose-label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.messages-compose textarea {
  width: 100%;
  min-height: 110px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 40, 0.12);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.messages-upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.messages-upload-row input[type="file"] {
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 40, 0.12);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font: inherit;
}

.messages-draft-attachments,
.message-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.message-attachment-chip {
  position: relative;
  min-width: 180px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 40, 0.08);
  background: rgba(255, 255, 255, 0.62);
}

.message-attachment-preview {
  width: 100%;
  max-width: 180px;
  min-height: 110px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(16, 35, 59, 0.08);
  cursor: pointer;
}

.message-attachment-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.message-attachment-copy {
  margin-top: 8px;
}

.message-attachment-copy strong {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}

.message-attachment-doc {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 40, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  text-decoration: none;
}

.message-attachment-badge {
  min-width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(29, 56, 94, 0.92);
  color: #fff7ec;
  font-size: 13px;
  font-weight: 800;
}

.message-attachment-doc-name {
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}

.supplier-db-main {
  min-width: 220px;
}

.supplier-db-media {
  min-width: 200px;
  display: flex;
  align-items: center;
}

.supplier-db-copy {
  flex: 1;
  display: grid;
  gap: 10px;
}

.supplier-product-copy {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 40, 0.08);
  background: rgba(255, 255, 255, 0.46);
}

.supplier-product-copy strong {
  display: block;
  margin-bottom: 6px;
}

.supplier-product-copy p {
  margin: 0;
}

.supplier-preview-strip {
  flex-wrap: wrap;
}

.supplier-mini-thumb {
  width: 72px;
  height: 56px;
}

.buyer-product-thumb-frame {
  width: 92px;
  height: 72px;
}

.search-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.search-field-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.search-field-icon {
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
}

.search-field-input {
  width: 100%;
  min-height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.search-field-input::placeholder {
  color: var(--muted);
}

.settings-shell {
  max-width: 980px;
}

.settings-card {
  display: grid;
  gap: 16px;
}

.settings-form {
  display: grid;
  gap: 16px;
}

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

.settings-card label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.settings-card input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 40, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font: inherit;
}

.settings-card input:disabled {
  opacity: 0.72;
}

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

.settings-action-list {
  display: grid;
  gap: 14px;
}

.settings-action-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.46);
}

.settings-action-item strong {
  display: block;
  margin-bottom: 6px;
}

.settings-action-item p {
  margin: 0;
  color: var(--muted);
}

.danger-action-item {
  border-color: rgba(180, 60, 60, 0.18);
  background: rgba(203, 81, 81, 0.06);
}

.settings-delete-inline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-delete-inline input {
  min-width: 220px;
}

@media (max-width: 720px) {
  .dashboard-minimal {
    margin-top: 20px;
  }

  .dashboard-tabs,
  .minimal-actions,
  .minimal-meta,
  .simple-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .minimal-card {
    padding: 18px;
  }

  .settings-field-grid,
  .settings-security-grid {
    grid-template-columns: 1fr;
  }

  .users-toolbar,
  .user-row {
    grid-template-columns: 1fr;
  }

  .user-meta,
  .user-actions {
    justify-content: flex-start;
  }

  .settings-action-item,
  .settings-delete-inline {
    flex-direction: column;
    align-items: flex-start;
  }

  .products-table {
    min-width: 760px;
  }

  .buyer-requests-table {
    min-width: 0;
  }

  .buyer-requests-table thead {
    display: none;
  }

  .buyer-requests-table,
  .buyer-requests-table tbody,
  .buyer-requests-table tr,
  .buyer-requests-table td {
    display: block;
    width: 100%;
  }

  .buyer-requests-table tr {
    padding: 16px 14px;
    margin-bottom: 12px;
    border: 1px solid rgba(15, 23, 40, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.56);
  }

  .buyer-requests-table td {
    min-width: 0 !important;
    padding: 8px 0;
    border-bottom: 0;
    white-space: normal !important;
  }

  .buyer-requests-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .buyer-requests-table td .button {
    width: 100%;
  }

  .seller-products-table,
  .seller-products-table tbody,
  .seller-products-table tr,
  .seller-products-table td,
  .inquiries-table,
  .inquiries-table tbody,
  .inquiries-table tr,
  .inquiries-table td {
    display: block;
    width: 100%;
  }

  .seller-products-table,
  .inquiries-table {
    min-width: 0;
  }

  .seller-products-table thead,
  .inquiries-table thead {
    display: none;
  }

  .seller-products-table tr,
  .inquiries-table tr {
    padding: 16px 14px;
    margin-bottom: 12px;
    border: 1px solid rgba(15, 23, 40, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.56);
  }

  .seller-products-table td,
  .inquiries-table td {
    min-width: 0 !important;
    padding: 8px 0;
    border-bottom: 0;
    white-space: normal !important;
  }

  .seller-products-table td::before,
  .inquiries-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .seller-products-table td .button,
  .inquiries-table td .button {
    width: 100%;
  }

  .offer-modal-card {
    width: calc(100% - 16px);
    margin: 12px auto;
    padding: 18px 16px;
    border-radius: 22px;
    max-height: calc(100vh - 24px);
  }

  .offer-upload-row {
    grid-template-columns: 1fr;
  }

  .offer-upload-actions {
    width: 100%;
  }

  .offer-upload-actions .button {
    width: 100%;
  }

  .offer-current-attachments {
    display: grid;
    grid-template-columns: 1fr;
  }

  .offer-image-chip,
  .offer-document-chip {
    min-width: 0;
    width: 100%;
  }

  .messages-shell {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .messages-card {
    min-height: auto;
  }

  .messages-conversation-list {
    max-height: 220px;
  }

  .messages-thread-card {
    grid-template-rows: auto auto auto;
  }

  .messages-thread-body {
    max-height: 320px;
  }

  .messages-upload-row {
    grid-template-columns: 1fr;
  }

  .message-bubble {
    max-width: 92%;
  }

  .messages-compose textarea {
    min-height: 96px;
  }

  .editor-layout,
  .editor-field-grid,
  .editor-gallery {
    grid-template-columns: 1fr;
  }

  .document-list {
    grid-template-columns: 1fr;
  }

  .lightbox-dialog {
    width: calc(100% - 20px);
    margin: 20px auto;
    padding: 16px;
  }

  .lightbox-media {
    min-height: 300px;
  }

  .lightbox-thumb {
    height: 260px !important;
  }
}
