/* === StorageView === */

.container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sectionLabel {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--chrome-silver);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}


.loading {
  font-family: var(--font-space-grotesk), 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  color: var(--hull-grey);
  text-align: center;
  padding: 1rem 0.5rem;
}


/* Gifts */
.giftsSection {
  background: rgba(155, 89, 182, 0.06);
  border: 1px solid rgba(155, 89, 182, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.giftToggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.45rem 0.55rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--void-purple);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.15s ease;
}

.giftToggle:hover {
  background: rgba(155, 89, 182, 0.08);
}

.giftBadge {
  font-size: 0.55rem;
  font-weight: 700;
  background: rgba(155, 89, 182, 0.25);
  color: var(--void-purple);
  border-radius: 8px;
  padding: 0.05rem 0.35rem;
  min-width: 1rem;
  text-align: center;
}

.giftList {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 0.55rem 0.45rem;
}

.giftCard {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.4rem 0.5rem;
  background: rgba(10, 14, 23, 0.4);
  border: 1px solid rgba(155, 89, 182, 0.12);
  border-radius: 4px;
}

.giftHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.giftSender {
  font-family: var(--font-space-grotesk), 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--star-white);
}

.giftTime {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  color: var(--hull-grey);
}

.giftMessage {
  font-family: var(--font-space-grotesk), 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  color: var(--chrome-silver);
  font-style: italic;
  padding: 0.15rem 0;
}

.giftContents {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.giftItems {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.63rem;
  color: var(--plasma-cyan);
}

.giftShips {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--plasma-cyan);
}

.giftCredits {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.63rem;
  color: var(--warning-yellow);
}

/* Sections */
.section {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.5rem;
  background: rgba(61, 90, 108, 0.04);
  border: 1px solid rgba(61, 90, 108, 0.12);
  border-radius: 4px;
}

.sectionHeader {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.63rem;
  font-weight: 700;
  color: var(--chrome-silver);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(42, 58, 74, 0.4);
}

/* Credits */
.creditsDisplay {
  display: flex;
  gap: 0.5rem;
}

.creditRow {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.3rem 0.4rem;
  background: rgba(10, 14, 23, 0.4);
  border-radius: 3px;
}

.creditLabel {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--hull-grey);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.creditValue {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--warning-yellow);
}

.creditActions {
  display: flex;
  gap: 0.35rem;
}

.creditForm {
  flex: 1;
  display: flex;
  gap: 0.25rem;
}


/* Item list */
.itemList {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.itemRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 0.4rem;
  background: rgba(10, 14, 23, 0.3);
  border: 1px solid rgba(42, 58, 74, 0.3);
  border-radius: 3px;
  transition: border-color 0.15s ease;
}

.itemRow:hover {
  border-color: rgba(61, 90, 108, 0.4);
}

.itemInfo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  flex: 1;
}

.itemName {
  font-family: var(--font-space-grotesk), 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--star-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.itemQty {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.63rem;
  color: var(--chrome-silver);
  flex-shrink: 0;
}

.itemSize {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--hull-grey);
  margin-left: 0.25rem;
}

.itemAction {
  display: flex;
  gap: 0.2rem;
  align-items: center;
  flex-shrink: 0;
}

.qtyInput {
  width: 52px;
  min-width: 52px;
  background: rgba(10, 14, 20, 0.6);
  border: 1px solid var(--dim-grey);
  border-radius: 3px;
  padding: 0.2rem 0.3rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--star-white);
  outline: none;
  text-align: right;
}

.qtyInput:focus {
  border-color: var(--plasma-cyan);
}

/* Ship list */
.shipList {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.shipCard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.45rem;
  background: rgba(10, 14, 23, 0.3);
  border: 1px solid rgba(42, 58, 74, 0.3);
  border-radius: 3px;
}

.shipName {
  font-family: var(--font-space-grotesk), 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--star-white);
}

.shipMeta {
  display: flex;
  gap: 0.4rem;
}

.shipStat {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  color: var(--hull-grey);
}

/* Send Gift */
.giftSendForm {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.45rem;
}

.giftSendRow {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.giftSendRow select {
  flex: 1;
  min-width: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .giftToggle { min-height: 44px; padding: 0.5rem 0.55rem; }
  .giftBadge { font-size: 0.68rem; }
  .giftTime { font-size: 0.68rem; }
  .creditLabel { font-size: 0.68rem; }
  .shipStat { font-size: 0.68rem; }
  .itemSize { font-size: 0.68rem; }
}
