.dex-section {
    margin: 60px auto;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.dex-title {
    font-family: 'MontserratB', sans-serif;
    font-size: 28px;
    color: #cccccc;
    margin-bottom: 10px;
}

.dex-subtitle {
    font-family: 'MontserratR', sans-serif;
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 40px;
}

/* Card principal */
.dex-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow:
        0 8px 20px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.05);
    text-align: left;
}

/* Selector de red */
.dex-network-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.dex-label {
    font-family: 'MontserratM', sans-serif;
    font-size: 13px;
    color: #cccccc;
}

.dex-select {
    font-family: 'MontserratM', sans-serif;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: #cccccc;
    padding: 6px 12px;
    font-size: 13px;
    outline: none;
}

/* Botón conectar wallet */
.dex-connect-btn {
    width: 100%;
    font-family: 'MontserratM', sans-serif;
    background: linear-gradient(135deg, rgba(180,180,180,0.15), rgba(100,100,100,0.1));
    color: #cccccc;
    border: 1px solid rgba(200,200,200,0.4);
    border-radius: 50px;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.dex-connect-btn:hover {
    background: linear-gradient(135deg, rgba(200,200,200,0.25), rgba(150,150,150,0.15));
    border-color: rgba(220,220,220,0.7);
    color: #ffffff;
    transform: translateY(-2px);
}

.dex-connect-btn.connected {
    border-color: #d4af37;
    color: #d4af37;
}

/* Cajas de token (vender/comprar) */
.dex-token-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 6px;
}

.dex-token-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.dex-token-label {
    font-family: 'MontserratM', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.dex-token-balance {
    font-family: 'MontserratR', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

.dex-token-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dex-amount-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'MontserratB', sans-serif;
    font-size: 22px;
    color: #e0e0e0;
    min-width: 0;
}

.dex-amount-input::placeholder {
    color: rgba(255,255,255,0.2);
}

.dex-token-select {
    font-family: 'MontserratM', sans-serif;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.4);
    border-radius: 50px;
    color: #d4af37;
    padding: 6px 14px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

/* Botón de intercambiar dirección */
.dex-swap-direction-btn {
    display: block;
    margin: -4px auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(212,175,55,0.15);
    border: 1px solid rgba(212,175,55,0.4);
    color: #d4af37;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.dex-swap-direction-btn:hover {
    background: rgba(212,175,55,0.3);
    transform: rotate(180deg);
}

/* Info de cotización */
.dex-quote-info {
    font-family: 'MontserratR', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    text-align: center;
    margin: 14px 0;
    min-height: 16px;
}

/* Botón de Swap principal */
.dex-swap-btn {
    width: 100%;
    font-family: 'MontserratB', sans-serif;
    background: linear-gradient(90deg, #d4af37, #cccccc, #d4af37);
    background-size: 200% 100%;
    color: #000000;
    border: none;
    border-radius: 50px;
    padding: 14px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.dex-swap-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(212,175,55,0.4);
}

.dex-swap-btn:disabled {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.3);
    cursor: not-allowed;
    box-shadow: none;
}

.wallet-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.wallet-modal.show {
    display: flex;
}

.wallet-modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 20px;
    width: 300px;
    backdrop-filter: blur(18px);
}

.wallet-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'MontserratB', sans-serif;
    color: #e0e0e0;
    margin-bottom: 16px;
}

.wallet-modal-close {
    background: none;
    border: none;
    color: #cccccc;
    font-size: 16px;
    cursor: pointer;
}

.wallet-modal-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wallet-option-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 12px 16px;
    color: #cccccc;
    font-family: 'MontserratM', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wallet-option-btn:hover {
    border-color: #d4af37;
    background: rgba(212,175,55,0.08);
}