:root {
  --bg: #06122A;
  --panel: #111831;
  --panel2: #151e3b;
  --card: #ffffff;
  --text: #06122A;
  --muted: #687089;
  --line: #e8ecf5;
  --primary: #5b6cff;
  --primary2: #00d4ff;
  --accent: #15c784;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(14, 23, 55, .12);
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7fb;
  color: var(--text);
  min-height: 100vh
}

a {
  color: inherit;
  text-decoration: none
}

img {
  max-width: 100%;
  display: block
}

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

.container {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line)
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 74px
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: #3b82f6;
  color: #fff;
  font-weight: 900;
  letter-spacing: -.04em;
  box-shadow: none
}

.brand b {
  display: block;
  font-size: 20px;
  letter-spacing: -.04em
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: -2px
}

.nav-menu {
  display: flex;
  gap: 2px;
  align-items: center;
  flex: 1;
  min-width: 0;
  overflow: auto;
  scrollbar-width: none
}

.nav-menu a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #334155;
  font-weight: 650;
  font-size: 14px;
  white-space: nowrap
}

.nav-menu a:hover {
  background: #eef2ff;
  color: var(--primary)
}

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

.cart-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 13px;
  background: #f1f5ff;
  border-radius: 14px;
  color: #334155;
  font-weight: 750
}

.cart-link span {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-size: 12px
}

.btn {
  border: 0;
  border-radius: 14px;
  padding: 11px 16px;
  font-weight: 800;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff;
  box-shadow: 0 12px 28px rgba(91, 108, 255, .25)
}

.btn-secondary {
  background: #10172e;
  color: #fff
}

.btn-ghost {
  background: #eef2ff;
  color: #334155
}

.btn-soft {
  background: #e9fbf4;
  color: #087a54
}

.btn-danger {
  background: #fff0f0;
  color: #c02626
}

.btn-block {
  width: 100%
}

.nav-toggle {
  display: none;
  border: 0;
  background: #eef2ff;
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 900
}

.user-menu {
  position: relative;
  z-index: 1000
}

.user-menu button {
  border: 0;
  background: #111831;
  color: #fff;
  border-radius: 14px;
  padding: 11px 14px;
  font-weight: 800;
  cursor: pointer
}

.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
  min-width: 200px;
  overflow: hidden;
  z-index: 1001
}

.user-dropdown.open {
  display: block
}

.user-dropdown a {
  display: block;
  padding: 12px 16px;
  font-weight: 600;
  color: #374151;
  font-size: 13px
}

.user-dropdown a:hover {
  background: #f3f4f6;
  color: #06122A
}

.flash-wrap {
  margin-top: 16px
}

.flash {
  padding: 13px 15px;
  border-radius: 14px;
  margin-bottom: 10px;
  font-weight: 750
}

.flash-success {
  background: #e9fbf4;
  color: #087a54
}

.flash-warning {
  background: #fff7ed;
  color: #9a3412
}

.flash-error {
  background: #fff1f2;
  color: #be123c
}

.hero {
  background: radial-gradient(circle at top left, rgba(0, 212, 255, .25), transparent 34%), radial-gradient(circle at top right, rgba(124, 58, 237, .28), transparent 38%), linear-gradient(135deg, #06122A, #141b3a);
  color: #fff;
  padding: 70px 0 54px;
  border-bottom-left-radius: 34px;
  border-bottom-right-radius: 34px;
  overflow: hidden
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 34px;
  align-items: center
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .11);
  color: #dbeafe;
  font-weight: 800;
  font-size: 13px
}

.hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  line-height: .95;
  margin: 18px 0;
  letter-spacing: -.07em
}

.hero p {
  font-size: 18px;
  line-height: 1.7;
  color: #cbd5e1;
  max-width: 760px
}

.hero-search {
  display: flex;
  gap: 10px;
  background: #fff;
  padding: 8px;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
  margin-top: 28px
}

.hero-search input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 14px;
  font-size: 16px
}

.hero-card {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 28px;
  padding: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 80px rgba(0, 0, 0, .2)
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px
}

.stat {
  background: rgba(255, 255, 255, .1);
  border-radius: 18px;
  padding: 18px
}

.stat b {
  display: block;
  font-size: 28px
}

.section {
  padding: 22px 1px
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px
}

.section-head h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -.04em
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted)
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px
}

.category-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 10px 30px rgba(20, 30, 70, .05);
  transition: .2s
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow)
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #eef2ff;
  font-size: 24px;
  margin-bottom: 14px
}

.category-card h3 {
  margin: 0 0 6px
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(20, 30, 70, .06);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: .2s
}


.product-cover {
  aspect-ratio: 16/10;
  background: #e5e7eb;
  object-fit: cover;
  width: 100%
}

.product-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1
}

.product-title {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 13px
}

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

.price {
  font-size: 20px;
  font-weight: 950;
  color: #06122A
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef2ff;
  color: #364fc7;
  font-size: 12px;
  font-weight: 850
}

.badge-green {
  background: #e9fbf4;
  color: #087a54
}

.badge-yellow {
  background: #fff7ed;
  color: #9a3412
}

.badge-red {
  background: #fff1f2;
  color: #be123c
}

.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  padding: 28px 0
}

.sidebar,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(20, 30, 70, .05)
}

.sidebar {
  padding: 16px;
  height: max-content;
  position: sticky;
  top: 92px
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  color: #334155;
  font-weight: 750
}

.sidebar a:hover,
.sidebar a.active {
  background: #eef2ff;
  color: var(--primary)
}

.panel {
  padding: 22px
}

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

.panel-title h1,
.panel-title h2 {
  margin: 0;
  letter-spacing: -.04em
}

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

.price-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px
}

@media(max-width:760px) {
  .price-fields {
    grid-template-columns: 1fr
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px
}

.field.full {
  grid-column: 1/-1
}

.field label {
  font-weight: 850;
  color: #334155
}

.field input,
.field textarea,
.field select {
  border: 1px solid #d8deeb;
  border-radius: 14px;
  padding: 12px 13px;
  background: #fff;
  outline: 0
}

.field textarea {
  min-height: 140px;
  resize: vertical
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(91, 108, 255, .12)
}

.auth-card {
  width: min(480px, 100%);
  margin: 46px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 28px;
  box-shadow: var(--shadow)
}

.auth-card h1 {
  margin: 0 0 8px;
  letter-spacing: -.05em
}

.auth-card p {
  color: var(--muted)
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 760px
}

.table th,
.table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle
}

.table th {
  background: #f8faff;
  font-size: 13px;
  color: #475569
}

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

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

.small-btn {
  border: 0;
  border-radius: 12px;
  padding: 8px 10px;
  background: #eef2ff;
  font-weight: 850;
  cursor: pointer
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 82px
}

.table-actions form {
  margin: 0;
  display: inline-flex
}

.action-icon-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid #d8dee8;
  background: #fff;
  color: #334155;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease
}

.action-icon-btn:hover {
  background: #f8fafc;
  border-color: #b8c2d1;
  transform: translateY(-1px)
}

.action-approve {
  color: #15803d;
  background: #f0fdf4;
  border-color: #bbf7d0
}

.action-reject {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca
}

.action-feature {
  color: #a16207;
  background: #fffbeb;
  border-color: #fde68a
}

.action-view {
  color: #0369a1;
  background: #f0f9ff;
  border-color: #bae6fd
}

.action-edit {
  color: #4f46e5;
  background: #eef2ff;
  border-color: #c7d2fe
}

.product-page {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 10px;
  margin-top: 10px !important;
}

.product-gallery,
.buy-box,
.content-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(20, 30, 70, .05);
  overflow: hidden
}

.product-gallery img {
  width: 100%;
  aspect-ratio: 16/6;
  object-fit: cover
}

.content-box {
  padding: 24px;
  margin-top: 18px
}

.content-box h1 {
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -.05em;
  margin: 0 0 10px
}

.content-box p {
  line-height: 1.75;
  color: #475569
}

.buy-box {
  padding: 20px;
  height: max-content;
  position: sticky;
}

.buy-price {
  font-size: 34px;
  font-weight: 950;
  margin: 10px 0
}

.seller-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: #f8faff;
  margin: 16px 0
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 950
}

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

.cart-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px
}

.cart-item img {
  width: 110px;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 14px
}

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

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px
}

.dash-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(20, 30, 70, .05)
}

.dash-card span {
  color: var(--muted);
  font-weight: 750
}

.dash-card b {
  display: block;
  font-size: 28px;
  margin-top: 8px
}

.empty {
  padding: 30px;
  border: 1px dashed #cbd5e1;
  border-radius: 20px;
  text-align: center;
  color: var(--muted);
  background: #fff
}

.site-footer {
  background: #06122A;
  color: #cbd5e1;
  margin-top: 40px;
  padding: 38px 0 18px
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 22px
}

.footer-grid h4 {
  margin: 0 0 12px;
  color: #fff
}

.footer-grid a {
  margin: 9px 0;
  color: #cbd5e1
}

.footer-brand {
  color: #fff
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 26px;
  padding-top: 18px;
  text-align: center;
  color: #94a3b8
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px
}

.filters input,
.filters select {
  border: 1px solid #d8deeb;
  border-radius: 14px;
  padding: 11px 13px;
  background: #fff
}

.filters input {
  min-width: min(360px, 100%);
  flex: 1
}

.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px
}

.tab {
  padding: 10px 13px;
  border-radius: 14px;
  background: #eef2ff;
  color: #334155;
  font-weight: 800
}

.legal {
  max-width: 900px;
  margin: 32px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  line-height: 1.75
}

.legal h1 {
  letter-spacing: -.04em
}

@media(max-width:1020px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .hero-grid,
  .product-page {
    grid-template-columns: 1fr
  }

  .hero-card {
    display: none
  }

  .buy-box {
    position: static
  }

  .dashboard-cards {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:760px) {
  .container {
    width: min(100% - 20px, 1180px)
  }

  .nav-wrap {
    min-height: 64px;
    flex-wrap: wrap
  }

  .nav-toggle {
    display: inline-flex
  }

  .nav-menu {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    padding-bottom: 12px
  }

  .nav-menu.open {
    display: flex
  }

  .nav-menu a {
    background: #f8faff
  }

  .nav-actions {
    margin-left: auto
  }

  .nav-actions .btn {
    display: none
  }

  .brand small {
    display: none
  }

  .hero {
    padding: 42px 0 36px;
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px
  }

  .hero-search {
    flex-direction: column
  }

  .hero-search input {
    padding: 12px 13px
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px
  }

  .category-grid {
    grid-template-columns: 1fr
  }

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

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px
  }

  .form-grid {
    grid-template-columns: 1fr
  }

  .cart-item {
    grid-template-columns: 86px 1fr
  }

  .cart-item img {
    width: 86px
  }

  .cart-item .actions {
    grid-column: 1/-1
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr
  }

  .product-title {
    font-size: 14px
  }

  .price {
    font-size: 18px
  }

  .panel {
    padding: 16px
  }

  .content-box h1 {
    font-size: 28px
  }
}

@media(max-width:460px) {
  .product-grid {
    grid-template-columns: 1fr
  }

  .dashboard-cards {
    grid-template-columns: 1fr
  }

  .footer-grid {
    grid-template-columns: 1fr
  }

  .sidebar {
    grid-template-columns: 1fr
  }

  .cart-link {
    padding: 9px 10px
  }

  .user-menu button {
    padding: 9px 10px
  }

  .brand b {
    font-size: 18px
  }

  .content-box,
  .buy-box {
    padding: 16px
  }
}

/* Marketplace visual refresh */
.hero {
  padding: 42px 0 34px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0
}

.hero-grid {
  grid-template-columns: 1.15fr .65fr;
  gap: 28px
}

.hero h1 {
  font-size: clamp(34px, 4.7vw, 58px);
  line-height: 1;
  margin: 14px 0;
  letter-spacing: -.05em
}

.hero p {
  font-size: 16px;
  line-height: 1.55;
  max-width: 720px
}

.hero-search {
  max-width: 760px;
  margin-top: 20px;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18)
}

.hero-search input {
  font-size: 15px
}

.hero-card {
  border-radius: 8px;
  padding: 20px;
  box-shadow: none
}

.stat {
  border-radius: 6px;
  padding: 14px
}

.stat b {
  font-size: 24px
}

.product-grid {
  gap: 16px
}

.product-media {
  display: block;
  background: #eef1f6
}

.product-cover {
  aspect-ratio: 4/2;
  border-radius: 0
}

.product-body {
  padding: 14px 16px 15px;
  gap: 7px
}

.product-title {
  font-size: 15px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.product-byline {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35
}

.price-row {
  margin-top: 6px
}

.price {
  font-size: 18px
}

.product-meta {
  justify-content: flex-start;
  gap: 4px;
  font-size: 12px;
  line-height: 1.2
}

.stars {
  color: #f5b301;
  letter-spacing: 0
}

.product-sales {
  color: var(--muted);
  font-size: 12px
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 8px
}

.product-actions form {
  margin: 0
}

.icon-btn,
.preview-btn {
  height: 40px;
  border-radius: 0;
  border: 1px solid #cfd6df;
  background: #fff;
  color: #243244;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer
}

.icon-btn {
  width: 40px;
  font-size: 15px
}

.preview-btn {
  padding: 0 14px;
  border-color: #008ac0;
  color: #0075a8;
  font-size: 13px;
  min-width: 118px
}

.preview-btn:hover,
.icon-btn:hover {
  background: #f7faff
}

.category-card,
.sidebar,
.panel,
.auth-card,
.table-wrap,
.product-gallery,
.buy-box,
.content-box,
.cart-item,
.dash-card,
.empty,
.legal {
  border-radius: 4px;
  box-shadow: none
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(20, 30, 70, .08)
}

.category-icon,
.seller-strip,
.tab,
.filters input,
.filters select,
.field input,
.field textarea,
.field select,
.small-btn,
.btn,
.cart-link,
.nav-menu a,
.user-menu button,
.nav-toggle {
  border-radius: 4px
}

.product-gallery img {
  border-radius: 0
}

.product-demo-action {
  display: flex;
  justify-content: center;
  padding: 18px 16px 13px;
  background: #fff
}

.product-demo-btn {
  min-width: 166px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 4px;
  padding: 8px 16px;
  background: #008db8;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .12);
  transition: background .18s ease, transform .18s ease
}

.product-demo-btn:hover {
  background: #007da3;
  transform: translateY(-1px)
}

.product-demo-btn__icon {
  width: 15px;
  height: 15px;
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, .92);
  border-radius: 1px;
  position: relative;
  flex: 0 0 auto
}

.product-demo-btn__icon::before,
.product-demo-btn__icon::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, .92)
}

.product-demo-btn__icon::before {
  left: 4px;
  top: 0;
  bottom: 0;
  width: 2px
}

.product-demo-btn__icon::after {
  left: 0;
  right: 0;
  top: 4px;
  height: 2px
}

.product-detail-tabs {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin: 0 0 6px;
  border-bottom: 1px solid #d8dee8;
  background: #fff;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none
}

.product-detail-tabs::-webkit-scrollbar {
  display: none
}

.product-detail-tab {
  min-height: 38px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-bottom: 0;
  background: transparent;
  color: #344054;
  font-size: 13px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer
}

.product-detail-tab.is-active {
  border-color: #d8dee8;
  background: #fff;
  color: #06122A;
}

.product-detail-tab:hover {
  background: #f7faff
}

.tab-stars {
  color: #f5a900;
  letter-spacing: 0
}

.tab-score {
  font-weight: 500;
  color: #344054
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 14px;
  padding: 0 4px;
  border-radius: 2px;
  background: #0789bd;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1
}

.rich-editor-wrap {
  border: 1px solid #d8deeb;
  background: #fff
}

.rich-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 8px;
  border-bottom: 1px solid #e4e9f2;
  background: #f8faff
}

.rich-toolbar button {
  min-height: 32px;
  border: 1px solid #cfd6df;
  background: #fff;
  color: #243244;
  border-radius: 3px;
  padding: 6px 9px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer
}

.rich-toolbar button:hover {
  background: #eef4ff
}

.rich-editor {
  min-height: 260px;
  padding: 14px;
  outline: 0;
  line-height: 1.65;
  color: #243244
}

.rich-editor:focus {
  box-shadow: inset 0 0 0 2px rgba(91, 108, 255, .16)
}

.rich-editor.is-uploading {
  background: linear-gradient(0deg, rgba(7, 137, 189, .06), rgba(7, 137, 189, .06)), #fff
}

.rich-source {
  display: none
}

.rich-editor h2,
.rich-content h2 {
  font-size: 24px;
  line-height: 1.2;
  margin: 20px 0 10px
}

.rich-editor h3,
.rich-content h3 {
  font-size: 20px;
  line-height: 1.25;
  margin: 18px 0 8px
}

.rich-editor p,
.rich-content p {
  margin: 0 0 14px
}

.rich-editor ul,
.rich-editor ol,
.rich-content ul,
.rich-content ol {
  margin: 0 0 14px 22px;
  padding: 0
}

.rich-editor blockquote,
.rich-content blockquote {
  margin: 14px 0;
  padding: 10px 14px;
  border-left: 3px solid #0789bd;
  background: #f7faff
}

.rich-editor img,
.rich-content img {
  max-width: 100%;
  height: auto;
  margin: 14px 0;
  border: 1px solid #d8deeb
}

.rich-content {
  line-height: 1.75;
  color: #475569
}

.rich-content a {
  color: #0075a8;
  text-decoration: underline
}

.product-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px
}

.product-body {
  padding: 12px 16px 14px;
  gap: 6px
}

.product-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px
}

.product-price-info {
  min-width: 0
}

.product-bottom .price-row {
  margin-top: 0;
  gap: 4px
}

.product-bottom .product-actions {
  margin-top: 0;
  flex: 0 0 auto
}

.product-bottom .icon-btn,
.product-bottom .preview-btn {
  height: 40px
}

.product-bottom .preview-btn {
  min-width: 104px
}

.license-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #d8dee8
}

.license-select {
  border: 0;
  background: transparent;
  padding: 0;
  color: #2f3a4a;
  font-size: 16px;
  font-weight: 850;
  cursor: pointer
}

.license-select span {
  display: inline-block;
  margin-left: 5px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #a3adba;
  vertical-align: middle
}

.buy-box .buy-price {
  font-size: 34px;
  line-height: 1;
  margin: 0;
  color: #2f3a4a
}

.license-list {
  list-style: none;
  margin: 12px 0 12px;
  padding: 0;
  color: #3e4b5c;
  font-size: 13px;
  line-height: 1.45
}

.license-list li {
  position: relative;
  padding-left: 25px;
  margin: 4px 0
}

.license-list li::before {
  content: "✓";
  position: absolute;
  left: 5px;
  top: 0;
  color: #768292;
  font-weight: 900
}

.support-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: start;
  margin: 12px 0;
  color: #3e4b5c;
  font-size: 14px;
  line-height: 1.25
}

.support-option input {
  margin-top: 2px
}

.support-option b {
  white-space: nowrap
}

.quantity-box {
  display: grid;
  gap: 8px;
  margin: 14px 0 14px;
  color: #1f2937;
  font-weight: 750
}

.quantity-control {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-justify-content: flex-start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
}

.quantity-control button {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 30px;
  background: white;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  cursor: pointer;
  color: #454545;
  padding: 0;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}

.quantity-control input {
  height: 30px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  text-align: center;
  color: #687089;
  background: #fff
}

.cart-buy-btn {
  background: #83bd3a;
  color: #fff;
  border-radius: 4px;
  box-shadow: none;
  font-size: 16px
}

.cart-buy-btn:hover {
  background: #75ad32
}

.price-note {
  margin: 12px 0 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  font-style: italic
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea,
.field.has-error .rich-editor-wrap {
  border-color: #ef4444;
  background: #fffafa
}

.field.has-error input:focus,
.field.has-error select:focus,
.field.has-error textarea:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, .12)
}

.field-error {
  display: block;
  margin-top: 2px;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 750
}

.form-error {
  grid-column: 1/-1;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #be123c;
  font-weight: 800
}

@media(max-width:1020px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .hero {
    padding: 34px 0 30px
  }

  .hero h1 {
    font-size: clamp(32px, 7vw, 50px)
  }
}

@media(max-width:760px) {
  .hero {
    padding: 10px 0 26px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.05
  }

  .hero p {
    font-size: 15px
  }

  .hero-search {
    margin-top: 16px
  }

  .product-body {
    padding: 12px
  }

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

  .product-bottom {
    align-items: flex-start
  }

  .product-actions {
    justify-content: stretch
  }

  .preview-btn {
    flex: 1;
    min-width: 0
  }

  .product-detail-tabs {
    margin-bottom: 12px
  }

  .product-detail-tab {
    padding: 9px 10px;
    font-size: 12px
  }
}

/* Featured categories */
.featured-category-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 26px
}

.featured-category-card {
  position: relative;
  min-height: 328px;
  padding: 34px 36px 0;
  background: #e5e7eb;
  border: 0;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between
}

.featured-category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(20, 30, 70, .08)
}

.featured-category-copy h3 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -.02em
}

.featured-category-copy p {
  margin: 0;
  color: #1f2937;
  font-size: 13px;
  line-height: 1.4;
  min-height: 18px
}

.featured-category-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 7px;
  font-size: 12px
}

.featured-category-links a {
  color: #0073b5
}

.featured-category-links a:hover {
  text-decoration: underline
}

.featured-category-media {
  position: relative;
  margin: 62px auto 0;
  width: min(280px, 100%)
}

.featured-category-media a {
  display: block
}

.featured-category-media img {
  width: 100%;
  aspect-ratio: 16/7.5;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 12px 22px rgba(20, 30, 70, .16)
}

.featured-category-card .category-icon {
  position: absolute;
  left: 50%;
  top: -28px;
  transform: translateX(-50%);
  z-index: 2;
  width: 58px;
  height: 58px;
  margin: 0;
  border-radius: 50%;
  background: #eef7ff;
  border: 4px solid #fff;
  color: #06122A;
  font-size: 26px;
  box-shadow: 0 2px 0 rgba(20, 30, 70, .08)
}

@media(max-width:1020px) {
  .featured-category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px
  }
}

@media(max-width:760px) {
  .featured-category-grid {
    grid-template-columns: 1fr
  }

  .featured-category-card {
    min-height: 300px;
    padding: 28px 22px 0
  }

  .featured-category-copy h3 {
    font-size: 24px
  }

  .featured-category-media {
    margin-top: 54px
  }
}

/* Sales-focused hero */
.hero-sales {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 44px;
  align-items: center;
  max-width: 1180px
}

.hero-copy {
  max-width: 920px
}

.hero-sales .hero-search {
  max-width: 900px
}

.hero-sales h1 {
  max-width: 900px
}

.hero-sales p {
  max-width: 830px
}

.hero-quick-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px
}

.hero-quick-links a {
  color: #dbeafe;
  font-size: 14px;
  font-weight: 800
}

.hero-quick-links a:hover {
  color: #fff;
  text-decoration: underline
}

.hero-showcase {
  position: relative;
  min-height: 360px
}

.hero-code-card {
  position: absolute;
  right: 18px;
  top: 12px;
  width: 310px;
  padding: 18px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
  backdrop-filter: blur(14px)
}

.code-top {
  display: flex;
  gap: 6px;
  margin-bottom: 18px
}

.code-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #94a3b8
}

.code-line {
  height: 10px;
  margin: 10px 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, .18))
}

.code-line.wide {
  width: 88%
}

.code-line.mid {
  width: 68%
}

.code-line.short {
  width: 46%
}

.code-tags {
  display: flex;
  gap: 8px;
  margin-top: 18px
}

.code-tags span {
  padding: 6px 8px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 900
}

.hero-product-mini {
  position: absolute;
  width: 245px;
  background: #fff;
  color: #06122A;
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .24);
  animation: heroFloat 5.5s ease-in-out infinite
}

.hero-product-mini img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #e5e7eb
}

.hero-product-mini div {
  padding: 10px 12px
}

.hero-product-mini b {
  display: block;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.hero-product-mini span {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800
}

.hero-product-mini-1 {
  left: 4px;
  top: 54px
}

.hero-product-mini-2 {
  right: 0;
  bottom: 30px;
  animation-delay: -1.8s
}

.hero-product-mini-3 {
  left: 70px;
  bottom: 0;
  width: 205px;
  animation-delay: -3.2s
}

.hero-floating-label {
  position: absolute;
  right: 118px;
  top: 178px;
  padding: 10px 12px;
  background: #83bd3a;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
  font-size: 13px;
  font-weight: 950;
  animation: heroFloat 4.8s ease-in-out infinite reverse
}

@keyframes heroFloat {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-10px)
  }
}

@media(max-width:1020px) {
  .hero-sales {
    grid-template-columns: 1fr
  }

  .hero-showcase {
    display: none
  }
}

@media(max-width:760px) {
  .hero-copy {
    max-width: none
  }

  .hero-quick-links {
    gap: 12px
  }

  .hero-quick-links a {
    font-size: 13px
  }
}

/* Two-line marketplace navigation */
.topbar {
  background: #fff;
  border-bottom: 1px solid #dfe5ee;
  backdrop-filter: none
}

.main {
  flex: 1 !important;
  padding: 24px;
}

.nav-main {
  background: #06122A;
  color: #fff;
  position: relative;
  z-index: 100
}

.nav-main .nav-wrap {
  min-height: 68px;
  gap: 20px
}

.nav-main .brand {
  color: #fff
}

.nav-main .brand small {
  color: #aeb4bf
}

.nav-main .brand-icon {
  box-shadow: none
}

.nav-main-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0
}

.nav-main-links a {
  color: #d1d5db;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: -0.01em
}

.nav-main-links a:hover {
  color: #fff
}

.nav-main .cart-link {
  background: transparent;
  color: #fff;
  padding: 12px 14px;
  border-radius: 0;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1002;
  cursor: pointer
}

.nav-main .cart-link span {
  background: #3b82f6;
  color: #fff;
  font-weight: 800
}

.nav-main .btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid #374151;
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px
}

.nav-main .btn-ghost:hover {
  border-color: #4b5563
}

.nav-main .btn-primary {
  background: #3b82f6;
  color: #fff;
  box-shadow: none;
  border-radius: 0;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 16px
}

.nav-main .user-menu button {
  background: transparent;
  color: #fff;
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px
}

.nav-main .user-menu button:hover {
  border-color: #4b5563
}

.nav-category-shell {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  overflow: visible
}

.nav-category-menu {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 40px;
  overflow: visible;
  scrollbar-width: none
}

.nav-category-menu::-webkit-scrollbar {
  display: none
}

.nav-category-menu a {
  position: relative;
  flex: 0 0 auto;
  padding: 12px 14px;
  border-radius: 0;
  background: transparent;
  color: #4b5563;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em
}

.nav-category-item {
  position: relative;
  flex: 0 0 auto
}

.nav-category-item>a::after {
  content: "▾";
  margin-left: 6px;
  color: #9ca3af;
  font-size: 10px
}

.nav-category-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 6px 0;
  background: #fff;
  border: 1px solid #dfe5ee;
  box-shadow: 0 18px 36px rgba(15, 23, 42, .14);
  z-index: 4000
}

.nav-category-dropdown a {
  display: block;
  padding: 10px 13px;
  color: #374151;
  font-size: 13px;
  font-weight: 650;
  text-transform: none;
  letter-spacing: 0
}

.nav-category-dropdown a:hover {
  background: #f8fafc;
  color: #06122A
}

.nav-category-item:hover .nav-category-dropdown,
.nav-category-item:focus-within .nav-category-dropdown {
  display: block
}

.nav-category-menu a:hover {
  background: transparent;
  color: #06122A
}

.nav-category-menu a:hover::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: #3b82f6
}

@media(max-width:1020px) {
  .nav-main-links {
    gap: 14px
  }

  .nav-main-links a {
    font-size: 13px
  }
}

@media(max-width:760px) {
  .nav-main .nav-wrap {
    min-height: 64px;
    flex-wrap: nowrap
  }

  .nav-main-links {
    display: none
  }

  .nav-toggle {
    display: inline-flex
  }

  .nav-category-shell {
    display: none
  }

  .nav-category-shell.open {
    display: block
  }

  .nav-category-shell.open .nav-category-menu {
    display: flex
  }

  .nav-category-menu {
    width: min(100% - 20px, 1180px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0
  }

  .nav-category-menu a {
    padding: 11px 12px;
    border-bottom: 1px solid #eef2f7
  }

  .nav-category-item {
    width: 100%
  }

  .nav-category-item>a::after {
    display: none
  }

  .nav-category-dropdown {
    display: block;
    position: static;
    min-width: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: #f8fafc
  }

  .nav-category-dropdown a {
    padding-left: 28px;
    font-size: 13px
  }

  .nav-category-menu a:hover::after {
    display: none
  }
}

/* Category marketplace list */
.category-market {
  background: #fafafa
}

.market-search {
  display: grid;
  grid-template-columns: 1fr 144px;
  margin-bottom: 18px
}

.market-search input {
  height: 50px;
  border: 1px solid #dedede;
  border-right: 0;
  background: #fff;
  padding: 0 16px;
  outline: 0;
  color: #334155
}

.market-search button {
  border: 0;
  background: #68a627;
  color: #fff;
  font-weight: 850;
  cursor: pointer
}

.market-result-line {
  margin: 0 0 24px;
  color: #475569;
  font-size: 13px
}

.market-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  border-top: 1px solid #e5e7eb;
  padding-top: 22px
}

.market-filter h3 {
  margin: 8px 0 24px;
  font-size: 14px
}

.filter-block {
  border-bottom: 1px solid #e5e7eb;
  padding: 0 0 22px;
  margin-bottom: 18px
}

.filter-block h4 {
  display: flex;
  justify-content: space-between;
  margin: 0 0 16px;
  font-size: 15px;
  color: #1f2937
}

.filter-block a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  color: #06122A;
  font-size: 13px
}

.filter-block a small {
  color: #94a3b8
}

.filter-block a.active {
  font-weight: 900
}

.filter-empty {
  margin: 0;
  color: #94a3b8;
  font-size: 13px
}

.checkbox-filter {
  display: grid;
  gap: 8px;
  margin: 0
}

.checkbox-filter label {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 8px;
  color: #06122A;
  font-size: 13px;
  cursor: pointer
}

.checkbox-filter input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary)
}

.checkbox-filter small {
  color: #94a3b8
}

.price-filter {
  display: grid;
  grid-template-columns: 1fr auto 1fr 32px;
  gap: 8px;
  align-items: center
}

.price-filter input {
  width: 100%;
  height: 30px;
  border: 1px solid #d8dee8;
  padding: 0 8px;
  background: #fff
}

.price-filter button {
  height: 30px;
  border: 0;
  background: #e5e7eb;
  color: #687089;
  font-size: 22px;
  cursor: pointer
}

.market-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #475569
}

.market-toolbar a {
  color: #334155;
  text-decoration: underline
}

.market-toolbar nav {
  display: flex;
  align-items: center
}

.market-toolbar nav a {
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-left: 0;
  background: #fff;
  color: #06122A;
  text-decoration: none;
  font-weight: 800;
  font-size: 12px
}

.market-toolbar nav a:first-child {
  border-left: 1px solid #e5e7eb
}

.market-toolbar nav a.active {
  background: #1f2937;
  color: #fff
}

.product-list {
  display: grid;
  gap: 18px
}

.market-list-card {
  display: grid;
  grid-template-columns: 36% 1fr 206px;
  gap: 14px;
  background: #fff;
  border: 1px solid #edf0f4;
  box-shadow: 0 2px 8px rgba(20, 30, 70, .04);
  padding: 14px
}

.market-list-media img {
  width: 100%;
  height: 176px;
  object-fit: cover;
  background: #e5e7eb
}

.market-list-info {
  padding: 2px 0
}

.market-list-title {
  font-size: 15px;
  font-weight: 900;
  color: #1f2937
}

.market-list-info p {
  margin: 14px 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.45
}

.market-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap
}

.market-tags span {
  padding: 4px 7px;
  background: #f0f2f5;
  color: #475569;
  font-size: 11px
}

.market-list-buy {
  border-left: 1px solid #e5e7eb;
  padding-left: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center
}

.market-icons {
  align-self: flex-end;
  color: #94a3b8;
  font-size: 20px;
  display: flex;
  gap: 10px;
  margin-bottom: 20px
}

.market-list-buy strong {
  font-size: 18px;
  color: #1f2937
}

.market-list-buy small {
  color: #94a3b8;
  font-size: 12px;
  margin: 4px 0 18px
}

.market-list-buy .product-actions {
  margin-top: auto;
  width: 100%;
  justify-content: center
}

.market-list-buy .preview-btn {
  min-width: 118px
}

@media(max-width:1020px) {
  .market-layout {
    grid-template-columns: 1fr
  }

  .market-filter {
    display: none
  }

  .market-list-card {
    grid-template-columns: 280px 1fr 180px
  }
}

@media(max-width:760px) {
  .market-search {
    grid-template-columns: 1fr
  }

  .market-search input {
    border-right: 1px solid #dedede
  }

  .market-search button {
    height: 44px
  }

  .market-toolbar {
    align-items: flex-start;
    flex-direction: column
  }

  .market-toolbar nav {
    overflow-x: auto;
    width: 100%
  }

  .market-list-card {
    grid-template-columns: 1fr
  }

  .market-list-media img {
    height: auto;
    aspect-ratio: 16/9
  }

  .market-list-buy {
    border-left: 0;
    border-top: 1px solid #e5e7eb;
    padding: 14px 0 0
  }

  .market-icons {
    display: none
  }
}

/* Changelog Styling */
.changelog-container {
  margin-top: 8px;
}

.changelog-version {
  font-weight: 900;
  font-size: 16px;
  color: #06122A;
  margin-top: 18px;
  margin-bottom: 8px;
}

.changelog-version-text {
  font-weight: 950;
}

.changelog-date-text {
  color: #6b7280;
  font-weight: 600;
}

.changelog-line {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 6px 10px;
  background: #f8fafc;
  margin: 4px 0;
  border-radius: 4px;
  color: #374151;
  font-size: 13px;
  line-height: 1.45;
}

.changelog-line:nth-child(even) {
  background: #f1f5f9;
}

.changelog-line-icon {
  color: #64748b;
  font-weight: 900;
  margin-top: 2px;
}

/* More Items from Seller */
.more-seller-items {
  margin-top: 36px;
  border-top: 1px solid #e5e7eb;
  padding-top: 24px;
}

.more-seller-items h2 {
  font-size: 22px;
  margin: 0 0 18px;
  color: #1f2937;
}

.more-items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.more-item-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}

.more-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(20, 30, 70, .08);
}

.more-item-card img {
  width: 100%;
  aspect-ratio: 4/2;
  object-fit: cover;
  background: #e5e7eb;
}

.more-item-info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.more-item-title {
  font-size: 13px;
  font-weight: 800;
  color: #1f2937;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.more-item-price {
  font-size: 14px;
  font-weight: 900;
  color: #06122A;
}

.view-portfolio-link {
  margin-top: 14px;
  text-align: center;
}

.view-portfolio-link a {
  color: #0073b5;
  font-weight: 750;
  font-size: 14px;
}

.view-portfolio-link a:hover {
  text-decoration: underline;
}

/* Seller Sidebar */
.seller-badges-section {
  margin-bottom: 18px;
}

.badge-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
}

.badge-icon {
  font-size: 28px;
}

.badge-icon-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 34px;
}

.badge-text {
  font-weight: 750;
  color: #374151;
}

.seller-profile-card {
  display: block;
  padding: 16px 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  margin-bottom: 12px;
}

.seller-profile-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.seller-avatar-custom {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(34, 197, 94, .24);
}

.seller-avatar-text {
  color: #fff;
  font-size: 23px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.seller-name-link {
  text-decoration: none;
  display: block;
}

.seller-name-link h3 {
  margin: 0 0 5px;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.15;
}

.seller-rank-label {
  display: inline-flex;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.seller-badges-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  gap: 9px;
  width: 100%;
}

.mini-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-width: 42px;
  height: 42px;
  padding: 5px;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 18px;
  font-weight: 750;
  border: 1px solid #eef2f7;
}

.mini-badge img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.mini-badge.is-locked {
  opacity: .34;
  filter: grayscale(1);
}

.mini-badge.is-locked::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #06122A;
  box-shadow: 0 0 0 2px #fff;
}

.view-portfolio-btn-container {
  margin-bottom: 18px;
}

.view-portfolio-btn {
  border: 1px solid #d1d5db;
  background: #f8fafc;
  color: #374151;
  font-weight: 800;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .05);
}

.license-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.license-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}

.license-option:hover {
  border-color: #d1d5db;
}

.license-option.active {
  border-color: #3b82f6;
  background: #eff6ff;
}

.license-option input {
  width: 18px;
  height: 18px;
  accent-color: #3b82f6;
  cursor: pointer;
}

.license-title {
  display: block;
  font-weight: 800;
  font-size: 14px;
  color: #1f2937;
}

.license-desc {
  display: block;
  font-size: 12px;
  color: #6b7280;
}

.license-price {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.price-original {
  text-decoration: line-through;
  color: #9ca3af;
  margin-right: 8px;
  font-weight: 700
}

.price-current {
  font-weight: 900;
  font-size: 18px;
  color: #1f2937;
}

.discount-badge {
  background: #dcfce7;
  color: #16a34a;
  font-weight: 900;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 999px;
}

.total-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #f9fafb;
  border-radius: 12px;
  margin: 16px 0;
}

.total-label {
  font-weight: 700;
  color: #4b5563;
}

.total-value {
  font-weight: 950;
  font-size: 24px;
  color: #06122A;
}

.view-portfolio-btn:hover {
  background: #f1f5f9;
}

/* License Dropdown Selector */
.license-dropdown-container {
  margin-bottom: 16px;
}

.license-dropdown-wrapper {
  position: relative;
}

.license-dropdown-selected {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: border-color 0.2s;
}

.license-dropdown-selected:hover {
  border-color: #9ca3af;
}

.license-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  z-index: 100;
  overflow: hidden;
}

.license-dropdown-menu.open {
  display: block;
}

.license-dropdown-item {
  padding: 14px 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.license-dropdown-item:hover {
  background: #f9fafb;
}

.license-option-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.license-option-name {
  font-weight: 700;
  color: #1f2937;
  font-size: 16px;
}

.license-option-price-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.license-option-price {
  font-weight: 800;
  color: #06122A;
  font-size: 16px;
}

.license-option-original-price {
  text-decoration: line-through;
  color: #9ca3af;
  font-weight: 600;
}

.license-option-desc {
  color: #6b7280;
  font-size: 14px;
  margin: 8px 0 0;
  line-height: 1.5;
}

.license-price-display {
  padding: 10px 14px 0;
}

.price-original-main {
  text-decoration: line-through;
  color: #9ca3af;
  font-weight: 600;
  font-size: 18px;
  margin-right: 8px;
}

.price-current-main {
  font-weight: 900;
  font-size: 24px;
  color: #06122A;
}

.price-discount-main {
  margin-left: 8px;
  background: #dcfce7;
  color: #16a34a;
  font-weight: 900;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
}

.product-details-sidebar {
  padding: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  margin-bottom: 18px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
}

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

.detail-label {
  color: #64748b;
  font-weight: 700;
}

.detail-value {
  color: #1f2937;
  font-weight: 500;
  text-align: right;
}

.detail-value a {
  color: #0073b5;
  text-decoration: none;
}

.detail-value a:hover {
  text-decoration: underline;
}

/* Responsive for new features */
@media(max-width:1020px) {
  .more-items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:760px) {
  .more-items-grid {
    grid-template-columns: 1fr;
  }

  .seller-profile-card {
    grid-template-columns: auto 1fr;
  }

  .seller-avatar-custom {
    width: 64px;
    height: 64px;
  }

  .seller-avatar-text {
    font-size: 24px;
  }

  .more-seller-items {
    margin-top: 24px;
    padding-top: 18px;
  }

  .more-seller-items h2 {
    font-size: 18px;
  }
}

.product-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
}

.product-media {
  position: relative;
}

.product-discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #16a34a;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
  z-index: 1;
}

.price-original {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 18px;
  font-weight: 600;
}

.product-title {
  color: #06122A;
  font-size: 16px;
  line-height: 1.3;
}

.market-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Dynamic star ratings */
.star-full {
  color: #f59e0b;
}

.star-half {
  color: #f59e0b;
  position: relative;
}

.star-empty {
  color: #d1d5db;
}

.product-seller-info .stars {
  display: inline-flex;
}

.product-detail-tabs .stars {
  display: inline-flex;
  gap: 2px;
  margin-right: 4px;
}

/* Flash Toast Notifications */
.flash-wrap {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flash {
  padding: 14px 20px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.4s ease-out;
  max-width: 400px;
}

@keyframes slideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }

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

/* Cart item styling */
.cart-item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 24px;
  padding: 24px;
  background: #fff;
  border: 1px solid #eef2ff;
  border-radius: 12px;
  align-items: center;
}

.cart-item img {
  width: 140px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  aspect-ratio: 16/10;
}

.cart-item b {
  font-size: 18px;
  color: #06122A;
  display: block;
  margin-bottom: 6px;
}

.cart-item .mini-muted {
  display: inline;
  margin-right: 8px;
  line-height: 1.5;
}

.cart-item .actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.cart-item .actions b {
  font-size: 20px;
  color: #06122A;
}

/* Cart responsive mobile styling */
@media(max-width:760px) {
  .cart-item {
    grid-template-columns: 100px 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
    padding: 16px;
  }

  .cart-item .actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .cart-item img {
    width: 100px;
  }
}

/* Mobile Nav Styling */
.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-toggle {
  border: 0;
  background: transparent;
  font-size: 22px;
  padding: 10px;
  color: #fff;
  cursor: pointer;
}

.nav-actions-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-actions-right .btn-ghost,
.nav-actions-right .user-menu button {
  padding: 10px 12px;
  font-size: 18px;
}

.nav-main-links {
  display: none;
}

.nav-category-shell {
  display: none;
}

.nav-category-shell.open {
  display: block;
}

.user-dropdown {
  right: 0;
}

/* Mobile/Desktop helper classes */
.mobile-only {
  display: inline-block;
}

.desktop-only {
  display: none;
}

/* Nav main styles */
.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-toggle {
  display: block;
  border: 0;
  background: transparent;
  font-size: 22px;
  padding: 8px 12px;
  color: #fff;
  cursor: pointer;
}

.nav-main-links {
  display: none;
}

.nav-category-shell {
  display: none;
}

.nav-category-shell.open {
  display: block;
}

/* Desktop styles */
@media(min-width:760px) {
  .mobile-only {
    display: none;
  }

  .desktop-only {
    display: inline-block;
  }

  .nav-wrap {
    justify-content: flex-start;
    gap: 24px;
  }

  .nav-toggle {
    display: none;
  }

  .nav-main-links {
    display: flex;
    gap: 8px;
  }

  .brand small {
    display: block;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-category-shell {
    display: block;
  }
}

/* Downloads page redesign */
.downloads-panel-title {
  display: block;
  margin-bottom: 22px
}

.downloads-panel-title p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px
}

.downloads-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px
}

.downloads-market-filter select {
  min-width: 210px;
  border: 1px solid #d7dde8;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  outline: 0
}

.downloads-sort {
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid #d7dde8;
  border-radius: 8px;
  overflow: hidden;
  background: #fff
}

.downloads-sort-link {
  padding: 12px 18px;
  color: #334155;
  font-weight: 800;
  border-right: 1px solid #d7dde8;
  background: #fff;
  transition: background .2s ease, color .2s ease
}

.downloads-sort-link:last-child {
  border-right: 0
}

.downloads-sort-link:hover {
  background: #f8fafc
}

.downloads-sort-link.active {
  background: #2f3137;
  color: #fff
}

.downloads-list {
  display: grid;
  gap: 0
}

.download-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 220px;
  gap: 18px 24px;
  padding: 22px 0;
  border-top: 1px solid #e5e7eb;
  align-items: start
}

.download-card:first-child {
  border-top: 0;
  padding-top: 6px
}

.img-logo {
  width: 200px;
}

.download-card__thumb img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 0;
  border: 1px solid #eef2f7;
  background: #f8fafc
}

.download-card__content {
  min-width: 0
}

.download-card__title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -.02em
}

.download-card__title a {
  color: #1f2937
}

.download-card__title a:hover {
  color: var(--primary)
}

.download-card__license {
  color: #0d6efd;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px
}

.download-card__meta {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 4px
}

.download-card__meta .dot {
  margin: 0 6px;
  color: #cbd5e1
}

.download-card__notify {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: #475569;
  font-size: 14px
}

.download-card__notify input {
  width: 14px;
  height: 14px;
  accent-color: #2563eb
}

.download-card__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px
}

.download-dropdown-wrap {
  position: relative
}

.download-btn {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 4px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: #8bc53f;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .08)
}

.download-btn:hover {
  filter: brightness(.98)
}

.download-btn__icon {
  font-size: 14px
}

.download-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 220px;
  background: #fff;
  border: 1px solid #d7dde8;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
  padding: 6px;
  z-index: 20
}

.download-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: #06122A
}

.download-dropdown a:hover {
  background: #f3f4f6
}

.download-rating-box {
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  border-radius: 4px;
  padding: 12px 14px;
  text-align: center
}

.download-rating-box__label {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 10px
}

.download-rating-box__note {
  margin-top: 8px;
  font-size: 12px;
  color: #64748b
}

.download-rating-form {
  display: flex;
  justify-content: center
}

.download-stars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px
}

.download-stars label {
  cursor: pointer
}

.download-stars input {
  display: none
}

.download-stars .star {
  font-size: 20px;
  line-height: 1;
  color: #d1d5db;
  transition: color .16s ease
}

.download-stars .star.is-active,
.download-stars.is-readonly .star.is-active,
.download-stars .star:hover {
  color: #f4c542
}

@media (max-width: 980px) {
  .downloads-toolbar {
    flex-direction: column;
    align-items: stretch
  }

  .downloads-sort {
    width: 100%
  }

  .downloads-sort-link {
    flex: 1 1 200px;
    text-align: center
  }

  .download-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .download-card__actions {
    grid-column: 1 / -1;
    padding-left: 112px;
    max-width: 280px
  }
}

@media (max-width: 680px) {
  .downloads-market-filter select {
    width: 100%;
    min-width: 0
  }

  .downloads-sort {
    display: grid;
    grid-template-columns: 1fr 1fr
  }

  .downloads-sort-link {
    border-right: 1px solid #d7dde8;
    border-bottom: 1px solid #d7dde8
  }

  .downloads-sort-link:nth-child(2n) {
    border-right: 0
  }

  .downloads-sort-link:nth-last-child(-n+2) {
    border-bottom: 0
  }

  .download-card {
    grid-template-columns: 76px 1fr;
    gap: 14px 16px
  }

  .download-card__thumb img {
    width: 76px;
    height: 76px
  }

  .download-card__title {
    font-size: 16px
  }

  .download-card__actions {
    padding-left: 0;
    max-width: none
  }

  .download-btn {
    min-height: 44px
  }
}


/* Downloads toolbar compact tweak */
.downloads-panel-title {
  margin-bottom: 16px
}

.downloads-panel-title h1 {
  font-size: 28px
}

.downloads-panel-title p {
  margin-top: 6px;
  font-size: 13px
}

.downloads-toolbar {
  gap: 12px;
  margin-bottom: 14px
}

.downloads-market-filter select {
  min-width: 170px;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 6px
}

.downloads-sort {
  border-radius: 6px
}

.downloads-sort-link {
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.15
}

@media (max-width: 680px) {
  .downloads-sort-link {
    padding: 9px 12px;
    font-size: 13px
  }

  .downloads-market-filter select {
    padding: 8px 10px
  }
}


/* Mobile menu overlay + product filters 50/50 */
@media (max-width: 760px) {
  .topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .nav-main .nav-wrap {
    min-height: 52px;
    flex-wrap: nowrap;
  }

  .nav-main .brand-icon {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .nav-main .brand b {
    font-size: 14px;
  }

  .nav-main .cart-link {
    padding: 8px 9px;
    font-size: 16px;
  }

  .nav-main .user-menu button {
    padding: 8px 9px;
  }

  .nav-category-shell {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: min(285px, 86vw);
    max-height: calc(100vh - 52px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dfe5ee;
    border-left: 0;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
    z-index: 1001;
  }

  .nav-category-shell.open {
    display: block !important;
  }

  .nav-category-shell.open .nav-category-menu,
  .nav-category-menu {
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }

  .nav-category-menu a {
    padding: 13px 16px;
    border-bottom: 1px solid #eef2f7;
    color: #1f2937;
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
    font-weight: 750;
  }

  .nav-category-menu a:hover::after {
    display: none;
  }

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

  .product-filters input[type="search"] {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }

  .product-filters select {
    width: 100%;
    min-width: 0;
  }

  .product-filters .btn,
  .product-filters button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Final mobile fixes: cart/user menu, account, and category filters */
@media (max-width: 760px) {
  .topbar {
    position: sticky;
    top: 0;
    z-index: 3000;
  }

  .nav-main .nav-wrap,
  .nav-wrap {
    display: flex;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    justify-content: flex-start;
  }

  .nav-toggle {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    padding: 0 !important;
    display: inline-grid !important;
    place-items: center;
    line-height: 1;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }

  .brand span:last-child {
    min-width: 0;
  }

  .brand b {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-actions {
    margin-left: auto !important;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 3100;
  }

  .nav-actions .cart-link,
  .nav-main .cart-link,
  .nav-main .user-menu button,
  .user-menu button {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0 !important;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    position: relative;
    flex: 0 0 36px;
  }

  .nav-actions .cart-link {
    z-index: 1;
  }

  .nav-actions .user-menu {
    position: relative;
    z-index: 2;
    flex: 0 0 36px;
  }

  .nav-main .cart-link span,
  .cart-link span {
    position: absolute;
    right: -2px;
    top: -2px;
    min-width: 17px;
    width: 17px;
    height: 17px;
    font-size: 10px;
    line-height: 17px;
  }

  .user-dropdown {
    right: 0;
    top: calc(100% + 8px);
    min-width: 190px;
    z-index: 3200;
  }

  .nav-category-shell {
    display: none !important;
    position: absolute !important;
    top: 100%;
    left: 0;
    width: min(300px, 86vw) !important;
    max-height: calc(100vh - 52px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dfe5ee;
    border-left: 0;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .2);
    z-index: 3050;
  }

  .nav-category-shell.open {
    display: block !important;
  }

  .nav-category-shell .nav-category-menu,
  .nav-category-shell.open .nav-category-menu {
    width: 100% !important;
    max-width: none;
    margin: 0;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }

  .nav-category-menu a {
    padding: 13px 16px;
    border-bottom: 1px solid #eef2f7;
    color: #1f2937;
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
    font-weight: 750;
  }

  .nav-category-menu a:hover::after {
    display: none;
  }
}

.orders-mobile-list {
  display: none;
}

@media (max-width: 760px) {
  .account-page {
    grid-template-columns: 1fr !important;
    gap: 12px;
    padding-top: 14px;
  }

  .account-page .sidebar {
    position: static;
    top: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
  }

  .account-page .sidebar a {
    min-width: 0;
    justify-content: center;
    text-align: center;
    padding: 10px 8px;
    font-size: 13px;
  }

  .account-panel {
    padding: 16px !important;
    overflow: hidden;
  }

  .account-panel .panel-title h1 {
    font-size: 22px;
    line-height: 1.15;
    word-break: break-word;
  }

  .account-panel h2 {
    font-size: 18px;
    margin-top: 18px;
  }

  .account-panel .dashboard-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  .account-panel .dash-card {
    padding: 12px;
  }

  .account-panel .dash-card span {
    font-size: 12px;
  }

  .account-panel .dash-card b {
    font-size: 16px;
    word-break: break-word;
  }

  .account-table {
    display: none;
  }

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

  .order-mobile-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
  }

  .order-mobile-card span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 3px;
  }

  .order-mobile-card b {
    display: block;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.25;
    word-break: break-word;
  }
}

@media (max-width: 430px) {
  .account-page .sidebar {
    grid-template-columns: 1fr;
  }

  .account-panel .dashboard-cards,
  .order-mobile-card {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  .category-market .market-search {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .category-market .market-search input,
  .category-market .market-search button {
    width: 100%;
    border: 1px solid #dedede;
    min-height: 44px;
  }

  .category-market .market-layout {
    grid-template-columns: 1fr !important;
    gap: 16px;
    padding-top: 16px;
  }

  .category-market .market-filter {
    display: block !important;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
  }

  .category-market .market-filter h3 {
    margin: 0 0 12px;
    font-size: 15px;
  }

  .category-market .filter-block {
    padding: 0;
    margin: 0 0 14px;
    border: 0;
  }

  .category-market .filter-block:last-child {
    margin-bottom: 0;
  }

  .category-market .filter-block h4 {
    margin-bottom: 10px;
    font-size: 13px;
  }

  .category-market .filter-block a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
  }

  .category-market .filter-block a.active {
    border-color: #1f2937;
    background: #1f2937;
    color: #fff;
  }

  .category-market .filter-block a.active small {
    color: rgba(255, 255, 255, .78);
  }

  .category-market .filter-empty {
    padding: 10px 0;
  }

  .category-market .checkbox-filter {
    gap: 8px;
  }

  .category-market .checkbox-filter label {
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
  }

  .category-market .price-filter {
    grid-template-columns: 1fr 18px 1fr 42px;
  }

  .category-market .price-filter input,
  .category-market .price-filter button {
    min-height: 38px;
  }

  .category-market .market-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
  }

  .category-market .market-toolbar>div {
    line-height: 1.5;
  }

  .category-market .market-toolbar nav,
  .category-market .category-sort-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    overflow: visible;
  }

  .category-market .market-toolbar nav a,
  .category-market .category-sort-list a {
    display: block;
    width: 100%;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px;
    padding: 11px 12px;
    text-align: center;
    line-height: 1.2;
    white-space: normal;
  }

  .category-market .market-toolbar nav a.active,
  .category-market .category-sort-list a.active {
    background: #1f2937;
    color: #fff;
  }

  .category-market .market-list-card {
    grid-template-columns: 1fr !important;
    gap: 12px;
    padding: 12px;
  }

  .category-market .market-list-buy {
    border-left: 0;
    border-top: 1px solid #e5e7eb;
    padding: 12px 0 0;
    align-items: stretch;
  }

  .category-market .market-icons {
    align-self: flex-start;
    margin-bottom: 10px;
  }

  .category-market .market-list-buy .product-actions,
  .category-market .market-list-buy .preview-btn {
    width: 100%;
  }
}

/* Category page: compact toolbar with sort dropdown */
.category-toolbar-compact {
  align-items: center;
}

.category-result-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

.category-sort-select {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.category-sort-select label {
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.category-sort-select select {
  min-width: 190px;
  height: 40px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
  color: #06122A;
  padding: 0 12px;
  font-weight: 800;
  outline: 0;
}

.category-sort-select select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(91, 108, 255, .12);
}

/* Public seller profile */
.seller-public-hero {
  padding: 26px 0 18px;
  background: #f5f7fb;
}

.seller-public-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.seller-public-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.seller-public-avatar {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: #fff;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: 0 12px 28px rgba(34, 197, 94, .22);
}

.seller-public-copy {
  min-width: 0;
}

.seller-public-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.seller-public-copy h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

.seller-public-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.seller-public-title-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.seller-public-title-badges img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.seller-public-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 14px;
}

.seller-contact-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 0 15px;
  background: #008db8;
  color: #fff;
  font-weight: 850;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .12);
}

.seller-contact-btn:hover {
  background: #007da3;
}

.seller-public-stats {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  min-width: 340px;
}

.seller-public-stats div {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
}

.seller-public-stats b,
.seller-public-stats span {
  display: block;
}

.seller-public-stats b {
  color: #0f172a;
  font-size: 28px;
  line-height: 1.05;
}

.seller-public-stats span {
  margin: 0 0 8px;
  color: #64748b;
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
}

@media (max-width: 760px) {
  .seller-public-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .seller-public-main {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .seller-public-avatar {
    width: 68px;
    height: 68px;
    font-size: 25px;
  }

  .seller-public-stats {
    justify-content: flex-start;
    gap: 22px;
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .category-market .category-toolbar-compact {
    gap: 10px;
  }

  .category-market .category-sort-select {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .category-market .category-sort-select label {
    font-size: 12px;
  }

  .category-market .category-sort-select select {
    width: 100%;
    min-width: 0;
    height: 44px;
    border-radius: 8px;
  }
}


/* Final mobile header/sidebar fixes */
.seller-sales-mobile-list {
  display: none;
}

@media (max-width: 760px) {
  .topbar {
    overflow: visible;
  }

  .nav-main {
    position: relative;
    z-index: 5000;
  }

  .nav-category-shell {
    position: fixed !important;
    top: 52px !important;
    left: 0 !important;
    bottom: 0;
    width: min(300px, 86vw) !important;
    max-height: none !important;
    overflow-y: auto;
  }

  .nav-category-shell.open {
    display: block !important;
  }

  .guest-user-menu.mobile-only {
    display: inline-block !important;
    position: relative;
  }

  .guest-user-menu button {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0 !important;
    display: inline-grid;
    place-items: center;
  }

  .nav-actions .btn.mobile-only,
  .nav-actions .btn-ghost.mobile-only,
  .nav-actions .btn-primary.mobile-only {
    display: none !important;
  }

  .layout.container,
  .layout {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding-top: 14px;
  }

  .layout>.sidebar {
    display: none !important;
  }

  .layout>.panel,
  .account-panel,
  .downloads-panel,
  .seller-panel {
    width: 100%;
    min-width: 0;
  }

  .panel-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .panel-title p {
    margin: 0;
    line-height: 1.45;
  }

  .seller-dashboard-page {
    padding-top: 14px;
  }

  .seller-panel {
    padding: 16px !important;
    overflow: hidden;
  }

  .seller-panel .panel-title {
    display: grid;
    grid-template-columns: 1fr;
  }

  .seller-panel .panel-title h1 {
    font-size: 22px;
    line-height: 1.15;
    word-break: break-word;
  }

  .seller-panel .panel-title .btn {
    width: 100%;
  }

  .seller-panel .dashboard-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  .seller-panel .dash-card {
    padding: 12px;
  }

  .seller-panel .dash-card span {
    font-size: 12px;
  }

  .seller-panel .dash-card b {
    font-size: 16px;
    word-break: break-word;
  }

  .seller-sales-table {
    display: none !important;
  }

  .seller-sales-mobile-list {
    display: grid;
    gap: 10px;
  }

  .seller-sale-mobile-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
  }

  .seller-sale-mobile-card .full {
    grid-column: 1 / -1;
  }

  .seller-sale-mobile-card span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 3px;
  }

  .seller-sale-mobile-card b {
    display: block;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.25;
    word-break: break-word;
  }
}