﻿:root {
  --market-bg: #101312;
  --market-surface: #171d1a;
  --market-panel: #1f2824;
  --market-line: #34423b;
  --market-text: #f1f5ef;
  --market-muted: #a6b3aa;
  --market-teal: #9acf16;
  --market-gold: #d6a84f;
  --market-plum: #9c7fd5;
  --market-green: #b0e030;
  --market-rust: #c47a3c;
  --market-sidebar: 282px;
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

body {
  background:
    radial-gradient(circle at top left, rgba(154, 207, 22, 0.11), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(214, 168, 79, 0.08), transparent 28rem),
    linear-gradient(135deg, #101312 0%, #151916 52%, #0f1210 100%) !important;
  color: var(--market-text) !important;
  padding-left: var(--market-sidebar);
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 0 var(--market-sidebar);
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(154, 207, 22, 0.1), transparent 24%, transparent 76%, rgba(214, 168, 79, 0.08)),
    repeating-linear-gradient(135deg, rgba(154, 207, 22, 0.055) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(45deg, rgba(214, 168, 79, 0.038) 0 1px, transparent 1px 46px),
    linear-gradient(180deg, rgba(21, 28, 24, 0.96), rgba(12, 15, 13, 0.98));
}

body > header:not(.market-topbar) {
  display: none !important;
}

.market-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--market-sidebar);
  z-index: 60;
  background: rgba(16, 19, 18, 0.96);
  border-right: 1px solid var(--market-line);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
}

.market-menu-state {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.market-menu-overlay,
.market-menu-button,
.market-menu-close {
  display: none;
}

.market-menu-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--market-line);
  border-radius: 8px;
  background: rgba(31, 40, 36, 0.92);
  color: var(--market-text);
  cursor: pointer;
}

.market-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 22px;
  color: var(--market-text);
  text-decoration: none;
}

.market-brand img,
.market-brand-mark {
  width: 44px;
  height: 44px;
}

.market-brand img {
  object-fit: contain;
}

.market-brand .market-brand-logo {
  width: 100%;
  max-width: 224px;
  height: 74px;
  object-fit: contain;
  object-position: left center;
}

.market-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(154, 207, 22, 0.5);
  border-radius: 8px;
  background: rgba(154, 207, 22, 0.12);
  color: var(--market-teal);
  font-size: 14px;
  font-weight: 850;
}

.market-brand strong {
  display: block;
  font-size: 19px;
  line-height: 1.05;
  letter-spacing: 0;
}

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

.market-nav-label {
  color: var(--market-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 10px 8px;
}

.market-nav {
  display: grid;
  gap: 4px;
}

.market-nav a,
.market-contact a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--market-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.market-nav a:hover,
.market-contact a:hover {
  background: rgba(154, 207, 22, 0.1);
  color: var(--market-text);
}

.market-nav i,
.market-contact i {
  width: 18px;
  color: var(--market-teal);
  text-align: center;
}

.market-contact {
  margin-top: auto;
  border-top: 1px solid var(--market-line);
  padding-top: 14px;
}

.market-topbar {
  position: sticky;
  top: 0;
  z-index: 55;
  display: none;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 28px;
  background: rgba(16, 19, 18, 0.86);
  border-bottom: 1px solid rgba(52, 66, 59, 0.75);
  backdrop-filter: blur(12px);
}

.market-menu-button {
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(154, 207, 22, 0.48);
  border-radius: 8px;
  background: rgba(31, 40, 36, 0.92);
  color: var(--market-teal);
  cursor: pointer;
  font-size: 18px;
}

.market-topbar .market-mobile-brand {
  display: none;
  margin-right: auto;
  color: var(--market-text);
  font-weight: 800;
}

.market-topbar .market-mobile-brand img {
  display: block;
  width: 168px;
  height: 36px;
  object-fit: contain;
  object-position: left center;
}

.market-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid var(--market-line);
  color: var(--market-text);
  background: rgba(31, 40, 36, 0.86);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.market-pill.primary {
  border-color: rgba(154, 207, 22, 0.48);
  background: linear-gradient(135deg, var(--market-teal), #6f9f10);
  color: #07130f;
}

.market-hero {
  max-width: 1180px;
  margin: 34px auto 0;
  padding: 0 28px;
}

.market-hero-panel,
.hero-gradient {
  border: 1px solid var(--market-line) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(135deg, rgba(154, 207, 22, 0.13), rgba(214, 168, 79, 0.08)),
    var(--market-surface) !important;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.26) !important;
}

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

.market-title,
.section-title {
  color: var(--market-text) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  letter-spacing: 0 !important;
}

.market-title {
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.96;
  font-weight: 850;
}

.market-copy {
  color: var(--market-muted);
  font-size: 17px;
  line-height: 1.7;
}

.card,
.popular-card,
.feature-card,
.info-card,
.filter-card,
.stat-card {
  background: rgba(31, 40, 36, 0.9) !important;
  border: 1px solid var(--market-line) !important;
  border-radius: 8px !important;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.22) !important;
}

.popular-card::after,
.card::before,
.hero-gradient::before {
  display: none !important;
}

.btn-primary,
.btn-success,
.btn-secondary {
  border-radius: 8px !important;
  box-shadow: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--market-teal), #6f9f10) !important;
  color: #07130f !important;
}

.btn-success {
  background: linear-gradient(135deg, var(--market-green), #7da51c) !important;
  color: #07130f !important;
}

.price-tag {
  background: linear-gradient(135deg, var(--market-gold), #b27d23) !important;
  border-radius: 8px !important;
}

.text-lime-400,
.text-lime-300 {
  color: var(--market-teal) !important;
}

.group:hover .group-hover\:text-lime-400,
.group:hover .group-hover\:text-lime-300 {
  color: var(--market-teal) !important;
}

.text-yellow-400 {
  color: var(--market-gold) !important;
}

.text-green-400 {
  color: var(--market-green) !important;
}

.text-purple-300,
.text-purple-400 {
  color: var(--market-plum) !important;
}

.bg-\[\#101312\] {
  background-color: var(--market-bg) !important;
}

.bg-\[\#171d1a\],
.bg-\[\#1f2824\] {
  background-color: var(--market-panel) !important;
}

.border-\[\#1f2824\] {
  border-color: var(--market-line) !important;
}

.border-lime-400 {
  border-color: var(--market-teal) !important;
}

.from-green-400,
.from-lime-400,
.from-lime-500,
.from-\[\#9acf16\] {
  --tw-gradient-from: var(--market-teal) var(--tw-gradient-from-position) !important;
  --tw-gradient-to: rgb(154 207 22 / 0) var(--tw-gradient-to-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.to-lime-500,
.to-lime-600,
.to-\[\#6f9f10\] {
  --tw-gradient-to: #6f9f10 var(--tw-gradient-to-position) !important;
}

.market-category-panel {
  max-width: 1180px;
  margin: 34px auto 0;
  padding: 0 28px;
}

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

.market-category-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid var(--market-line);
  border-radius: 8px;
  background: rgba(31, 40, 36, 0.74);
  color: var(--market-text);
  text-decoration: none;
  font-weight: 750;
}

.popular-card img,
.card img,
.product-image,
.account-image {
  background-color: rgba(18, 24, 21, 0.95) !important;
}

.market-category-link i {
  color: var(--market-teal);
}

.market-section {
  max-width: 1180px;
  margin: 48px auto 0;
  padding: 0 28px;
}

.market-footer {
  margin-top: 72px;
  padding: 28px;
  color: var(--market-muted);
  border-top: 1px solid var(--market-line);
  background: rgba(16, 19, 18, 0.58);
  text-align: center;
}

@media (max-width: 1080px) {
  body {
    padding-left: 0;
    padding-top: 72px;
  }

  body::before {
    inset: 0;
  }

  .market-sidebar {
    display: flex;
    transform: translateX(-100%);
    transition: transform 180ms ease;
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.34);
  }

  .market-topbar {
    display: flex;
    position: fixed;
    inset: 0 0 auto 0;
    overflow: visible;
    justify-content: space-between;
    padding: 10px 14px;
    min-height: 64px;
    scrollbar-width: none;
  }

  .market-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 58;
    background: rgba(5, 8, 7, 0.58);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .market-menu-button,
  .market-menu-close {
    display: inline-flex;
  }

  .market-menu-state:checked ~ .market-sidebar {
    transform: translateX(0);
  }

  .market-menu-state:checked ~ .market-menu-overlay {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .market-topbar::-webkit-scrollbar {
    display: none;
  }

  .market-topbar .market-mobile-brand {
    display: inline-flex;
    white-space: nowrap;
  }

  .market-pill {
    white-space: nowrap;
  }

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

@media (max-width: 640px) {
  body {
    padding-top: 66px;
  }

  .market-topbar {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    min-height: 62px;
    padding: 9px 10px;
    overflow: visible;
  }

  .market-topbar .market-mobile-brand {
    flex: 1 1 auto;
    min-height: 28px;
    align-items: center;
    min-width: 0;
  }

  .market-topbar .market-mobile-brand img {
    width: 152px;
    height: 30px;
  }

  .market-sidebar {
    width: min(86vw, 312px);
    padding: 16px 14px;
    overflow-y: auto;
  }

  .market-brand {
    padding-right: 46px;
  }

  .market-brand .market-brand-logo {
    max-width: 190px;
    height: 54px;
  }

  .market-hero,
  .market-section,
  .market-category-panel {
    padding: 0 12px;
    margin-top: 18px;
  }

  .market-hero-panel,
  .hero-gradient {
    padding: 18px !important;
  }

  .market-category-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .market-category-link {
    min-height: 46px;
    padding: 11px 12px;
    font-size: 14px;
  }

  .market-title {
    font-size: 31px;
    line-height: 1.04;
  }

  .market-copy {
    font-size: 15px;
    line-height: 1.55;
  }

  .section-title {
    font-size: 26px !important;
    line-height: 1.15 !important;
    margin-bottom: 18px !important;
  }

  h1.text-5xl,
  h1.text-6xl {
    font-size: 30px !important;
    line-height: 1.12 !important;
  }

  h2.text-3xl,
  h2.text-4xl,
  h2.text-5xl {
    font-size: 24px !important;
    line-height: 1.18 !important;
  }

  .text-xl {
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  .text-lg {
    font-size: 15px !important;
    line-height: 1.45 !important;
  }

  section.max-w-6xl,
  section.max-w-4xl,
  main.max-w-6xl,
  main.max-w-4xl,
  main.container,
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    margin-top: 18px !important;
  }

  .px-6 {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .p-8 {
    padding: 18px !important;
  }

  .p-6 {
    padding: 14px !important;
  }

  .mt-20,
  .mt-16,
  .mt-12 {
    margin-top: 22px !important;
  }

  .grid {
    min-width: 0;
  }

  .stats-grid,
  .info-grid,
  .filter-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .action-buttons,
  .flex.justify-center,
  .flex.gap-3,
  .flex.gap-4 {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .flex.justify-center.space-x-4 {
    gap: 8px !important;
  }

  .space-x-4 > :not([hidden]) ~ :not([hidden]) {
    margin-left: 0 !important;
  }

  .btn-primary,
  .btn-success,
  .btn-secondary,
  .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    min-height: 40px;
    padding: 10px 12px !important;
  }

  .card,
  .popular-card,
  .feature-card,
  .info-card,
  .filter-card,
  .admin-card,
  .request-card {
    width: 100%;
    min-width: 0;
  }

  .product-image,
  .account-image {
    height: 160px !important;
  }

  #slider-wrapper {
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  #slider-track > div,
  .min-w-\[350px\] {
    min-width: min(82vw, 310px) !important;
  }

  table,
  .overflow-x-auto {
    max-width: 100%;
  }

  input,
  select,
  textarea {
    max-width: 100%;
    font-size: 16px !important;
  }
}

