@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600&family=Montserrat:wght@600;700&display=swap');

body.dark-theme {
  background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
  color: #fff;
  margin: 0;
  font-family: 'Roboto', sans-serif;
  position: relative;
  overflow-x: hidden;
}

.starry-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%);
  overflow: visible;
}

#stars, #stars2, #stars3 {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: transparent;
}

#stars {
  width: 1px;
  height: 1px;
  box-shadow:
    -60vw 2vh 1px 0px #fff,
    60vw 5vh 1px 1px #8b5cf6,
    -50vw 8vh 1px 0px #00b7eb,
    50vw 10vh 1px 1px #fff,
    -40vw 12vh 1px 0px #694198,
    40vw 15vh 1px 1px #fff,
    -30vw 18vh 1px 0px #5865f2,
    30vw 20vh 1px 1px #fff,
    -20vw 22vh 1px 0px #8b5cf6,
    20vw 25vh 1px 1px #fff,
    -10vw 28vh 1px 0px #00b7eb,
    10vw 30vh 1px 1px #fff,
    -65vw 32vh 1px 0px #694198,
    65vw 35vh 1px 1px #fff,
    -55vw 38vh 1px 0px #5865f2,
    55vw 40vh 1px 1px #fff,
    -45vw 42vh 1px 0px #8b5cf6,
    45vw 45vh 1px 1px #fff,
    -35vw 48vh 1px 0px #00b7eb,
    35vw 50vh 1px 1px #fff,
    -25vw 52vh 1px 0px #694198,
    25vw 55vh 1px 1px #fff,
    -15vw 58vh 1px 0px #5865f2,
    15vw 60vh 1px 1px #fff,
    -5vw 62vh 1px 0px #8b5cf6,
    5vw 65vh 1px 1px #fff,
    -60vw 68vh 1px 0px #00b7eb,
    60vw 70vh 1px 1px #fff,
    -50vw 72vh 1px 0px #694198,
    50vw 75vh 1px 1px #fff,
    -40vw 78vh 1px 0px #5865f2,
    40vw 80vh 1px 1px #fff,
    -30vw 82vh 1px 0px #8b5cf6,
    30vw 85vh 1px 1px #fff,
    -20vw 88vh 1px 0px #00b7eb,
    20vw 90vh 1px 1px #fff,
    -10vw 92vh 1px 0px #694198,
    10vw 95vh 1px 1px #fff,
    -65vw 98vh 1px 0px #5865f2,
    65vw 100vh 1px 1px #fff,
    -55vw 5vh 1px 0px #8b5cf6,
    55vw 10vh 1px 1px #fff,
    -45vw 15vh 1px 0px #00b7eb,
    45vw 20vh 1px 1px #fff,
    -35vw 25vh 1px 0px #694198,
    35vw 30vh 1px 1px #fff,
    -25vw 35vh 1px 0px #5865f2,
    25vw 40vh 1px 1px #fff,
    -15vw 45vh 1px 0px #8b5cf6,
    15vw 50vh 1px 1px #fff;
  animation: animStar 50s linear infinite, twinkle 2s ease-in-out infinite;
}

#stars2 {
  width: 2px;
  height: 2px;
  box-shadow:
    -60vw 5vh 2px 1px #fff,
    60vw 10vh 2px 1px #8b5cf6,
    -50vw 15vh 2px 0px #00b7eb,
    50vw 20vh 2px 1px #fff,
    -40vw 25vh 2px 0px #694198,
    40vw 30vh 2px 1px #fff,
    -30vw 35vh 2px 0px #5865f2,
    30vw 40vh 2px 1px #fff,
    -20vw 45vh 2px 0px #8b5cf6,
    20vw 50vh 2px 1px #fff,
    -10vw 55vh 2px 0px #00b7eb,
    10vw 60vh 2px 1px #fff,
    -65vw 65vh 2px 0px #694198,
    65vw 70vh 2px 1px #fff,
    -55vw 75vh 2px 0px #5865f2,
    55vw 80vh 2px 1px #fff,
    -45vw 85vh 2px 0px #8b5cf6,
    45vw 90vh 2px 1px #fff,
    -35vw 95vh 2px 0px #00b7eb,
    35vw 100vh 2px 1px #fff,
    -25vw 10vh 2px 0px #694198,
    25vw 15vh 2px 1px #fff,
    -15vw 20vh 2px 0px #5865f2,
    15vw 25vh 2px 1px #fff,
    -5vw 30vh 2px 0px #8b5cf6;
  animation: animStar 100s linear infinite, twinkle 3s ease-in-out infinite;
}

#stars3 {
  width: 3px;
  height: 3px;
  box-shadow:
    -60vw 10vh 3px 2px #fff, -60vw 10vh 0 0 8px #fff,
    60vw 15vh 3px 1px #8b5cf6, 60vw 15vh 0 0 8px #8b5cf6,
    -50vw 20vh 3px 2px #00b7eb, -50vw 20vh 0 0 8px #00b7eb,
    50vw 25vh 3px 1px #fff, 50vw 25vh 0 0 8px #fff,
    -40vw 30vh 3px 2px #694198, -40vw 30vh 0 0 8px #694198,
    40vw 35vh 3px 1px #fff, 40vw 35vh 0 0 8px #fff,
    -30vw 40vh 3px 2px #5865f2, -30vw 40vh 0 0 8px #5865f2,
    30vw 45vh 3px 1px #fff, 30vw 45vh 0 0 8px #fff,
    -20vw 50vh 3px 2px #8b5cf6, -20vw 50vh 0 0 8px #8b5cf6,
    20vw 55vh 3px 1px #fff, 20vw 55vh 0 0 8px #fff,
    -10vw 60vh 3px 2px #00b7eb, -10vw 60vh 0 0 8px #00b7eb,
    10vw 65vh 3px 1px #fff, 10vw 65vh 0 0 8px #fff,
    -65vw 70vh 3px 2px #694198, -65vw 70vh 0 0 8px #694198,
    65vw 75vh 3px 1px #fff, 65vw 75vh 0 0 8px #fff,
    -55vw 80vh 3px 2px #5865f2, -55vw 80vh 0 0 8px #5865f2;
  animation: animStar 150s linear infinite, twinkle 4s ease-in-out infinite, pulse 6s ease-in-out infinite;
}

@keyframes animStar {
  from { transform: translateY(0px); }
  to { transform: translateY(-2000px); }
}

@keyframes twinkle {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

@keyframes pulse {
  0% { transform: translateX(-50%) scale(1) rotate(0deg); }
  50% { transform: translateX(-50%) scale(1.2) rotate(10deg); }
  100% { transform: translateX(-50%) scale(1) rotate(0deg); }
}

.top-nav {
  background-color: #23272a;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #40444b;
  position: relative;
  z-index: 1;
}

.site-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.auth-section {
  position: relative;
}

.navTab {
  list-style: none;
  display: flex;
  align-items: center;
}

#account-style {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #d8bfff;
}

#NavigationAccountUsername {
  margin-right: 10px;
}

.username-glow {
  color: #FCFCFC;
  text-shadow: 0px 0.5px 1px #fcfcfc99, 0px 2px 3px #000c, 0px 4px 4px #000c,
               0px 0px 5px #fcfcfccc, 0px 1px 5px #fcfcfccc, 0px 2px 5px #fcfcfc99,
               0px 3px 5px #fcfcfc66, 0px 4px 5px #fcfcfc66;
}

.user-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #2c2f33;
  border: 1px solid #40444b;
  border-radius: 5px;
  padding: 5px 0;
  z-index: 1000;
  min-width: 150px;
}

.user-menu .menu-item {
  display: block;
  color: #b9bbbe;
  padding: 8px 16px;
  text-decoration: none;
  font-size: 16px;
  cursor: pointer;
}

.user-menu .menu-item:hover {
  background-color: #40444b;
  color: #fff;
}

.user-menu .copy-id:hover {
  background-color: #5865f2;
}

.balance-text {
  display: block;
  color: #b9bbbe;
  padding: 8px 16px;
  font-size: 14px;
  text-decoration: none;
}

.account-menu-sep {
  height: 1px;
  background-color: #40444b;
  margin: 5px 0;
}

.mainContent {
  overflow: hidden;
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 40px 20px;
  min-height: 780px;
  background: transparent;
  z-index: 1;
}

.inline-flex {
  display: inline-flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.gap-2 {
  gap: 0.5rem;
}

.whitespace-nowrap {
  white-space: nowrap;
}

.font-medium {
  font-weight: 500;
}

.transition-colors {
  transition: background-color 0.2s ease;
}

.focus-visible\:outline-none:focus-visible {
  outline: none;
}

.focus-visible\:ring-1:focus-visible {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.disabled\:pointer-events-none:disabled {
  pointer-events: none;
}

.disabled\:opacity-50:disabled {
  opacity: 0.5;
}

[\&_svg]\:pointer-events-none svg {
  pointer-events: none;
}

[\&_svg]\:size-4 svg {
  width: 1rem;
  height: 1rem;
}

[\&_svg]\:shrink-0 svg {
  flex-shrink: 0;
}

.border {
  border-width: 1px;
}

.border-input {
  border-color: #40444b;
}

.bg-background {
  background-color: #2c2f33;
}

.hover\:bg-accent:hover {
  background-color: #40444b;
}

.hover\:text-accent-foreground:hover {
  color: #fff !important;
}

.h-8 {
  height: 2rem;
}

.rounded-md {
  border-radius: 0.375rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.text-xs {
  font-size: 0.75rem;
  color: #fff;
}

.sm\:h-9 {
  height: 2.25rem;
}

.sm\:px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.sm\:text-sm {
  font-size: 0.875rem;
  color: #fff;
}

.shadow-none {
  box-shadow: none;
}

[\@media\(max-width:374px\)]\:hidden {
  @media (max-width: 374px) {
    display: none;
  }
}

button#actionButton {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  background-color: #40444b;
  color: #fff;
  border: none;
  border-radius: 5px;
}

button#actionButton:hover {
  background-color: #5865f2;
}
/* Ensure the sidebar matches the marketplace style */
.marketSidebar {
  background: linear-gradient(135deg, #2c2f33 0%, #1a1d21 100%);
  padding: 20px;
  border-radius: 10px;
  color: #b9bbbe;
  width: 250px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  height: fit-content;
  min-height: 0;
}

/* Balance display (keep existing styles, adjust if needed) */
.user-balance-block {
  text-align: center;
}

.subtitle {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: #a7a7a7;
  font-weight: 600;
}

.balance-value {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.balance-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  color: #fff;
  font-weight: 700;
}

.svgIcon--rub {
  margin-left: 5px;
  color: #43b581;
}

/* Sidebar menu for tabs */
.marketSidebarMenu {
  padding: 15px 0;
  border-top: 1px solid #40444b;
  display: flex;
  flex-direction: column; /* Stack tabs vertically */
  gap: 10px; /* Space between tabs */
}

/* Tab links */
.tab-link {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: #b9bbbe;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  pointer-events: auto;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.product-card {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.product-card.show {
  opacity: 1;
}
.loading {
  text-align: center;
  color: #fff;
}
.no-products, .error {
  color: #fff;
  text-align: center;
}
.tab-link:hover {
  background: #40444b; /* Match category-link hover */
  color: #fff;
  transform: translateX(5px); /* Same shift animation as category-link */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); /* Subtle shadow on hover */
}

/* Active tab state */
.tab-link.active {
  background: #43b581; /* Green to match theme accents */
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* SVG icons */
.tab-link .svgIcon {
  margin-right: 10px;
  width: 20px;
  height: 20px;
  stroke: #b9bbbe; /* Default icon color */
  transition: stroke 0.3s ease;
}

.tab-link:hover .svgIcon,
.tab-link.active .svgIcon {
  stroke: #fff; /* White icon on hover/active */
}
.sidebar {
  width: 256px;
  background: linear-gradient(135deg, #2c2f33 0%, #1a1d21 100%);
  color: #b9bbbe;
  display: flex;
  flex-direction: column;
  height: 100vh;
  transition: width 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

.sidebar.collapsed {
  width: 64px;
}

.sidebar.collapsed .sidebar-text {
  display: none;
}

.sidebar.collapsed .sidebar-icon {
  display: block;
}

.sidebar .sidebar-text {
  display: inline;
}

.sidebar .sidebar-icon {
  display: inline-block;
}

.sidebar nav ul li button {
  width: 100%;
  text-align: left;
  padding: 8px;
  color: white;
  background: none;
  border: none;
  display: flex;
  align-items: center;
}

.sidebar nav ul li button:hover {
  background-color: #2d3748;
}

.sidebar svg {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}



.main-section {
  display: block;
}

.main-section.hidden {
  display: none;
}




.SubmitButton {
  padding: 8px 16px;
  background-color: #43b581;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.SubmitButton:disabled {
  background-color: #a0aec0;
  cursor: not-allowed;
}

.SubmitButton.bg-red-500 {
  background-color: #e53e3e;
}
.SubmitButton.bg-red-500:hover {
  background-color: #c53030;
}

.SubmitButton.bg-gray-500 {
  background-color: #40444b;
}
.SubmitButton.bg-gray-500:hover {
  background-color: #363636;
}



th, td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}


/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
}


.modal-content label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.modal-content .input-field {
  margin-bottom: 16px;
}

/* Pagination */
#pagination, #purchasesPagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
}

#pagination button, #purchasesPagination button {
  margin: 0 8px;
}
.marketSidebar {
  background: linear-gradient(135deg, #2c2f33 0%, #1a1d21 100%);
  padding: 20px;
  border-radius: 10px;
  color: #b9bbbe;
  width: 250px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  height: fit-content;
  min-height: 0;
}

.marketUserPanel {
  background: linear-gradient(135deg, #23272a 0%, #1c2024 100%);
  border-radius: 10px;
  overflow: hidden;
}

.marketSidebarTopPanel {
  padding: 20px;
  position: relative;
}

.user-balance-block {
  text-align: center;
}

.subtitle {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: #a7a7a7;
  font-weight: 600;
}

.balance-value {
  margin-top: 10px;
}

.balance-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  color: #fff;
  font-weight: 700;
}

.svgIcon--rub {
  margin-left: 5px;
  color: #43b581;
}

.sidebar_background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.5) 100%);
  z-index: -1;
  border-radius: 10px;
}

.marketSidebarMenu {
  padding: 15px 0;
}

.marketSidebarMenu a.category-link {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: #b9bbbe;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  pointer-events: auto;
}

.marketSidebarMenu a.category-link:hover {
  background-color: #40444b;
  color: #fff;
  transform: translateX(5px);
}

.marketSidebarMenu a.category-link.active {
  background-color: #40444b;
  color: #fff;
}

.svgIcon {
  margin-right: 10px;
}

.bordered-top {
  border-top: 1px solid #40444b;
}

.sectionMain {
  flex-grow: 0;
  background: linear-gradient(135deg, #2c2f33 0%, #1a1d21 100%);
  padding: 30px;
  border-radius: 15px;
  color: #b9bbbe;
  max-width: 1200px;
  width: 100%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  height: fit-content;
  min-height: 0;
}

.marketBalanceContainer {
  background: linear-gradient(135deg, #23272a 0%, #1c2024 100%);
  padding: 25px;
  border-radius: 10px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.titleBar {
  margin-bottom: 20px;
  text-align: center;
}

.titleBar h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  color: #fff;
  margin: 0;
}

.no-products, .error {
  font-family: 'Roboto', sans-serif;
  font-size: 1em;
  color: #b9bbbe;
  text-align: center;
  padding: 20px;
  margin: 0 auto;
  max-width: 600px;
}

.balanceSection {
  margin-bottom: 25px;
}

.balanceHeader h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  margin-bottom: 15px;
  color: #fff;
  font-weight: 600;
}

.balanceInput input,
.balanceInput select,
.balanceInput textarea {
  padding: 12px;
  border: 2px solid #40444b;
  border-radius: 8px;
  background-color: #2d2d2d;
  color: #fff;
  max-width: 250px;
  margin: 0 auto;
  display: block;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  transition: border-color 0.3s ease;
}

.balanceInput input:focus,
.balanceInput select:focus,
.balanceInput textarea:focus {
  border-color: #5865f2;
  outline: none;
}

.paymentMethods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.methodBox {
  padding: 20px;
  background-color: #2d2d2d;
  border: 2px solid #40444b;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
}

.methodBox:hover {
  background-color: #363636;
  border-color: #5865f2;
}

.methodBox.selected {
  background-color: #40444b;
  border-color: #5865f2;
  color: #fff;
}

.cryptoSelection {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.cryptoOption {
  padding: 12px;
  background-color: #2d2d2d;
  border: 1px solid #40444b;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
}

.cryptoOption:hover {
  background-color: #363636;
  border-color: #5865f2;
}

.cryptoOption.selected {
  background-color: #40444b;
  border-color: #5865f2;
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  margin-top: 20px;
  overflow: hidden;
}

.product-card {
  background-color: #2d2d2d;
  border: 2px solid #40444b;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
}

.product-card.show {
  opacity: 1;
  transform: translateY(0);
}

.product-card.empty {
  background-color: #252525;
  border: 2px solid #40444b;
}

.product-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid #40444b;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-info {
  padding: 10px;
}

.product-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1em;
  color: #fff;
  margin: 0 0 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-price, .product-stock {
  font-family: 'Roboto', sans-serif;
  font-size: 0.9em;
  color: #43b581;
  margin: 3px 0;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  opacity: 1;
}

.modal-content, .notification-content {
  background: #2d2d2d;
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  border-radius: 10px;
  border: 2px solid #43b581;
  color: #fff;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  overflow: hidden;
  height: fit-content;
}

.modal.show .modal-content, .modal.show .notification-content {
  transform: scale(1);
}

.modal-content.large {
  max-width: 800px;
  width: 90%;
}

.modal-content.medium {
  max-width: 600px;
  width: 90%;
}

.modal-content.small {
  max-width: 400px;
  width: 90%;
}

.modal-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  color: #fff;
  margin: 0 0 15px;
}

.modal-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  color: #fff;
  margin: 15px 0 10px;
}

.modal-content p {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: #b9bbbe;
  line-height: 1.5;
  margin: 0 0 20px;
}

.modal-images {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.modal-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  object-position: center;
  border-radius: 5px;
  border: 1px solid #40444b;
  cursor: pointer;
}

.modal-image:hover {
  border-color: #43b581;
}

.quantity-container {
  margin: 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 5px;
}

.quantity-input {
  padding: 8px;
  border: 2px solid #40444b;
  border-radius: 5px;
  background-color: #2d2d2d;
  color: #fff;
  width: 60px;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  pointer-events: none;
}

.quantity-input:focus {
  border-color: #5865f2;
  outline: none;
}

.quantity-btn {
  padding: 8px 12px;
  background-color: #40444b;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.quantity-btn:hover {
  background-color: #43b581;
}

.quantity-btn:disabled {
  background-color: #2d2d2d;
  cursor: not-allowed;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.SubmitButton {
  padding: 10px 20px;
  background-color: #43b581;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.SubmitButton:hover {
  background-color: #36a070;
}

.SubmitButton.secondary {
  background-color: #40444b;
}

.SubmitButton.secondary:hover {
  background-color: #363636;
}

.SubmitButton:disabled {
  background-color: #40444b;
  cursor: not-allowed;
}

.loading {
  font-family: 'Roboto', sans-serif;
  font-size: 1em;
  color: #b9bbbe;
  text-align: center;
  padding: 20px;
}

.image-viewer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-viewer.show {
  opacity: 1;
}

.image-viewer-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  padding: 20px;
  border: 2px solid #43b581;
  border-radius: 10px;
  background: #2d2d2d;
}

.viewer-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-viewer.show .viewer-image {
  opacity: 1;
}

.viewer-nav, .viewer-close {
  position: fixed;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: 2px solid #43b581;
  padding: 10px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.viewer-nav:hover, .viewer-close:hover {
  background: rgba(67, 181, 129, 0.9);
}

.viewer-nav.prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.viewer-nav.next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.viewer-close {
  top: 20px;
  right: 20px;
  font-size: 18px;
  padding: 5px 10px;
}

.notification-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1500;
  align-items: center;
  justify-content: center;
}

.notification-content {
  background: #2d2d2d;
  max-width: 400px;
  margin: 20px;
  padding: 20px;
  border-radius: 10px;
  border: 2px solid #43b581;
  color: #fff;
  text-align: center;
}

.notification-content p {
  font-family: 'Roboto', sans-serif;
  font-size: 1em;
  margin: 0 0 20px;
}

.nav-links {
  display: flex;
  gap: 20px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
}

.nav-link {
  color: #b9bbbe;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #5865f2;
  transition: width 0.2s ease;
}

.nav-link.partner::after {
  background-color: #8b5cf6;
}

.nav-link:hover::after,
.nav-link:active::after {
  width: 100%;
}

.nav-link:hover {
  color: #fff;
}

.login-button {
  padding: 8px 16px;
  background-color: #43b581;
  color: #fff;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.login-button:hover {
  background-color: #36a070;
}

.progress-container {
  position: absolute;
  right: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.progress-text {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #b9bbbe;
  margin-bottom: 5px;
}

.progress-bar {
  width: 150px;
  height: 8px;
  background-color: #40444b;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #43b581;
  transition: width 0.3s ease;
}

.contact-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 15px;
}

.contact-button {
  padding: 8px 16px;
  background-color: #5865f2;
  color: #fff;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.contact-button:hover {
  background-color: #4752c4;
}

.contact-button.partner {
  background-color: #8b5cf6;
}

.contact-button.partner:hover {
  background-color: #7c3aed;
}

.contact-divider {
  height: 1px;
  background-color: #40444b;
  margin: 15px 0;
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .progress-container {
    right: 120px;
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .nav-links {
    gap: 10px;
  }
  .progress-container {
    right: 100px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    flex-direction: column;
    position: static;
    transform: none;
    margin: 10px 0;
  }
  .progress-container {
    position: static;
    margin: 10px 0;
    align-items: center;
  }
}
.purchases-container {
  margin-top: 20px;
}

.purchases-table {
  width: 100%;
  border-collapse: collapse;
  background: #2a2a2a;
  color: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.purchases-table th,
.purchases-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #444;
}

.purchases-table th {
  background: #333;
  font-weight: bold;
}

.purchases-table tr:hover {
  background: #3a3a3a;
}

.purchases-table .download-btn {
  background: #28a745;
  color: #fff;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.purchases-table .download-btn:hover {
  background: #218838;
}

.purchases-table .download-btn:disabled {
  background: #555;
  cursor: not-allowed;
}

.loading {
  text-align: center;
  color: #888;
  margin: 20px 0;
}

.purchases-container {
  margin-top: 20px;
}

.purchases-table {
  width: 100%;
  border-collapse: collapse;
  background: #2a2a2a;
  color: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.purchases-table th,
.purchases-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #444;
}

.purchases-table th {
  background: #333;
  font-weight: bold;
}

.purchases-table tr:hover {
  background: #3a3a3a;
}

.download-btn, .show-btn {
  background: #28a745;
  color: #fff;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.download-btn:hover, .show-btn:hover {
  background: #218838;
}

.download-btn:disabled, .show-btn:disabled {
  background: #555;
  cursor: not-allowed;
}

.purchase-data-content {
  max-height: 400px;
  overflow-y: auto;
  margin: 20px 0;
  padding: 10px;
  background: #333;
  border-radius: 4px;
}

.purchase-data-item {
  margin: 5px 0;
  padding: 8px;
  background: #444;
  border-radius: 4px;
  word-break: break-all;
}

.loading {
  text-align: center;
  color: #888;
  margin: 20px 0;
}

#noPurchases {
  text-align: center;
  color: #888;
  margin-top: 20px;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.modal.show {
  opacity: 1;
}

.modal-content {
  background: #2a2a2a;
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  position: relative;
  transform: translateY(-50px);
  transition: transform 0.3s ease;
}

.modal-content.medium {
  max-width: 600px;
}

.modal-content.show {
  transform: translateY(0);
}

.modal-buttons {
  text-align: right;
  margin-top: 20px;
}

.SubmitButton {
  background: #28a745;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.SubmitButton:hover {
  background: #218838;
}
.reviews-ticker-section {
  width: 100%;
  max-width: 1490px; /* Matches mainContent's max-width (1200px sectionMain + 250px marketSidebar + 40px gap/padding) */
  margin: 0 auto;
  padding: 20px 20px 0;
  background: transparent;
}

.reviews-ticker-container {
  width: 100%;
  padding: 10px 0;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
}

.reviews-ticker {
  display: flex;
  animation: scroll 60s linear infinite;
}

.review-item-ticker {
  display: inline-flex;
  align-items: center;
  margin-right: 20px;
  padding: 10px 15px;
  background: #2a2a2a;
  border-radius: 8px;
  min-width: 200px;
  max-width: 250px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.review-content {
  flex: 1;
}

.review-content .review-user {
  font-weight: bold;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-content .review-text {
  font-size: 12px;
  color: #ccc;
  margin: 5px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 72px; /* 4 lines at approximately 18px per line */
}

.review-content .review-date {
  font-size: 10px;
  color: #888;
  margin-top: 5px;
  white-space: nowrap;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .reviews-ticker-section {
    padding: 10px 10px 0;
  }

  .review-item-ticker {
    min-width: 180px;
    max-width: 220px;
    padding: 8px 12px;
  }

  .review-content .review-user {
    font-size: 12px;
  }

  .review-content .review-text {
    font-size: 11px;
    -webkit-line-clamp: 3;
    max-height: 54px; /* 3 lines at approximately 18px per line */
  }

  .review-content .review-date {
    font-size: 9px;
  }
}
.notification-modal .notification-content {
  background: #2a2a2a;
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  text-align: center;
}

#noPurchases {
  text-align: center;
  color: #888;
  margin-top: 20px;
}
