.dex-box {
    background-color: #1e1e2f;
    padding: 20px;
    border-radius: 20px;
    color: #fff;
    width: 100%;
    margin: 0;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.dex-input-area {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.dex-input-area input {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: #2c2c3e;
    color: white;
    font-size: 14px;
}

#dex-chain {
    background: #2c2c3e;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    height: 44px;
    font-size: 14px;
    width: auto;
    max-width: 200px;
    white-space: nowrap;
}

.dex-input-area button {
    background: #4e8ef7;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
}

.dex-hidden {
    display: none;
}

.dex-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.dex-info-card {
    background: #2a2a3e;
    padding: 15px;
    border-radius: 14px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    text-align: center;
    font-size: 13px;
    transform: scale(1);
    transition: all 0.3s ease-in-out;
    opacity: 0;
    animation: fadeInUp 0.5s forwards;
}

.dex-info-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.dex-info-card p {
    margin: 5px 0;
}

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

/* Modal */
#dex-wallet-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
}

#dex-wallet-modal-content {
  background-color: #1e1e2f;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-width: 500px;
  color: white;
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

#dex-wallet-modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
