/* cleaned from deposit.css */

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #0d0f1a;
  color: #f0f0f0;
  line-height: 1.6;
  overflow-x: hidden;
}

section {
  pointer-events: none;
  padding-left: 6rem;
  border-bottom: 1px solid #1f2937;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.vault-heading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
  background: #1f2937;
  border-bottom: 1px solid #374151;
}

.vault-heading button {
  background: #2563eb;
  color: #f9fafb;
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  flex: 0 1 auto;
}

.vault-heading button:hover {
  background: #1e40af;
  transform: translateY(-2px);
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.5rem;
}

.inventory-item {
  text-align: center;
  font-size: 0.75rem;
}

.inventory-item img {
  width: 100%;
  border-radius: 4px;
}

.vault-card .card-icon img {
  max-width: 5rem;
  max-height: 5rem;
  display: block;
}

.vault-card .card-info {
  min-width: 0;
  overflow: hidden;
}

.vault-card .card-value,
.vault-card .card-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vault-contents-card .card-info {
  width: 100%;
  text-align: center;
  overflow: hidden;
}

.vault-contents-card .card-value,
.vault-contents-card .card-label {
  white-space: normal;
  word-break: break-word;
  margin-top: 0.5rem;
}

.vault-full-card {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
  width: 100%;
  position: relative;
  z-index: 2;
}

.vault-card--large {
  background: rgba(31, 41, 55, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.vault-card--large .card-icon {
  display: none;
}

.vault-card--large .card-value {
  font-size: 3rem;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.vault-card--large .card-label {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.75;
}

.deposit-inventory-grid {
  display: grid;
  flex-wrap: wrap;
  gap: 1.4rem;
  justify-content: center;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, 250px);
  width: 100%;
  max-width: calc(250px * 100 + 1.4rem * 3);
}

.deposit-item-card {
  position: relative;
  width: 250px;
  min-width: 250px;
  max-width: 100vw;
  height: 340px;
  border-radius: 16px;
  background: #191e24;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.16);
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s, border 0.2s;
  cursor: pointer;
  overflow: hidden;
  border: 2px solid black;
  margin-bottom: 0.5em;
  background-color: #191e24;
}

.deposit-item-card.selected {
  border: 2px solid #1a6eff;
  box-shadow: 0 0 24px #1a6eff80;
}

.deposit-item-card:hover {
  box-shadow: 0 8px 36px #3f6cf580;
  transform: translateY(-4px) scale(1.03);
}

.deposit-item-header {
  text-align: center;
  margin: 20px 0 6px 0;
  width: 100%;
}

.deposit-item-title {
  font-size: 1.11rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.1em;
  line-height: 1.18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deposit-item-subtitle {
  font-size: 0.98rem;
  color: #b5b5b5;
  margin-bottom: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deposit-item-image-wrap {
  width: 90%;
  height: 120px;
  margin: 0 auto 8px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  position: relative;
}

.deposit-item-image {
  max-width: 100%;
  max-height: 110px;
  margin: 0 auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px #0008);
}

.deposit-float {
  text-align: center;
  font-family: "Fira Mono", "Consolas", monospace;
  font-size: 1.03em;
  color: #50ffaf;
  margin: 8px 0 5px 0;
}

.deposit-item-price-label {
  font-size: 0.97em;
  color: #bbb;
  text-align: center;
  margin: 5px 0 1px 0;
}

.deposit-item-price {
  text-align: center;
  font-size: 1.34em;
  font-weight: 800;
  color: #ffd94d;
  letter-spacing: 0.01em;
  margin: 2px 0 8px 0;
}

.deposit-rarity-consumer {
  background: linear-gradient(0deg, #757575 0%, #434343 40%, transparent 100%);
}

.deposit-rarity-industrial {
  background: linear-gradient(0deg, #395dff 0%, #29347c 40%, transparent 100%);
}

.deposit-rarity-milspec {
  background: linear-gradient(0deg, #4b69ff 0%, #2442b6 40%, transparent 100%);
}

.deposit-rarity-restricted {
  background: linear-gradient(0deg, #8847ff 0%, #3c1e63 40%, transparent 100%);
}

.deposit-rarity-classified {
  background: linear-gradient(0deg, #d32ee6 0%, #4a064a 40%, transparent 100%);
}

.deposit-rarity-covert {
  background: linear-gradient(0deg, #eb4b4b 0%, #7c2323 40%, transparent 100%);
}

.deposit-rarity-contraband {
  background: linear-gradient(0deg, #ffd700 0%, #856500 40%, transparent 100%);
}

.deposit-rarity-knife,
.deposit-rarity-gloves {
  background: linear-gradient(0deg, #ffd700 0%, #856500 40%, transparent 100%);
}

.default-bg {
  background-color: #2e2e2e;
  padding: 0.75em 1em;
}

.card-header .deposit-item-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
}

.card-header .deposit-item-subtitle {
  font-size: 0.9rem;
  color: #b5b5b5;
  margin-top: 0.25em;
}

.gradient-bg {
  background: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1em;
}

.card-image img {
  max-width: 100%;
  height: auto;
}

.card-separator {
  border: none;
  height: 1px;
  background-color: #444;
  margin: 0;
}

.card-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75em 1em;
}

.card-footer .deposit-item-price-label {
  font-size: 0.9rem;
  color: #bbb;
}

.card-footer .deposit-item-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffd94d;
  margin-top: 0.25em;
}

.vault-heading input,
.vault-heading button {
  margin: 0;
}

.vault-heading input {
  flex: 1 1 300px;
  max-width: 100%;
}

.vault-heading {
  transition: margin 0.2s;
}

.YourInventory{
  margin-left: 6rem;
}

.deposit-inventory-section {
  padding: 0 1rem 2rem;
  pointer-events: all;
  display: flex;
  justify-content: center;
}

.inventory-fees {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  background: #1f2937;
  border-radius: 12px;
  margin: 1.5rem auto;
  max-width: 800px;
  width: calc(100% - 2rem);
}

.inventory-fees h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  color: #f0f0f0;
}

.inventory-fees .fee-info {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.inventory-fees .fee-info > div {
  white-space: nowrap;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  color: #9ca3af;
}

.inventory-fees-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 0;
  box-sizing: border-box;
  background: #1f2937;
}

.inventory-fees-bar h2 {
  margin: 0;
  color: #f0f0f0;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.inventory-fees-bar .fee-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.inventory-fees-bar .fee-info > div {
  white-space: nowrap;
  color: #9ca3af;
  font-size: 0.9rem;
}

button.sendTradeBtn {
    font-size: 1.05em;
    padding: 0.45em 0.8em;
    border-radius: 8px;
    border: 1.5px solid #374151;
    margin: 0;
    margin-right: 2rem;
}

@media (max-width: 480px) {
  .vault-heading {
    flex-direction: column;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    box-sizing: border-box;
  }

  .vault-heading input,
  .vault-heading button {
    width: 100%;
  }

  #tradeUrlInput {
    flex: none;
    height: 2.5rem;
    max-height: 2.5rem;
    box-sizing: border-box;
  }

  .vault-heading > * {
    margin: 0;
  }
}

@media (max-width: 500px) {
  #metamaskModal > div {
    padding: 16px;
    font-size: 1rem;
  }
}

@media (max-width: 900px) {
  .YourInventory{
    margin-left: 0rem;
  }

  .vault-heading.no-h1-margin {
    margin-left: 0;
  }

  #deposit-fees,
  #inventory-fees-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }

  #deposit-fees .fee-info,
  #inventory-fees-bar .fee-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  #deposit-fees h2,
  #inventory-fees-bar h {
    margin: 0;
    padding: 0;
  }
}


