/* ==========================================================================
   MOONRISECS - PLAYER-TO-PLAYER TRADE MODULE STYLES
   ========================================================================== */

:root {
  --trade-bg: #0a0d16;
  --trade-card-bg: rgba(18, 23, 40, 0.75);
  --trade-card-hover: rgba(26, 33, 56, 0.9);
  --trade-border: rgba(255, 255, 255, 0.08);
  --trade-border-active: rgba(99, 102, 241, 0.5);
  --trade-primary: #6366f1;
  --trade-primary-hover: #4f46e5;
  --trade-accent: #10b981;
  --trade-danger: #ef4444;
  --trade-warning: #f59e0b;
}

/* --------------------------------------------------------------------------
   Profile Action Button & Dropdown Selector
   -------------------------------------------------------------------------- */
.profile-trade-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 14px 0 6px 0;
  position: relative;
}

.btn-trade-split {
  display: inline-flex;
  align-items: stretch;
  position: relative;
  width: 100%;
  border-radius: 8px;
  background: linear-gradient(135deg, #2b3040 0%, #1e222d 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.btn-trade-split:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.2);
}

.btn-trade-split.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.btn-trade-split.is-disabled:hover {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.btn-trade-split.is-disabled .btn-profile-trade,
.btn-trade-unauthorized:disabled {
  cursor: not-allowed;
  color: #94a3b8;
  opacity: 0.75;
  pointer-events: none;
}

.btn-profile-trade {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 7px 0 0 7px;
  transition: background 0.2s ease;
}

.btn-profile-trade:only-child {
  border-radius: 7px;
}

.btn-profile-trade:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-profile-trade svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-trade-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.15);
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  color: #a0aec0;
  cursor: pointer;
  border-radius: 0 7px 7px 0;
  transition: all 0.2s ease;
}

.btn-trade-dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-trade-dropdown-toggle svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
}

.btn-trade-split.is-open .btn-trade-dropdown-toggle svg {
  transform: rotate(180deg);
}

.trade-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #181c25;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px;
  z-index: 1000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: tradeDropdownFadeIn 0.2s ease;
}

.btn-trade-split.is-open .trade-dropdown-menu {
  display: block;
}

@keyframes tradeDropdownFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.trade-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.trade-dropdown-item:hover {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}

.trade-dropdown-item svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.live-dot-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: liveDotPulseAnim 1.8s infinite;
  flex-shrink: 0;
}

@keyframes liveDotPulseAnim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.trade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 10px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
}

/* --------------------------------------------------------------------------
   Modal Overlays & Structure
   -------------------------------------------------------------------------- */
.trade-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(5px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  box-sizing: border-box;
}

.trade-modal-overlay.is-active {
  display: flex;
}

.trade-modal {
  background: #14171f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: tradeModalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.trade-modal-lg {
  max-width: 1120px;
}

@keyframes tradeModalSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.trade-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #191d26;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trade-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.trade-modal-title svg {
  width: 20px;
  height: 20px;
  fill: #6366f1;
}

.trade-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.trade-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.trade-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.trade-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 20px;
  background: #191d26;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Buttons */
.btn-trade-primary {
  padding: 10px 20px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-trade-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

.btn-trade-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-trade-secondary {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-trade-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn-trade-danger {
  padding: 8px 14px;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-trade-danger:hover {
  background: #ef4444;
  color: #fff;
}

.btn-trade-success {
  padding: 8px 14px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-trade-success:hover {
  background: #10b981;
  color: #fff;
}

/* --------------------------------------------------------------------------
   The Deal Box (Side-by-Side Offer Summary)
   -------------------------------------------------------------------------- */
.trade-deal-box {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  background: #171b24;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 16px;
}

@media (max-width: 768px) {
  .trade-deal-box {
    grid-template-columns: 1fr;
  }
}

.trade-deal-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trade-deal-side-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 700;
  color: #e2e8f0;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trade-deal-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}

.trade-exchange-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
}

.trade-exchange-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Selected Items Grid */
.trade-selected-grid {
  min-height: 110px;
  max-height: 190px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px;
}

.trade-selected-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 94px;
  color: #64748b;
  font-size: 12.5px;
  text-align: center;
}

.trade-selected-card {
  position: relative;
  background: #1f2430;
  border-radius: 6px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.15s ease;
}

.trade-selected-card:hover {
  transform: translateY(-2px);
}

.trade-selected-card img {
  width: 58px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 4px;
}

.trade-selected-card .card-name {
  font-size: 10px;
  color: #cbd5e1;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.trade-selected-card .card-remove {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  border-radius: 50% !important;
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease, transform 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
  z-index: 10;
  line-height: 0;
}

.trade-selected-card:hover .card-remove {
  opacity: 1;
}

.trade-selected-card .card-remove:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.trade-selected-card .card-remove svg {
  width: 10px;
  height: 10px;
  fill: #ffffff;
  display: block;
  pointer-events: none;
}

/* Credits Field in Deal Box */
.trade-credits-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 12px;
}

.trade-credits-row label {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
}

.trade-credits-input {
  flex: 1;
  background: #11141a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  outline: none;
  max-width: 120px;
}

.trade-credits-input:focus {
  border-color: #6366f1;
}

.trade-credits-input:disabled {
  opacity: 0.6;
  background: rgba(0, 0, 0, 0.4);
  cursor: not-allowed;
}

.trade-credits-max {
  font-size: 11.5px;
  color: #64748b;
  margin-left: auto;
}

/* --------------------------------------------------------------------------
   Inventory Picker Tabs & Skin Cards
   -------------------------------------------------------------------------- */
.trade-inventory-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #171b24;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 16px;
}

.trade-inv-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.trade-inv-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .trade-inv-tabs {
    width: 100%;
  }
  .trade-inv-tab {
    flex: 1 1 0;
    text-align: center;
    padding: 8px 6px;
    font-size: 12px;
  }
}

.trade-inv-tab {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.trade-inv-tab.is-active {
  background: rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
  color: #fff;
}

.trade-inv-search {
  background: #11141a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #e2e8f0;
  font-size: 13px;
  padding: 6px 12px;
  outline: none;
  min-width: 180px;
}

.trade-inv-search:focus {
  border-color: #6366f1;
}

.trade-inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding: 4px;
}

.trade-item-card {
  position: relative;
  background: #1a1e27;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.18s ease;
  overflow: hidden;
}

.trade-item-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-rarity-color, #64748b);
  border-radius: 0 0 8px 8px;
}

.trade-item-card:hover {
  background: #232834;
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.trade-item-card.is-selected {
  background: rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.35);
}

.trade-item-card.is-selected::after {
  content: '✓';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #6366f1;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trade-item-card.is-locked {
  opacity: 0.5;
  cursor: not-allowed !important;
  pointer-events: none;
}

.trade-item-card img {
  width: 90px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 6px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
}

.trade-item-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.trade-item-skin {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.trade-item-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.trade-badge-st {
  font-size: 9.5px;
  font-weight: 700;
  color: #ff9900;
  background: rgba(255, 153, 0, 0.15);
  padding: 1px 4px;
  border-radius: 3px;
}

.trade-item-wear {
  font-size: 9.5px;
  color: #64748b;
}

/* --------------------------------------------------------------------------
   Real-Time Live Trade Modal Layout
   -------------------------------------------------------------------------- */
.trade-live-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trade-live-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 8px;
  font-size: 13px;
  color: #34d399;
}

.trade-live-pulse-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.trade-live-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 820px) {
  .trade-live-columns {
    grid-template-columns: 1fr;
  }
}

.trade-live-panel {
  background: #171b24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trade-live-user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trade-live-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.trade-live-user-info {
  display: flex;
  flex-direction: column;
}

.trade-live-username {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.trade-live-userrole {
  font-size: 11.5px;
  color: #94a3b8;
}

/* Confirm Status Banners */
.trade-confirm-box {
  padding: 12px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.trade-confirm-box.is-unconfirmed {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.trade-confirm-box.is-confirmed {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.btn-live-confirm {
  width: 100%;
  padding: 11px 16px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-live-confirm:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
}

.btn-live-unconfirm {
  width: 100%;
  padding: 10px 16px;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-live-unconfirm:hover {
  background: #ef4444;
  color: #fff;
}

/* Reset Warning Banner */
.trade-reset-warning {
  display: none;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fca5a5;
  font-size: 13px;
  line-height: 1.4;
  animation: shakeWarning 0.4s ease;
}

.trade-reset-warning.is-visible {
  display: block;
}

@keyframes shakeWarning {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* --------------------------------------------------------------------------
   Trade Offers List Cards
   -------------------------------------------------------------------------- */
.trade-offers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trade-offer-card {
  background: #171b24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trade-offer-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trade-offer-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trade-offer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.trade-offer-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.trade-offer-status-badge.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.trade-offer-status-badge.accepted {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.trade-offer-status-badge.declined {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.trade-offer-status-badge.cancelled {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.trade-offer-details {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.trade-offer-items-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 48px;
}

.trade-offer-mini-card {
  width: 44px;
  height: 44px;
  background: #1f2430;
  border-radius: 6px;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.trade-offer-mini-card img {
  width: 40px;
  height: 32px;
  object-fit: contain;
}

.trade-offer-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .trade-offer-details {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .trade-exchange-icon {
    display: none !important;
  }
  .trade-offer-card-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .trade-offer-card-actions button {
    width: 100% !important;
  }
}

/* --------------------------------------------------------------------------
   Floating Notifications / Toasts
   -------------------------------------------------------------------------- */
.trade-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.trade-toast {
  pointer-events: auto;
  background: #181d28;
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 380px;
  animation: tradeToastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tradeToastSlideIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.trade-toast-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #6366f1;
  flex-shrink: 0;
}

.trade-toast-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trade-toast-text {
  font-size: 13px;
  color: #fff;
  line-height: 1.3;
}

.trade-toast-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.trade-toast-btn {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.trade-toast-btn-accept {
  background: #10b981;
  color: #fff;
}

.trade-toast-btn-accept:hover {
  background: #059669;
}

.trade-toast-btn-decline {
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.trade-toast-btn-decline:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Global Toast Overrides & In-App Notice Toasts
   -------------------------------------------------------------------------- */
.iziToast-wrapper {
  z-index: 10000000 !important;
}

.iziToast {
  z-index: 10000000 !important;
}

.trade-notice-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000001;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 380px;
  width: calc(100% - 48px);
}

.trade-notice-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(18, 23, 40, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 13.5px;
  line-height: 1.4;
  animation: tradeToastSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.25s ease;
  cursor: pointer;
}

.trade-notice-toast.is-hiding {
  opacity: 0;
  transform: translateY(-15px) scale(0.95);
}

.trade-notice-toast.toast-warning {
  border-left: 4px solid #f59e0b;
}

.trade-notice-toast.toast-error {
  border-left: 4px solid #ef4444;
}

.trade-notice-toast.toast-success {
  border-left: 4px solid #10b981;
}

.trade-notice-toast.toast-info {
  border-left: 4px solid #6366f1;
}

.trade-notice-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trade-notice-icon svg {
  width: 20px;
  height: 20px;
}

.toast-warning .trade-notice-icon { color: #f59e0b; }
.toast-error .trade-notice-icon { color: #ef4444; }
.toast-success .trade-notice-icon { color: #10b981; }
.toast-info .trade-notice-icon { color: #6366f1; }

.trade-notice-body {
  flex: 1;
  min-width: 0;
}

.trade-notice-title {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 2px;
  color: #fff;
}

.trade-notice-text {
  font-size: 12.5px;
  color: #cbd5e1;
  word-break: break-word;
}

.trade-notice-close {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.trade-notice-close:hover {
  color: #fff;
}

@keyframes tradeToastSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tradeShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.trade-shake {
  animation: tradeShake 0.45s ease-in-out;
}


